2017-04-22 236 views
0

我正在尝试安装(例如)nasm。无法安装依赖项

sudo apt-get install nasm

在此之后,我得到一个错误信息:

You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: linux-image-extra-4.4.0-71-generic : Depends: linux-image-4.4.0-71-generic but it is not going to be installed linux-image-extra-4.4.0-72-generic : Depends: linux-image-4.4.0-72-generic but it is not going to be installed linux-image-generic : Depends: linux-image-4.4.0-72-generic 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 -f install

我所得到的是这样的:

Errors were encountered while processing: /var/cache/apt/archives/linux-image-4.4.0-72-generic_4.4.0-72.93_amd64.deb /var/cache/apt/archives/linux-image-4.4.0-71-generic_4.4.0-71.92_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

回答

0
sudo apt-get clean 

sudo apt-get autoclean 

如果你在Ubuntu上,转到软件源>其他软件 并取消不必要的PPA的。

screenshot

+0

我已经这样做了,但它什么也没做。 –