无法通过 apt-get 升级 Ubuntu Server

无法通过 apt-get 升级 Ubuntu Server

我今天早上尝试升级,但遇到了错误。运行 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 然后升级。一切正常。

相关内容