由于某些依赖性问题,我无法删除/安装软件

由于某些依赖性问题,我无法删除/安装软件

我在尝试在 Ubuntu 12.04 LTS 中安装/卸载应用程序时遇到困难。我的桌面上出现了一个警告错误,它以红色图标的形式出现,图标上有一条线,内容如下:

发生错误,请从右键菜单运行包管理器或在终端中运行 apt-get 来查看错误所在。错误消息为:“错误:BrokenCount > 0” — 这通常意味着您安装的包具有未满足的依赖关系。

我尝试通过 Ubuntu 软件中心自动​​修复,但一直出现错误,或者根本不起作用。之后,我打开终端并使用sudo apt-get 检查命令来查看问题是什么,结果如下:

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 安装(为了尝试解决当前的问题),我遇到了以下错误/代码:

okudaira@haru-kano:~$ 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 24 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.
Do you want to continue [Y/n]? y
(Reading database ... 181702 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
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB

Total disk space freed by localepurge: 0 KiB

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

我遇到的真正问题是解释所说的内容。我对 ubuntu 体验还很陌生,所以我对术语和所有细节都不是很熟悉。

有人能告诉我我的系统出了什么问题吗?我根本无法安装/删除任何程序。

答案1

尝试这个命令:

sudo apt-get clean

然后尝试再次安装:

sudo apt-get -f install

相关内容