Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
21
rated 0 times [  21] [ 0]  / answers: 1 / hits: 34566  / 3 Years ago, tue, august 17, 2021, 4:30:57

Encountered an error while updating through Synaptic Manager. Subsequent updates gave the error at the bottom of the output. I'm a noob so any help is appreciated.



al@al:~$ sudo apt-get -f upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following NEW packages will be installed:
libjack-jackd2-0:i386
The following packages have been kept back:
linux-headers-generic skype
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/202 kB of archives.
After this operation, 493 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 310056 files and directories currently installed.)
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)

More From » apt

 Answers
2

Specific answer



Try these commands in a terminal:



sudo dpkg -r libjack-jackd2-0
sudo apt-get -f install
sudo apt-get update
sudo apt-get upgrade


The commands remove the offending file, attempts to fix the broken dependency and updates your system.






General answer




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)




If you are getting an E: Sub-process /usr/bin/dpkg returned an error code (1) (Should be error code (1)), you can attempt to fix this with the following things in mind:




  • Take note of the package name after /var/cache/apt/archives/. In this case, the filename is libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb, so the package name is libjack-jackd2-0 (take the filename up until the first '_', generally). With these in mind, just run the following commands:



    sudo dpkg -r libjack-jackd2-0
    sudo apt-get -f install
    sudo apt-get update
    sudo apt-get upgrade


[#36420] Tuesday, August 17, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
taigysel

Total Points: 33
Total Questions: 136
Total Answers: 114

Location: Singapore
Member since Wed, Jan 13, 2021
3 Years ago
taigysel questions
;