如果我尝试将我的 Ubuntu 服务器 18.04.5 LTS 安装升级到 20.04.1 LTS,则发布更新工具会将我的所有软件包列为No candidate ver: xxx
,因此不会更新任何软件包。
Reading cache
Checking package manager
.
.
.
No candidate ver: zypper
No candidate ver: zypper-common
No candidate ver: zypper-doc
No candidate ver: zytrax
No candidate ver: zziplib-bin
No candidate ver: zziplib-bin:i386
No candidate ver: zzuf
No candidate ver: zzuf:i386
Do you want to start the upgrade?
23 installed packages are no longer supported by Canonical. You can
still get support from the community.
51 packages are going to be removed.
Continue [yN] Details [d]
编辑:也许它列出了所有软件包,而不仅仅是已安装的软件包。例如,zypper
根据 ,未安装dpkg
。
答案1
好吧,这是我的错。我把/etc/apt/preferences.d
焦点放在了负优先级上。