無法 apt-get 升級 Ubuntu 伺服器

無法 apt-get 升級 Ubuntu 伺服器

今天早上我嘗試升級並遇到錯誤。執行 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

我清除了 Quantal 軟體包(linux-image-generic-lts-quantal、linux-generic-lts-quantal)並運行 apt-get update 然後升級。一切都很好。

相關內容