计算升级时出现无法解决的问题

计算升级时出现无法解决的问题

计算升级时出现无法解决的问题。

请向更新管理器包并包含以下错误消息: “E:错误,pkgProblemResolver::Resolve 生成​​中断,这可能是由保留的包裹引起的。”

sudo apt-get upgrade给我带来了这个。

renamon@Gibson{~}:sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  libgl1-mesa-dev linux-headers-generic-lts-raring
  linux-image-generic-lts-raring mesa-common-dev
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

apt-get dist-upgrade -f给我带来了这个

root@Gibson:/home/renamon# apt-get dist-upgrade -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Failed
The following packages have unmet dependencies:
 libgl1-mesa-dri-lts-raring : Depends: libglapi-mesa-lts-raring but it is not going to be installed
 libglapi-mesa-lts-raring:i386 : Conflicts: libglapi-mesa
                                 Conflicts: libglapi-mesa:i386
 libglu1-mesa-dev : Depends: libgl1-mesa-dev or
                             libgl1-mesa-dev-lts-quantal but it is not going to be installed or
                             libgl1-mesa-dev-lts-raring but it is not going to be installed or
                             libgl1-mesa-dev-lts-saucy but it is not going to be installed or
                             libgl1-mesa-dev-lts-trusty but it is not installable or
                             libgl-dev
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
root@Gibson:/home/renamon# 

对 Linux 这方面了解不多,还是个新手。

答案1

对于升级的第一部分,只需复制保留的软件包,一次一行,然后将其附加到语句中sudo apt-get install并按回车键。

对于你来说它将变成:

sudo apt-get 安装 libgl1-mesa-dev linux-headers-generic-lts-raring linux-image-generic-lts-raring mesa-common-dev

这将解决您的‘这些包已被保留的错误’。

相关内容