由于未满足依赖性,无法更新 Ubuntu 服务器

由于未满足依赖性,无法更新 Ubuntu 服务器

当我尝试在 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

相关内容