从 20.10 升级到 22.04.3 LTS 时收到消息:未安装必需的依赖项,未安装所需的依赖项“apt(>=2.1.10ubuntu0.3)”
PC:~$ sudo apt install apt 2.1.10ubuntu0.3
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package 2.1.10ubuntu0.3
E: Couldn't find any package by glob '2.1.10ubuntu0.3'
答案1
另一个选择是运行“do-release-upgrade”脚本几次(20.10 -> 21.04 -> 21.10 -> 22.04)。这会非常耗时,备份并安装最新版本可能是最佳选择。