18.04 to 20.04.1 upgrade on raspberry pi removes too many kernel meta packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
High
|
Brian Murray | ||
Focal |
Fix Released
|
High
|
Brian Murray |
Bug Description
Test Case
---------
1) On a Raspberry Pi running the 18.04 LTS image run "do-release-upgrade -d"
2) Once the upgrade completes observe that linux-raspi and linux-headers-raspi are offered for removal. (You'll see this when asked about removing obsolete packages.)
With the version of the dist-upgrader from -proposed (which you'll need to manually download, unpack, and run) you'll notice that linux-raspi and linux-headers-raspi are still installed after the upgrade completes.
Regression Potential
-------
The distribution upgrade code is now just not considering some additional packages for removal. This is a safe operation and if there was a regression it would be in poorly written python code which could cause a Traceback. So examine the actual change carefully.
Original 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-
These are the meta packages installed before the release upgrade:
ii linux-headers-
ii linux-image-
ii linux-raspi2-
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-
Preparing to unpack .../244-
Unpacking linux-raspi-
Selecting previously unselected package linux-headers-
Preparing to unpack .../245-
Unpacking linux-headers-
Selecting previously unselected package linux-headers-
Preparing to unpack .../246-
Unpacking linux-headers-raspi (5.4.0.1015.50) ...
Selecting previously unselected package linux-modules-
Preparing to unpack .../247-
Unpacking linux-modules-
Selecting previously unselected package linux-image-
Preparing to unpack .../248-
Unpacking linux-image-
Selecting previously unselected package linux-image-raspi.
Preparing to unpack .../249-
Unpacking linux-image-raspi (5.4.0.1015.50) ...
Selecting previously unselected package linux-raspi.
Preparing to unpack .../250-
Unpacking linux-raspi (5.4.0.1015.50) ...
Preparing to unpack .../251-
Unpacking linux-raspi2-
Preparing to unpack .../252-
Unpacking linux-headers-
Preparing to unpack .../253-
Unpacking linux-image-
At the end of the upgrade process, do-release-upgrade calculates the obsolete packages and remove the following kernel packages:
linux-
linux-
linux-
linux-
linux-
linux-
linux-
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.
Changed in ubuntu-release-upgrader (Ubuntu): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | New → Fix Committed |
importance: | Undecided → High |
Changed in ubuntu-release-upgrader (Ubuntu Focal): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Brian Murray (brian-murray) |
milestone: | none → ubuntu-20.04.1 |
tags: | added: id-5f242f6be5acef7246cd5459 |
description: | updated |
tags: |
added: verification-done verification-done-focal removed: verification-needed verification-needed-focal |
I am attaching the screen log of the upgrade process.