我似乎遇到了一个工作流程错误,Ubuntu 的生命周期结束了。我得到了下面的屏幕截图。所以我点击了升级...来升级它,然后什么也没发生。
然后我点击升级...但什么也没发生。
我用 Google 搜索后发现我应该运行 enter,do-release-upgrade
才意识到这基本上是在运行同一件事。
christopherwork@Chris-Gaming-Linux:~$ do-release-upgrade
Checking for a new Ubuntu release
Your Ubuntu release is not supported anymore.
For upgrade information, please visit:
http://www.ubuntu.com/releaseendoflife
Please install all available updates for your release before upgrading.
听起来好像当我单击“升级”时...它实际上正在运行 do-release-upgrade,然后默默退出?无论如何,这非常烦人,似乎是一个需要修复的明显错误。
答案1
明显的错误伴随着明显的修复。我的一个软件包在 apt 升级过程中被阻止了
user@host:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libc++1
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
并且 apt dist-upgrade 也没有升级。
user@host:~$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libc++1
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
必须通过安装来升级它。
user@host:~$ sudo apt install libc++1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libc++1-12 libc++abi1-12
Suggested packages:
clang
The following packages will be REMOVED:
libc++1-11 libc++abi1-11
The following NEW packages will be installed:
libc++1-12 libc++abi1-12
The following packages will be upgraded:
libc++1
1 upgraded, 2 newly installed, 2 to remove and 0 not upgraded.
Need to get 264 kB of archives.
After this operation, 25.6 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
此后,do-release-upgrade 起作用了。
答案2
尝试以下命令:
sudo apt update && sudo apt upgrade -y
sudo apt list --upgradable
sudo apt-get autoclean && sudo apt-get autoremove && sudo apt-get clean -y