Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 535  / 1 Year ago, sat, march 18, 2023, 12:12:20

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?..


More From » apt

 Answers
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..


[#29775] Saturday, March 18, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
strhen

Total Points: 27
Total Questions: 111
Total Answers: 103

Location: Angola
Member since Tue, Apr 25, 2023
1 Year ago
strhen questions
Sun, Jun 6, 21, 04:57, 3 Years ago
Tue, Mar 1, 22, 12:44, 2 Years ago
Wed, Jul 21, 21, 14:38, 3 Years ago
;