我有以下 Ubuntu 版本:14.04.6 LTS,我正在尝试升级到 16.04
sudo do-release-upgrade
此命令失败报告:
An unresolvable problem occurred while calculating the upgrade:
E:Unable to correct problems, you have held broken packages.
This can be caused by:
* Upgrading to a pre-release version of Ubuntu
* Running the current pre-release version of Ubuntu
* Unofficial software packages not provided by Ubuntu
/var/log/dist-upgrade/main.log 显示:
2019-09-06 17:15:26,873 ERROR Dist-upgrade failed: 'E:Error, pkgProblemResolver:::Resolve generated breaks, this may be caused by held packages
我的问题是:如何识别和删除这些损坏的 deps?
谢谢。
答案1
我解决了:这对我非常有用另一个答案指出升级过程中软件包损坏的地方。
我删除了这里报告的一些包并时不时地重新尝试直到do-release-upgrade
成功。
对我来说另一个有用的命令是dpkg --get-selections | grep deinstall
:我已经卸载了该命令报告的所有内容。