Apt-get 在任何安装操作上崩溃

Apt-get 在任何安装操作上崩溃

我在使用 ubuntu 14.04 时遇到了一个奇怪的问题。当我尝试更新系统或安装任何软件时,我遇到了一个错误

$ sudo apt-get install 4digits
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:
    4digits : Depends: python-glade2 but it is not going to be installed
    linux-tools-3.13.0-53 : Depends: linux-tools-common but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution)

因此,当我尝试启动“sudo apt-get -f install”时,再次出现错误

Preparing to unpack .../linux-tools-common_3.13.0-53.89_all.deb ...
Unpacking linux-tools-common (3.13.0-53.89) ...
dpkg: error processing archive /var/cache/apt/archives/linux-tools-common_3.13.0-53.89_all.deb (--unpack):
    trying to overwrite '/usr/bin/perf', which is also in package linux-   lts-vivid-tools-common 3.19.0-18.18~14.04.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

Errors were encountered while processing:
  /var/cache/apt/archives/linux-tools-common_3.13.0-53.89_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

此错误确认的. 由于包装需要生动的工具,升级至 15.04可能是一种解决方法。

答案2

尝试通过以下方式修复您的包管理

sudo apt-get purge linux-tools-3.13.0-53 linux-tools-common

最终也删除其他应用程序

sudo apt-get purge 4digits

相关内容