使用BleedingEdge12_4_26.sh后,包管理器损坏和libjack错误

我最近安装了Ubuntu 12.04 lts。 我使用了BleedingEdge12_4_26.sh脚本,建议我安装更多软件。

今天早上我的更新通知出现了,当我尝试进行更新时,我开始收到有关包管理器被破坏的错误。 包管理器日志显示libjack是问题所在。

我尝试手动安装它,但这是我得到的:

$ sudo apt-get install libjack-jackd2-0 [sudo] password for jls: Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: jackd2 The following packages will be upgraded: libjack-jackd2-0 1 upgraded, 0 newly installed, 0 to remove and 8 not upgraded. 1 not fully installed or removed. Need to get 0 B/197 kB of archives. After this operation, 3 072 B of additional disk space will be used. (Reading database ... 207517 files and directories currently installed.) Preparing to replace libjack-jackd2-0 1.9.8~dfsg.1-1ubuntu1 (using .../libjack-jackd2-0_1.9.8~dfsg.2-1precise1_amd64.deb) ... Unpacking replacement libjack-jackd2-0 ... dpkg: error processing /var/cache/apt/archives/libjack- jackd2-0_1.9.8~dfsg.2-1precise1_amd64.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_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) 

这似乎是某种冲突,但我无法破译到底是什么。

任何帮助将非常感激。

谢谢

更新:经过一些研究,我尝试了这个:

 $ sudo apt-get clean $ sudo apt-get update && sudo apt-get upgrade 

返回了这个:

 Fetched 2 574 kB in 17s (144 kB/s) Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: libjack-jackd2-0 : Breaks: libjack-jackd2-0:i386 (!= 1.9.8~dfsg.1-1ubuntu1) but 1.9.8~dfsg.2-1precise1 is installed libjack-jackd2-0:i386 : Breaks: libjack-jackd2-0 (!= 1.9.8~dfsg.2-1precise1) but 1.9.8~dfsg.1-1ubuntu1 is installed E: Unmet dependencies. Try using -f. 

所以我试过这个:

 $ 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 Suggested packages: jackd2 The following packages will be upgraded: libjack-jackd2-0 1 upgraded, 0 newly installed, 0 to remove and 22 not upgraded. 1 not fully installed or removed. Need to get 197 kB of archives. After this operation, 3 072 B of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://ppa.launchpad.net/dns/sound/ubuntu/ precise/main libjack-jackd2-0 amd64 1.9.8~dfsg.2-1precise1 [197 kB] Fetched 197 kB in 1s (101 kB/s) (Reading database ... 207517 files and directories currently installed.) Preparing to replace libjack-jackd2-0 1.9.8~dfsg.1-1ubuntu1 (using .../libjack-jackd2-0_1.9.8~dfsg.2-1precise1_amd64.deb) ... Unpacking replacement libjack-jackd2-0 ... dpkg: error processing /var/cache/apt/archives/libjack-jackd2-0_1.9.8~dfsg.2-1precise1_amd64.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_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) jls@jls-HP-Pavilion-g6-Notebook-PC:~$ sudo dpkg --configure -a dpkg: error processing libjack-jackd2-0:i386 (--configure): libjack-jackd2-0:i386 1.9.8~dfsg.2-1precise1 cannot be configured because libjack- jackd2-0:amd64 is in a different version (1.9.8~dfsg.1-1ubuntu1) Errors were encountered while processing: libjack-jackd2-0:i386 

所以我试图删除冲突的包;

 $ sudo apt-get remove --purge libjack-jackd2-0 

结束了这个;

 Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: gstreamer0.10-plugins-good : Depends: libjack-jackd2-0 (>= 1.9.5~dfsg-14) but it is not going to be installed or libjack-0.116 libasound2-plugins : Depends: libjack-jackd2-0 (>= 1.9.5~dfsg-14) but it is not going to be installed or libjack-0.116 libavdevice53 : Depends: libjack-jackd2-0 (>= 1.9.5~dfsg-14) but it is not going to be installed or libjack-0.116 libfluidsynth1 : Depends: libjack-jackd2-0 (>= 1.9.5~dfsg-14) but it is not going to be installed or libjack-0.116 libmlt4 : Depends: libjack-jackd2-0 (>= 1.9.5~dfsg-14) but it is not going to be installed or libjack-0.116 libportaudio2 : Depends: libjack-jackd2-0 (>= 1.9.5~dfsg-14) but it is not going to be installed or libjack-0.116 librtaudio4 : Depends: libjack-jackd2-0 (>= 1.9.5~dfsg-14) but it is not going to be installed or libjack-0.116 librtmidi1 : Depends: libjack-jackd2-0 (>= 1.9.5~dfsg-14) but it is not going to be installed or libjack-0.116 lmms : Depends: libjack-jackd2-0 (>= 1.9.5~dfsg-14) but it is not going to be installed or libjack-0.116 E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). 

而现在我真的很难过:(

http://www.iasptk.com/ubuntu-fix-broken-package-best-solution

尝试后

 sudo dpkg --configure -a 

 sudo apt-get install -f 

破解包的问题仍然存在,解决方案是手动编辑dpkg状态文件。

 $ sudo gedit /var/lib/dpkg/status (you can use vi or nano instead of gedit) Locate the corrupt package, and remove the whole block of information about it and save the file.