![计算升级时出现无法解决的问题](https://linux22.com/image/1119500/%E8%AE%A1%E7%AE%97%E5%8D%87%E7%BA%A7%E6%97%B6%E5%87%BA%E7%8E%B0%E6%97%A0%E6%B3%95%E8%A7%A3%E5%86%B3%E7%9A%84%E9%97%AE%E9%A2%98.png)
计算升级时出现无法解决的问题。
请向更新管理器包并包含以下错误消息: “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
这将解决您的‘这些包已被保留的错误’。