sudo do-release-upgrade 中止并显示以下消息
An unresolvable problem occurred while calculating the upgrade.
This was likely caused by:
* Unofficial software packages not provided by Ubuntu
Please use the tool 'ppa-purge' from the ppa-purge
package to remove software from a Launchpad PPA and
try the upgrade again.
作为一个笨蛋,我正在寻求有关如何继续的建议。
我需要一个 ppa-purge 的参数,如帮助文件中所示
sudo ppa-purge [options] <ppa:ppaowner>[/ppaname]
我怎样才能知道哪个 PPA 是罪魁祸首,以便清除它?
我认为这有帮助
/var/log/dist-upgrade$ grep -E 'ERROR|failed' main.log
2023-09-27 11:44:22,459 INFO failed to remove python-minimal
2023-09-27 11:44:22,525 INFO failed to remove python-dev
2023-09-27 11:44:22,555 INFO failed to remove libpython-dev
2023-09-27 11:44:22,586 INFO failed to remove libpython-stdlib
2023-09-27 11:44:22,616 INFO failed to remove python-minimal
2023-09-27 11:44:22,645 INFO failed to remove python-dev
2023-09-27 11:44:22,645 INFO failed to remove libpython-dev
2023-09-27 11:44:22,645 INFO failed to remove libpython-stdlib
2023-09-27 11:44:23,172 ERROR Dist-upgrade failed: 'E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.'
tevs@tevs-SEi:/var/log/dist-upgrade$
However I don't know how to relate the items to PPAs. Is each line a separate PPA?
If not, how do I relate these lines to a PPA?
If so, what is the PPA owner for these?
答案1
我建议运行一个sudo apt update
命令来找出错误的 PPA 信息。对于错误的存储库,输出可能会显示 404 错误或类似内容。
要列出 Ubuntu 存储库中的所有 PPA,可以使用以下命令:
sudo apt-add-repository --list
使用以下命令从存储库中删除 PPA:
sudo apt-add-repository --remove <ppa:repository_name>
之后,更新:
sudo apt update
最后,重试该do-release-upgrade
命令,如果仍然失败,则重复该过程。