![无法通过 apt-get 升级 Ubuntu Server](https://linux22.com/image/844509/%E6%97%A0%E6%B3%95%E9%80%9A%E8%BF%87%20apt-get%20%E5%8D%87%E7%BA%A7%20Ubuntu%20Server.png)
我今天早上尝试升级,但遇到了错误。运行 apt-get -f install 并出现以下错误。我不记得安装过任何量子包。
dpkg: dependency problems prevent configuration of linux-image-generic-lts-quantal:
linux-image-generic-lts-quantal depends on linux-image-3.5.0-39-generic; however:
Package linux-image-3.5.0-39-generic is not installed.
dpkg: error processing linux-image-generic-lts-quantal (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of linux-generic-lts-quantal:
linux-generic-lts-quantal depends on linux-image-generic-lts-quantal; however:
Package linux-image-generic-lts-quantal is not configured yet.
dpkg: error processing linux-generic-lts-quantal (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
linux-image-generic-lts-quantal
linux-generic-lts-quantal
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
我清除了量子包(linux-image-generic-lts-quantal、linux-generic-lts-quantal)并运行 apt-get update 然后升级。一切正常。