2017-04-22 183 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

我已經這樣做了,但它什麼也沒做。 –