Ubuntu 软件更新程序在升级时死机

Ubuntu 软件更新程序在升级时死机

我目前正在运行 21.04。我想升级到 21.10,但当我尝试通过单击按钮(见图)开始升级时,窗口只是关闭,仅此而已。

截屏

什么也没有写/var/log/apt/history.logterm.log

我从命令行运行 sudo 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

我按照此处的说明更改了我的 sources.list 文件:如何安装软件或从旧的不受支持的版本升级? 但当我跑步时sudo apt-get update我得到

Hit:1 https://dl.google.com/linux/chrome/deb stable InRelease
Ign:2 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  InRelease
Hit:3 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Release
Ign:5 http://old-releases.ubuntu.com/ubuntu hirsute InRelease
Ign:6 http://old-releases.ubuntu.com/ubuntu hirsute-updates InRelease
Ign:7 http://old-releases.ubuntu.com/ubuntu hirsute-backports InRelease
Ign:8 http://old-releases.ubuntu.com/ubuntu hirsute-security InRelease
Err:9 http://old-releases.ubuntu.com/ubuntu hirsute Release
  404  Not Found [IP: 91.189.91.123 80]
Err:10 http://old-releases.ubuntu.com/ubuntu hirsute-updates Release
  404  Not Found [IP: 91.189.91.123 80]
Err:11 http://old-releases.ubuntu.com/ubuntu hirsute-backports Release
  404  Not Found [IP: 91.189.91.123 80]
Err:12 http://old-releases.ubuntu.com/ubuntu hirsute-security Release
  404  Not Found [IP: 91.189.91.123 80]

如果我然后运行sudo apt-get dist-upgrade

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  cuda cuda-drivers
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

我修改了 source.list 文件,使用 archive 而不是 old-releases,然后运行sudo apt update,一切正常。然后我运行了“sudo apt dist-upgrade”,结果

0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

然后我跑了

sudo do-release-upgrade

结果如下:

Checking for a new Ubuntu release
Your Ubuntu release is not supported anymore.

答案1

事实证明,主要问题是我有两个手动安装的包(cuda、cuda-drivers)没有更新。

根据这里的答案:askubuntu.com/questions/601我需要

谨慎解决方案2:

谨慎的解决方案是运行 sudo apt-get install [保留的软件包列表]。在大多数情况下,这将为保留的软件包提供成功升级所需的内容。

sudo apt-get install cuda cuda-drivers

安装了这些软件包。我按照上述命令输出的指示重新启动,然后尝试通过软件更新程序启动升级。这似乎解决了问题。

相关内容