![我们如何修复损坏的 dist-upgrade?](https://linux22.com/image/1130290/%E6%88%91%E4%BB%AC%E5%A6%82%E4%BD%95%E4%BF%AE%E5%A4%8D%E6%8D%9F%E5%9D%8F%E7%9A%84%20dist-upgrade%EF%BC%9F.png)
昨天我尝试进行 dist-upgrade 到 15.10,但它坏了。
事实是,硬盘没有太多的可用空间(大约 650mb),而升级空间超过 1500mb。
升级管理器不起作用,所以我输入了,
sudo apt-get update
sudo apt-get dist-upgrade
sed -i 's/vivid/wily/g' /etc/apt/sources.list
sudo apt-get update
sudo apt-get upgrade
看到它正在访问 Wily,我手动升级了软件包(首先是依赖项和库),然后升级了所有剩余的软件包。
升级过程几乎一切正常,除了一件事:之前我必须卸载一些我已经安装的较大的软件包(例如 Gimp、Inkscape、Scribus、Blender、Krita、Openshot 等),而且我无法重新安装它们:
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:
libgtk-3-0 : Depends: libmirclient9 (>= 0.17.0+15.10.20151008.2) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
有什么方法可以修复这个问题吗?或者唯一的方法就是重新安装吗?
答案1
强制安装
libprotobuf-lite9v5
sudo apt-get install libprotobuf-lite9v5
使用修复系统
sudo apt-get install -f
将包标记为自动安装
sudo apt-mark auto libprotobuf-lite9v5
安装所需的软件包
sudo apt-get install gimp sudo apt-get install inkscape