I've just tried to upgrade Hirsute to Impish (21.04 to 21.10) using do-release-upgrade
, but it seems to have failed. At the end of the first attempt, a reboot was requested. But nothing seemed to have changed after the reboot. Subsequent runs of do-release-upgrade
fail "silently" with just "Aborted".
Checking /var/log/dist-upgrade/main.log
indicates that all packages have apparently been upgraded, and there's only a single error (shown here with context):
DEBUG running Quirks.PostDistUpgradeCache
DEBUG Comparing 5.11.0-38 with
INFO installing linux-metapackage: linux-generic
DEBUG Installing 'linux-generic' (linux metapackage may have been accidentally uninstalled)
ERROR Installing/upgrading 'linux-generic' failed
The second line is not a typo - the log really does show a comparison between the Hirsute kernel version and nothing. I'm not surprised by the lack of linux-generic
, since I have linux-generic-hwe-20.04
installed (instead?).
What REALLY confuses me is that nothing seems to have actually changed. lsb_release -a
still shows 21.04
(as does /etc/lsb-release
).
There do not appear to be any update available (apt update && apt full-upgrade
), despite all references to hirsute
being removed from /etc/apt/sources.list
(and /etc/apt/sources.list.d/*
).
Digging deeper, apt list --installed | grep base-files
(for /etc/lsb-release
; just used as an example) indicates that version 11ubuntu19
is installed (the Hirsute version). However, apt info -a base-files
shows:
Package: base-files
Version: 11.1ubuntu5
Priority: required
Essential: yes
Section: admin
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Santiago Vila <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 403 kB
Provides: base
Pre-Depends: awk
Depends: libc6 (>= 2.34), libcrypt1 (>= 1:4.4.10-10ubuntu3)
Breaks: debian-security-support (<< 2019.04.25), initscripts (<< 2.88dsf-13.3), sendfile (<< 2.1b.20080616-5.2~), ubuntu-server (<< 1.453)
Replaces: base, dpkg (<= 1.15.0), miscutils
Task: minimal
Download-Size: 63.1 kB
APT-Sources: http://gb.archive.ubuntu.com/ubuntu impish/main amd64 Packages
Description: Debian base system miscellaneous files
This package contains the basic filesystem hierarchy of a Debian system,
and several important miscellaneous files, such as /etc/debian_version,
/etc/host.conf, /etc/issue, /etc/motd, /etc/profile, and others, and the
text of several common licenses in use on Debian systems.
Package: base-files
Version: 11ubuntu19
Status: install ok installed
Priority: required
Essential: yes
Section: admin
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Santiago Vila <[email protected]>
Installed-Size: 402 kB
Provides: base
Pre-Depends: awk
Depends: libc6 (>= 2.3.4), libcrypt1 (>= 1:4.4.10-10ubuntu3)
Breaks: debian-security-support (<< 2019.04.25), initscripts (<< 2.88dsf-13.3), sendfile (<< 2.1b.20080616-5.2~), ubuntu-server (<< 1.453)
Replaces: base, dpkg (<= 1.15.0), miscutils
Download-Size: unknown
APT-Manual-Installed: no
APT-Sources: /var/lib/dpkg/status
Description: Debian base system miscellaneous files
This package contains the basic filesystem hierarchy of a Debian system,
and several important miscellaneous files, such as /etc/debian_version,
/etc/host.conf, /etc/issue, /etc/motd, /etc/profile, and others, and the
text of several common licenses in use on Debian systems.
So apt knows that an update is available, it just can't use or see it for some reason.
What's going on?!