嗨,我对 Ubuntu 还不太熟悉。我目前正在使用 Ubuntu 21.10,并尝试将其升级到 22.04。当我输入
do-release-upgrade
它引发一个错误:
检查是否有新的 Ubuntu 版本 您的 Ubuntu 版本不再受支持。如需升级信息,请访问: http://www.ubuntu.com/releaseendoflife 升级之前,请安装适合您的版本的所有可用更新。
我已尝试安装所有升级。然后我尝试通过输入进行升级
sudo apt upgrade
然后我遇到了下面这个错误:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... 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:
libtss2-esys-3.0.2-0 : Breaks: libtss2-esys0 (< 3.0.2-1) but 2.3.2-1 is to be installed
libtss2-mu0 : Breaks: libtss2-esys0 (< 3.0.1-2) but 2.3.2-1 is to be installed
libtss2-sys1 : Breaks: libtss2-esys0 (< 3.0.1-2) but 2.3.2-1 is to be installed
libtss2-tcti-cmd0 : Breaks: libtss2-esys0 (< 3.0.1-2) but 2.3.2-1 is to be installed
libtss2-tcti-device0 : Breaks: libtss2-esys0 (< 3.0.1-2) but 2.3.2-1 is to be installed
libtss2-tcti-mssim0 : Breaks: libtss2-esys0 (< 3.0.1-2) but 2.3.2-1 is to be installed
libtss2-tcti-swtpm0 : Breaks: libtss2-esys0 (< 3.0.1-2) but 2.3.2-1 is to be installed
E: Broken packages
我尝试手动更新这些软件包。还尝试使用此网站上的信息修复 E: 损坏的软件包 (https://www.makeuseof.com/how-to-find-and-fix-broken-packages-on-linux/),但是没有作用。
答案1
长话短说,我能够将我的 ubuntu 从 21.10 升级到 22.04 LTS。
对我最有帮助的网站是
我按照网站上的说明一步一步操作,成功升级了我的 ubuntu。
非常感谢大家的帮助,如果你们有任何问题请告诉我!