[Bug 1889449] Re: 18.04 to 20.04.1 upgrade on raspberry pi removes too many kernel meta packages
Brian Murray
1889449 at bugs.launchpad.net
Fri Jul 31 18:08:20 UTC 2020
I ran a distribution upgrade with the changes found at
https://pastebin.ubuntu.com/p/GxF2QHhrJT/ and both linux-headers-raspi
and linux-raspi were kept. Here are portions of the main.log file:
2020-07-31 17:09:19,253 DEBUG package 'linux-headers-raspi' produces an unwanted removal 'linux-raspi', skipping
2020-07-31 17:09:21,085 DEBUG 'linux-headers-raspi' scheduled for remove but not safe to remove, skipping
2020-07-31 17:09:27,964 DEBUG skipping kernel metapackage 'linux-raspi'
2020-07-31 17:09:27,964 DEBUG 'linux-raspi' scheduled for remove but not safe to remove, skipping
2020-07-31 17:09:29,672 DEBUG Finish checking for obsolete pkgs
2020-07-31 17:09:29,747 DEBUG The following packages are marked for removal: acpid liblvm2cmd2.02 libpython3.6-minimal libisccfg160 ureadahead libargon2-0 acl linux-raspi-hwe-18.04 gcc-8-base libpython3.6-stdlib python3-asn1crypto libicu60 libirs160 linux-raspi-5.4-headers-5.4.0-1015 geoip-database perl-modules-5.26 libncurses5 python3-pam dnsmasq-base xdelta3 linux-headers-raspi-hwe-18.04 libpython3.6 python3.6 libisc169 ebtables libip6tc0 command-not-found-data libncursesw5 libprocps6 net-tools lxd libplymouth4 nplan liblxc1 libperl5.26 python3.6-minimal libiptc0 libisc-export169 libgeoip1 libtinfo5 linux-image-raspi-hwe-18.04 libnih1 liblvm2app2.2 libgdbm5 liblwres160 libntfs-3g88 mlocate libhogweed4 libreadline7 libdns-export1100 libnettle6 libevent-2.1-6 libidn11 multiarch-support btrfs-tools libffi6 dns-root-data libisccc160 libbind9-160 libjson-c3 libdns1100 liblxc-common libip4tc0 lxd-client uidmap libssl1.0.0 lxcfs
This looks right and I'll upload a fix today.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1889449
Title:
18.04 to 20.04.1 upgrade on raspberry pi removes too many kernel meta
packages
Status in ubuntu-release-upgrader package in Ubuntu:
New
Bug description:
In a raspberry pi system running 18.04, when running "do-release-upgrade -d" to upgrade to 20.04.1,
the transition from linux-raspi2-hwe-18.04 to linux-raspi doesn't seem to be done correctly and the system ends up without this and the linux-headers-raspi meta packages.
These are the meta packages installed before the release upgrade:
ii linux-headers-raspi2-hwe-18.04 5.3.0.1017.6 arm64 Linux kernel headers for Raspberry Pi systems.
ii linux-image-raspi2-hwe-18.04 5.3.0.1017.6 arm64 Linux kernel image for Raspberry Pi systems.
ii linux-raspi2-hwe-18.04 5.3.0.1017.6 arm64 Complete Linux kernel for Raspberry Pi systems.
After the upgrade is complete this is the only kernel meta installed:
ii linux-image-raspi 5.4.0.1015.50
arm64 Raspberry Pi Linux kernel image
During the upgrade, these kernel packages update are made:
Selecting previously unselected package linux-raspi-headers-5.4.0-1015.
Preparing to unpack .../244-linux-raspi-headers-5.4.0-1015_5.4.0-1015.15_arm64.deb ...
Unpacking linux-raspi-headers-5.4.0-1015 (5.4.0-1015.15) ...
Selecting previously unselected package linux-headers-5.4.0-1015-raspi.
Preparing to unpack .../245-linux-headers-5.4.0-1015-raspi_5.4.0-1015.15_arm64.deb ...
Unpacking linux-headers-5.4.0-1015-raspi (5.4.0-1015.15) ...
Selecting previously unselected package linux-headers-raspi.
Preparing to unpack .../246-linux-headers-raspi_5.4.0.1015.50_arm64.deb ...
Unpacking linux-headers-raspi (5.4.0.1015.50) ...
Selecting previously unselected package linux-modules-5.4.0-1015-raspi.
Preparing to unpack .../247-linux-modules-5.4.0-1015-raspi_5.4.0-1015.15_arm64.deb ...
Unpacking linux-modules-5.4.0-1015-raspi (5.4.0-1015.15) ...
Selecting previously unselected package linux-image-5.4.0-1015-raspi.
Preparing to unpack .../248-linux-image-5.4.0-1015-raspi_5.4.0-1015.15_arm64.deb ...
Unpacking linux-image-5.4.0-1015-raspi (5.4.0-1015.15) ...
Selecting previously unselected package linux-image-raspi.
Preparing to unpack .../249-linux-image-raspi_5.4.0.1015.50_arm64.deb ...
Unpacking linux-image-raspi (5.4.0.1015.50) ...
Selecting previously unselected package linux-raspi.
Preparing to unpack .../250-linux-raspi_5.4.0.1015.50_arm64.deb ...
Unpacking linux-raspi (5.4.0.1015.50) ...
Preparing to unpack .../251-linux-raspi2-hwe-18.04_5.4.0.1015.50_arm64.deb ...
Unpacking linux-raspi2-hwe-18.04 (5.4.0.1015.50) over (5.3.0.1030.20) ...
Preparing to unpack .../252-linux-headers-raspi2-hwe-18.04_5.4.0.1015.50_arm64.deb ...
Unpacking linux-headers-raspi2-hwe-18.04 (5.4.0.1015.50) over (5.3.0.1030.20) ...
Preparing to unpack .../253-linux-image-raspi2-hwe-18.04_5.4.0.1015.50_arm64.deb ...
Unpacking linux-image-raspi2-hwe-18.04 (5.4.0.1015.50) over (5.3.0.1030.20) ...
At the end of the upgrade process, do-release-upgrade calculates the obsolete packages and remove the following kernel packages:
linux-headers-5.3.0-1017-raspi2
linux-headers-5.3.0-1030-raspi2 linux-headers-5.4.0-1015-raspi
linux-headers-raspi linux-headers-raspi2-hwe-18.04
linux-image-5.3.0-1017-raspi2 linux-image-raspi2-hwe-18.04
linux-modules-5.3.0-1017-raspi2 linux-raspi
linux-raspi-headers-5.4.0-1015 linux-raspi2-5.3-headers-5.3.0-1017
linux-raspi2-5.3-headers-5.3.0-1030 linux-raspi2-hwe-18.04
Please note that the flavour of the raspberry pi kernel changed from
"raspi2" on 18.04 to "raspi" on 20.04. The transitional packages in
20.04 seem to be correct, so this behaviour is likely an issue with
do-release-upgrade not handling this rename correctly and removing too
many packages.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1889449/+subscriptions
More information about the foundations-bugs
mailing list