0

Can anyone help me with this?

During dist upgrade something happened, broken packages occured and unmet dependecies are shown, so after that in the terminal asked me to type in this command "apt-get -f install" and so I did try that and this is what I got:

    sudo apt-get -f install
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Correcting dependencies... Done
    The following extra packages will be installed:
    libjack-jackd2-0 libjack-jackd2-0:i386
    Suggested packages:
    jackd2 jackd2:i386
    The following NEW packages will be installed:
    libjack-jackd2-0 libjack-jackd2-0:i386
    0 upgraded, 2 newly installed, 0 to remove and 6 not upgraded.
    Need to get 0 B/398 kB of archives.
    After this operation, 996 kB of additional disk space will be used.
    Do you want to continue [Y/n]? Y
    Selecting previously unselected package libjack-jackd2-0.
    (Reading database ... 248346 files and directories currently installed.)
    Unpacking libjack-jackd2-0 (from .../libjack-jackd2-0_1.9.8~dfsg.2-1precise1_amd64.deb) ...
    Selecting previously unselected package libjack-jackd2-0:i386.
    Unpacking libjack-jackd2-0:i386 (from .../libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb) ...
    dpkg: error processing /var/cache/apt/archives/libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb (--unpack):
    './usr/share/doc/libjack-jackd2-0/buildinfo.gz' is different from the same file on the system
    dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
    Errors were encountered while processing:
    /var/cache/apt/archives/libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb

    E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried the following:

    sudo dpkg --configure -a <--- didn't work,
    sudo apt-get -f install <--- didn't work,
    sudo gedit /var/lib/dpkg/status <---- I tried removing the broken package, still the same after using "sudo fuser -vki /var/lib/dpkg/lock".

hmmmm.. help pls.. I'm stuck, and if this is a duplicate post regarding libjackd2 can anyone redirect me to another post which was solved?..

3 Answers3

0

try first to clean the package cache (sudo apt-get clean) and install again.

Possible you should first try to uninstall the two packages:

sudo apt-get remove libjack-jackd2-0 libjack-jackd2-0:i386

and try to install again.

TCr
  • 171
0

You shouldn't install the same package for both architecture at the same time, either install libjack-jackd2-0 or libjack-jackd2-0:i386. I recommend you to no install the i386 one since your system is 64bit. A simple:

sudo apt-get install libjack-jackd2-0

Should do the work.

Braiam
  • 69,112
0

What solved the problem was this:

I just changed the package-name from libjack-jackd2-0 to libjack-jackd2-0.old, then I did the

  sudo apt-get install libjack-jackd2-0 libjack-jackd2-0:i386

It work for me, was because of this(This was the hint) which made me try following what he did:

'./usr/share/doc/libjack-jackd2-0/buildinfo.gz' is different from the same file on the system

what I did was I looked at the /usr/shar/doc/ to look for the libjack-jackd2-0 folder found it and appended in its name ".old" so that it won't find it again when doing the

  sudo apt-get -f install libjack-jackd2-0 libjack-jackd2-0:i386

after changing the name, I tried doing the apt-get -f install it worked and it went smoothly as it should be and now everything's fine, I can install now using sudo apt-get without errors. I don't have to worry for later consequences because after that completed upgrade I removed the software or application that was using those packages via apt-get remove which was lmms(Linux MultiMedia Studio) and did some sudo apt-get autoremove if in-case there were packages left useless and never did I try re-installing it again.

Just got lucky I think. but I definitely don't recommend on doing this on every package dependency error because not all show the same errors;

Definitely reading and analyzing the error helped a lot. because some answered disabling the package on the package tree, some say remove the package and install again but got lucky that it was just a build file error.

I hope this helps..