如何安全地恢复 libglapi-mesa 版本?

Nik*_*nte 5 apt

目前我无法安装某些软件

须藤apt-get install vlc

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 vlc : Depends: libgles1-mesa (>= 7.8.1) but it is not going to be installed or
                libgles1
       Depends: libgles2-mesa (>= 7.8.1) but it is not going to be installed or
                libgles2
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

尝试通过安装libgles Syanptic

在此处输入图片说明

在检查 Synptic 时很清楚:

在此处输入图片说明

试图将特定版本强制回退到 10.5.2 似乎表明它将安装很多我已经很好配置的东西:

在此处输入图片说明

显然我不想这样做,但我希望能够再次使用这台电脑。

它们不会出现在要安装的列表中:

在此处输入图片说明

grep -r 'ricotz' /etc/apt/ 给出:

grep: /etc/apt/trustdb.gpg: Permission denied
Run Code Online (Sandbox Code Playgroud)

sudo grep -r 'ricotz' /etc/apt/ 没有输出

sudo apt-cache policy libglapi-mesa 给出:

libglapi-mesa:
  Installed: 10.6.0~git20150423.125574d1-0ubuntu0ricotz~utopic
  Candidate: 10.6.0~git20150423.125574d1-0ubuntu0ricotz~utopic
  Version table:
 *** 10.6.0~git20150423.125574d1-0ubuntu0ricotz~utopic 0
        100 /var/lib/dpkg/status
     10.5.2-0ubuntu1 0
        500 http://gb.archive.ubuntu.com/ubuntu/ vivid/main i386 Packages
Run Code Online (Sandbox Code Playgroud)

sudo apt-get install libglapi-mesa=10.5.2-0ubuntu1 给出:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 monodoc-browser : Depends: libwebkit1.1-cil (>= 0.3) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Run Code Online (Sandbox Code Playgroud)

sudo apt-cache policy libwebkit1.1.cil 给出:

libwebkit1.1-cil:
  Installed: 0.3-6
  Candidate: 0.3-6
  Version table:
 *** 0.3-6 0
        500 http://gb.archive.ubuntu.com/ubuntu/ vivid/main i386 Packages
        100 /var/lib/dpkg/status
Run Code Online (Sandbox Code Playgroud)

AB回答的步骤:

nikolai@dante:~$ sudo apt-get autoremove
[sudo] password for nikolai: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
nikolai@dante:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
nikolai@dante:~$ sudo apt-get install libglapi-mesi=10.5.2-0ubuntu1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libglapi-mesi
nikolai@dante:~$ sudo apt-get install libglapi-mesa=10.5.2-0ubuntu1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 monodoc-browser : Depends: libwebkit1.1-cil (>= 0.3) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Run Code Online (Sandbox Code Playgroud)

A.B*_*.B. 3

简单的解决方案可能是

libglapi-mesa通过降级软件包

    sudo apt-get install libglapi-mesa=10.5.2-0ubuntu1
Run Code Online (Sandbox Code Playgroud)

您已经从 PAA 安装了版本 10.6.0~git20150423.125574d1-0ubuntu0ricotz~utopic,该版本不再存在于您的系统中,或者通过手动dpkg -i或其他工具安装。

但你的系统已经很糟糕了。

工作正在进行中...

在这种情况下,没有固定的步骤顺序。你必须自己决定并采取行动。我只能给你建议。

目前我们只有Synaptic Package Manager,因此使用它:

  • 禁用不必要的 PPA 和其他存储库。您可以稍后重新添加它们。

    在此输入图像描述

    使用Reload

    在此输入图像描述

  • 该类别中的所有软件包Installed (local or obsolete)都应删除或降级

    首先尝试降级。如果不可能,请取出包装。一步一步地进行,而不是一次性完成。每次删除后,检查类别Installed (auto removable)并删除包。请记住,可以重新安装软件包,但不应删除内核;)

    有时需要重新启动 Synaptic。但这个断言来自我的经验,并不一定是真的。

    在此输入图像描述

  • 删除可以重新安装的软件包


以下是聊天中的一些要点

记住并提供有用的链接