Kubuntu 21.10 -> 22.04 由于缺少发布文件、404 未找到 impish-security 发布等而升级失败

Kubuntu 21.10 -> 22.04 由于缺少发布文件、404 未找到 impish-security 发布等而升级失败

我尝试将我的 Kubuntu 从 21.10 升级到 22.04。当我尝试通过 GUI 时,出现此错误:

在此输入图像描述

我尝试使用命令行进行更新/升级,并显示 EOL 消息:

$ 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

接下来我尝试按照说明进行操作这里,但这也导致了错误:

$ sudo apt update && sudo apt full-upgrade
Hit:1 https://apt.releases.hashicorp.com impish InRelease
Hit:2 https://brave-browser-apt-release.s3.brave.com stable InRelease                                                                                     
Ign:3 http://us.archive.ubuntu.com/ubuntu impish InRelease                                                                                                
Ign:4 http://security.ubuntu.com/ubuntu impish-security InRelease                                                                                         
Hit:5 http://ppa.launchpad.net/pipewire-debian/pipewire-upstream/ubuntu impish InRelease                                                                  
Ign:6 http://us.archive.ubuntu.com/ubuntu impish-updates InRelease                                                                                        
Ign:7 http://us.archive.ubuntu.com/ubuntu impish-backports InRelease                                                                                      
Err:8 http://security.ubuntu.com/ubuntu impish-security Release                                                                                           
  404  Not Found [IP: 185.125.190.36 80]
Err:9 http://us.archive.ubuntu.com/ubuntu impish Release                                                                                                  
  404  Not Found [IP: 91.189.91.38 80]
Get:10 https://download.docker.com/linux/ubuntu impish InRelease [48.9 kB]                                                                                
Err:11 http://us.archive.ubuntu.com/ubuntu impish-updates Release                                                                                         
  404  Not Found [IP: 91.189.91.38 80]
Hit:12 https://packages.microsoft.com/repos/ms-teams stable InRelease                                                                                     
Hit:13 https://download.sublimetext.com apt/stable/ InRelease                                                                                             
Err:14 http://us.archive.ubuntu.com/ubuntu impish-backports Release                                                                                       
  404  Not Found [IP: 91.189.91.38 80]
Hit:15 http://ppa.launchpad.net/solaar-unifying/stable/ubuntu impish InRelease                                                             
Hit:16 http://repo.mysql.com/apt/ubuntu impish InRelease                                                             
Hit:17 https://packagecloud.io/AtomEditor/atom/any any InRelease      
Reading package lists... Done
E: The repository 'http://security.ubuntu.com/ubuntu impish-security Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://us.archive.ubuntu.com/ubuntu impish Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://us.archive.ubuntu.com/ubuntu impish-updates Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://us.archive.ubuntu.com/ubuntu impish-backports Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

我如何才能将 Kubuntu 升级到下一个版本?我并不反对擦除我的计算机并从全新安装开始,但我已经自定义了我的桌面环境,并且不想重新创建它。不过,也许有一种方法可以保留此配置,使全新安装不那么痛苦?

答案1

我已经按照说明解决了这个问题这里--具体来说,似乎已经成功的方法是将/etc/apt/sources.list文件替换为使用旧的顽皮版本的文件,如下所示:

## EOL upgrade sources.list
# Required
deb http://old-releases.ubuntu.com/ubuntu/ impish main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ impish-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ impish-security main restricted universe multiverse

# Optional
#deb http://old-releases.ubuntu.com/ubuntu/ impish-backports main restricted universe multiverse

一旦我这样做了,更新/升级过程就非常顺利了,现在经过几次重新启动后,我正在 22.04 LTS 上用燃气做饭:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:        22.04
Codename:       jammy

相关内容