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

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

目前我无法安装某些软件

sudoapt-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.

尝试通过以下方式安装 libgles突触给出

在此处输入图片描述

在 Syanptic 检查时很清楚:

在此处输入图片描述

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

在此处输入图片描述

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

它们没有出现在待安装列表中:

在此处输入图片描述

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

grep: /etc/apt/trustdb.gpg: Permission denied

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

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.

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

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.

答案1

简单的解决方案可能是

libglapi-mesa通过以下方式降级软件包

    sudo apt-get install libglapi-mesa=10.5.2-0ubuntu1

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

但你的系统已经相当糟糕了。

工作正在进行中...

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

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

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

    在此处输入图片描述

    使用Reload

    在此处输入图片描述

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

    首先尝试降级。如果不可能,请删除软件包。一步一步地执行此操作,不要一次性全部删除。每次删除后,检查类别Installed (auto removable)并删除软件包。请记住,可以重新安装软件包,但不应删除内核 ;)

    有时需要重新启动 Synaptic。但这个说法来自我的经验,并不一定正确。

    在此处输入图片描述

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


以下是聊天

  • 重新启动系统之前请检查

    • 你的桌面还安装着吗?

      apt-cache policy unity
      
    • 你的网络管理器安装了吗?

      apt-cache policy network-manager
      
    • 你的显卡是否安装

      nvidia-settings --version
      

记住并获取有用的链接

相关内容