尝试从 Ubuntu 20.04 LTS 升级到 Ubuntu 22.04 LTS

Lew*_*oss 6 upgrade

我正在尝试将我的系统从 Ubuntu 20.04 LTS 升级到 Ubuntu 22.04 LTS。我做到了

% sudo apt update
% sudo apt upgrade
% sudo apt autoremove
% sudo do-release-upgrade
Run Code Online (Sandbox Code Playgroud)

它顺利地犁了几分钟,然后发生了这种情况:

Installing the upgrade can take several hours. Once the download has 
finished, the process cannot be canceled. 

 Continue [yN]  Details [d]y

Fetching
Err https://esm.ubuntu.com/apps/ubuntu jammy-apps-security/main amd64 python2.7-dev amd64 2.7.18-13ubuntu1.1+esm2                                 
  401  Unauthorized [IP: 2001:67c:1562::21 443]                                                                                                   
Err https://esm.ubuntu.com/apps/ubuntu jammy-apps-security/main amd64 python2.7 amd64 2.7.18-13ubuntu1.1+esm2                                     
  401  Unauthorized [IP: 2001:67c:1562::21 443]                                                                                                   
Err https://esm.ubuntu.com/apps/ubuntu jammy-apps-security/main amd64 libpython2.7-dev amd64 2.7.18-13ubuntu1.1+esm2                              
  401  Unauthorized [IP: 2001:67c:1562::21 443]                                                                                                   
Run Code Online (Sandbox Code Playgroud)

Lew*_*oss 6

解决办法是手动删除麻烦的包并尝试重新进行升级。我对此进行了多次迭代,甚至对一个难以卸载的软件包使用了“aptitude”。尽管如此,仅用了几个小时的努力就克服了困难。比全新安装容易得多。