当我输入 apt-get -f install 时,我收到错误消息

当我输入 apt-get -f install 时,我收到错误消息
xserver-xorg-core (2:1.11.4-0ubuntu10.8) breaks xserver-xorg-video-5 and is installed.

另外我无法升级我的软件,它说软件包系统已损坏,详细信息如下:

The following packages have unmet dependencies:

xserver-xorg-core: Depends: xserver-common (>= 2:1.11.4-0ubuntu10.8) but 2:1.11.4-0ubuntu10.8 is installed

当我发出时sudo apt-get update,输出似乎很好,来源是(抱歉,输出有太多链接,我无法发布);http://archive.ubuntu.com

Reading package lists... Done

======================

当我发出时sudo apt-get dist-upgrade,输出是:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 xserver-xorg-core : Breaks: xserver-xorg-video-5
E: Unmet dependencies. Try using -f.

=================== 当我发出“sudo apt-get -f install”时,输出是:

dpkg: dependency problems prevent configuration of xserver-xorg-video-radeon:
    xserver-xorg-core (2:1.11.4-0ubuntu10.8) breaks xserver-xorg-video-5 and is installed.      
    xserver-xorg-video-radeon (1:6.12.1-0ubuntu2) provides xserver-xorg-video-5.
    dpkg: error processing xserver-xorg-video-radeon (--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: xserver-xorg-video-radeon
    E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

我搜索了一下,发现这个包xserver-xorg-video-5Debian 虚拟包

通常这个包在 Ubuntu 中不存在。如果你运行命令

sudo apt-get install xserver-xorg-video-5结果将是

Package xserver-xorg-video-5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'xserver-xorg-video-5' has no installation candidate

因此,我假设您已经添加了外部源(PPA)来安装这个破坏了您的系统的包。

我的建议是使用 ppa-purge 程序清除您添加的 ppa。

sudo apt-get install ppa-purge 
sudo ppa-purge <ppa-name>
sudo apt-get update
sudo apt-get dist-upgrade

如果您不知道应该清除哪些 ppa,请全部清除。外部源(存储库)有时会干扰必要的系统包,并发生类似这样的问题。(系统崩溃)

相关内容