当我sudo do-release-upgrade
更新到下一个 LTS 时,我得到了
Could not calculate the upgrade
An unresolvable problem occurred while calculating the upgrade.
原因似乎是这样的(来自/var/log/dist-upgrade/main.log
):
WARNING Can't mark 'ubuntu-desktop' for upgrade (E:Unable to correct problems, you have held broken packages.)
ERROR Dist-upgrade failed: 'Broken packages after upgrade: ubuntu-desktop'
我该如何解决这个问题?/var/log/dist-upgrade/apt.log
显示太多损坏的包,我不知道该怎么做。我知道我不应该删除ubuntu-desktop
,我该怎么办?
注意,我做了sudo apt update
和sudo apt upgrade
。除了 之外没有其他任何损坏的软件包报告do-release-upgrade
。我不认为当前版本中存在损坏的软件包,似乎升级会导致一些损坏的链接。