![使用 BleedingEdge12_4_26.sh 后,包管理器损坏且 libjack 出现错误](https://linux22.com/image/964502/%E4%BD%BF%E7%94%A8%20BleedingEdge12_4_26.sh%20%E5%90%8E%EF%BC%8C%E5%8C%85%E7%AE%A1%E7%90%86%E5%99%A8%E6%8D%9F%E5%9D%8F%E4%B8%94%20libjack%20%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF.png)
我最近安装了 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).
现在我真的很困惑:(
答案1
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.