OEM kernel removed during install, metapackage marked for removal in the target system
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubiquity (Ubuntu) |
Fix Released
|
Critical
|
Iain Lane | ||
Focal |
Fix Released
|
Critical
|
Iain Lane |
Bug Description
[ Description ]
This is from a "sutton.newell-ace" system, installed from Ubuntu Focal daily 20210201.1:
laney@focal-
[sudo] password for laney:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
libnvidia-
libxnvctrl0 linux-modules-
nvidia-settings nvidia-utils-460 oem-sutton.
0 to upgrade, 0 to newly install, 25 to remove and 0 not to upgrade.
After this operation, 491 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
laney@focal-
oem-sutton.
Installed: 20.04~ubuntu1
Candidate: 20.04~ubuntu1
Version table:
*** 20.04~ubuntu1 100
100 /var/lib/
laney@focal-
Package: oem-sutton.
Version: 20.04~ubuntu1
Status: install ok installed
Priority: optional
Section: misc
Maintainer: Commercial Engineering <email address hidden>
Installed-Size: 13.3 kB
Depends: ubuntu-oem-keyring
Modaliases: meta(dmi:
Ubuntu-
Download-Size: unknown
APT-Manual-
APT-Sources: /var/lib/
Description: hardware support for Sutton Newell Ace platform
This is a metapackage for Sutton Newell Ace platform. It installs
packages needed to support this hardware fully.
1) The packages are marked for autoremoval and shouldn't be.
2) The OEM kernel is not installed.
In the syslog we can see:
Feb 1 14:08:37 ubuntu /plugininstall.py: Autopurge linux-headers-
Feb 1 14:08:37 ubuntu /plugininstall.py: Autopurge linux-headers-
Feb 1 14:08:37 ubuntu /plugininstall.py: Autopurge linux-image-
Feb 1 14:08:37 ubuntu /plugininstall.py: Autopurge linux-image-
Feb 1 14:08:37 ubuntu /plugininstall.py: Autopurge linux-modules-
Feb 1 14:08:37 ubuntu /plugininstall.py: Autopurge linux-oem-20.04
Feb 1 14:08:37 ubuntu /plugininstall.py: Autopurge linux-oem-
that the kernel was autoremoved.
[ Fix ]
This is a regression from 21.04.5 / 20.04.15.5. The new code needs to use "from_user=True", so that the packages are marked as manually installed and therefore don't get autoremoved.
[ QA ]
1. Boot the installer on a system which requires an OEM metapackage and the OEM kernel. (ubuntu-drivers list-oem is nonempty; apt show THATPACKAGE shows Ubuntu-
1a. Alternatively, boot to a live session and run "echo oem-sutton.
2. Install the system as normal.
3. Reboot into the target and check
3a. That `uname -a` shows you are on the OEM kernel
3b. That `apt autoremove` shows no packages for autoremoval
[ Where things could go wrong ]
Messing with the code which is deciding what to install in the target system is always a bit delicate. I think the most likely thing to happen is that we end up marking too much stuff as manual so it never gets autoremoved. Checking on a system installed with the proposed ubiquity shows:
laney@7390-
Listing... Done
base-passwd/
dash/focal,now 0.5.10.2-6 amd64 [installed]
diffutils/focal,now 1:3.7-3 amd64 [installed]
findutils/focal,now 4.7.0-1ubuntu1 amd64 [installed]
firefox-
fonts-indic/
grep/focal,now 3.4-1 amd64 [installed]
grub-common/
grub-efi-
grub-gfxpayload
grub-pc-
grub-pc/
grub2-common/
gzip/focal,now 1.10-0ubuntu4 amd64 [installed]
hostname/focal,now 3.23 amd64 [installed]
hyphen-
hyphen-
init/focal,now 1.57 amd64 [installed]
language-
language-
language-
language-
libdebconfclien
libfprint-
libllvm9/focal,now 1:9.0.1-12 amd64 [installed]
libreoffice-
libreoffice-
libreoffice-
libreoffice-
linux-oem-
mokutil/focal,now 0.3.0+153871043
mythes-
ncurses-
ncurses-
oem-somerville-
oem-sutton.
os-prober/focal,now 1.74ubuntu2 amd64 [installed]
shim-signed/
thunderbird-
thunderbird-
thunderbird-
ubuntu-
ubuntu-
ubuntu-
ubuntu-
ubuntu-
which I think is OK, although there's scope for optimisation here with some of the libraries that are marked manual.
Related branches
- Julian Andres Klode (community): Approve
- Ubuntu Installer Team: Pending requested
-
Diff: 30 lines (+4/-4)1 file modifiedubiquity/install_misc.py (+4/-4)
Changed in ubiquity (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Critical |
Changed in ubiquity (Ubuntu Focal): | |
importance: | Undecided → Critical |
status: | New → In Progress |
Changed in ubiquity (Ubuntu): | |
assignee: | nobody → Iain Lane (laney) |
Changed in ubiquity (Ubuntu Focal): | |
assignee: | nobody → Iain Lane (laney) |
milestone: | none → ubuntu-20.04.2 |
Hello Iain, or anyone else affected,
Accepted ubiquity into focal-proposed. The package will build now and be available at https:/ /launchpad. net/ubuntu/ +source/ ubiquity/ 20.04.15. 6 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification- needed- focal to verification- done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed- focal. In either case, without details of your testing we will not be able to proceed.
Further information regarding the verification process can be found at https:/ /wiki.ubuntu. com/QATeam/ PerformingSRUVe rification . Thank you in advance for helping!
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.