![由于未满足依赖性,无法更新 Ubuntu 服务器](https://linux22.com/image/842103/%E7%94%B1%E4%BA%8E%E6%9C%AA%E6%BB%A1%E8%B6%B3%E4%BE%9D%E8%B5%96%E6%80%A7%EF%BC%8C%E6%97%A0%E6%B3%95%E6%9B%B4%E6%96%B0%20Ubuntu%20%E6%9C%8D%E5%8A%A1%E5%99%A8.png)
当我尝试在 Ubuntu Server 13.04 AMD64 上安装系统更新时,它返回以下消息:
现在正在更新 apparmor..
Installing package(s) with command apt-get -y install apparmor ..
dpkg: dependency problems prevent configuration of linux-server:
linux-server depends on linux-image-server (= 3.2.0.44.53); however:
Version of linux-image-server on system is 3.2.0.53.63.
linux-server depends on linux-headers-server (= 3.2.0.44.53); however:
Version of linux-headers-server on system is 3.2.0.53.63.
dpkg: error processing linux-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-server
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-server : Depends: linux-image-server (= 3.2.0.44.53) but 3.2.0.53.63 is to be installed
Depends: linux-headers-server (= 3.2.0.44.53) but 3.2.0.53.63 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
.. install failed!
我已经尝试了下面文章中列出的所有常见方法,但它仍然显示相同的消息。 添加 PPA 后如何解决未满足的依赖关系?
你好,这是该命令的输出:
sudo apt-get check
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
linux-server : Depends: linux-image-server (= 3.2.0.44.53) but 3.2.0.53.63 is installed
Depends: linux-headers-server (= 3.2.0.44.53) but 3.2.0.53.63 is installed
E: Unmet dependencies. Try using -f.
> sudo apt-get -qq update && apt-cache policy linux-server
linux-server:
Installed: 3.2.0.44.53
Candidate: 3.2.0.53.63
Version table:
3.2.0.53.63 0
500 http://no.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
*** 3.2.0.44.53 0
100 /var/lib/dpkg/status
3.2.0.23.25 0
500 http://no.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
rgds E 安德森
答案1
似乎元包存在一些依赖问题,请删除它并重新安装,然后照常升级系统:
sudo apt-get update
sudo apt-get remove linux-server
sudo apt-get install linux-server
sudo apt-get upgrade
答案2
我也遇到了同样的问题。以下方法对我有用:
sudo apt-get update
sudo apt-get remove linux-headers-server linux-image-server linux-server
sudo apt-get install linux-headers-server linux-image-server linux-server
sudo apt-get upgrade