升级到 24.04.1 失败,并显示一条消息,提示我需要在安装之前进行所有更新。如您在附加日志中看到的,我已尝试进行所有更新,但某些“esm-apps”更新未安装,我需要安装 Ubuntu Pro 来更新它们。我假设这些更新不是进行更新所必需的。
有一系列 dotnet 更新未安装,但我之前已删除 dotnet。这些更新是否阻碍了升级?如果是,我可以删除它们吗?
顺便说一句,我也尝试了软件更新程序,但它退出时没有任何消息。:-(
问候
$ sudo apt update
Hit:1 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:4 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:6 https://packages.microsoft.com/repos/vscode stable InRelease
Hit:7 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:8 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease
Hit:9 https://packages.microsoft.com/repos/code stable InRelease
Hit:10 https://hub-dist.unity3d.com/artifactory/hub-debian-prod-local stable InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
libheif1 libjs-jquery-ui libpathplan4 graphviz libgvpr2 libgvc6 libopenexr25
python3-scipy libcgraph6 libmagickcore-6.q16-6-extra libcdt5
libmagickwand-6.q16-6 imagemagick-6.q16 libmagickcore-6.q16-6 liblab-gamut1
imagemagick-6-common libde265-0 libpmix2
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following packages have been kept back:
dotnet-hostfxr-7.0 ubuntu-advantage-tools ubuntu-pro-client ubuntu-pro-client-l10n
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
$ do-release-upgrade
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
$ sudo apt list --upgradeable -a
Listing... Done
dotnet-hostfxr-7.0/jammy-updates,jammy-security 7.0.119-0ubuntu1~22.04.1 amd64 [upgradable from: 7.0.5-1]
dotnet-hostfxr-7.0/jammy 7.0.20-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.19-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.18-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.17-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.16-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.15-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.14-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.13-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.12-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.11-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.10-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.9-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.8-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.7-1 amd64
dotnet-hostfxr-7.0/jammy,now 7.0.5-1 amd64 [installed,upgradable to: 7.0.119-0ubuntu1~22.04.1]
dotnet-hostfxr-7.0/jammy 7.0.4-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.3-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.2-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.1-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.0-1 amd64
$ sudo apt remove dotnet
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'dotnet' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
“我已尝试进行所有更新,但是某些‘esm-apps’更新尚未安装,我需要安装 Ubuntu Pro 来更新它们。 ”
您误读了输出。Ubuntu Pro ('esm-apps') 不是必需的。
您的系统无法发布升级的原因是......
...分阶段更新。
最安全的做法是让阶段性工作完成。也许几天。也许一周。然后那些软件包(除了
dotnet-hostfxr-7.0
)将会安装,然后你就可以发布升级了。如果你真的想,你可以覆盖阶段并立即安装它们。如何做到这一点已经解释了很多次,所以如果你想走这条路,我会让你搜索它。
您的 dotnet 问题看起来很简单:
包名称是
dotnet-hostfxr-7.0
但是你写道
$ sudo apt remove dotnet
尝试使用完整的包名称:
$ sudo apt remove dotnet-hostfxr-7.0