Public bug reported:
[ Description ]
This is from a "sutton.newell-ace" system, installed from Ubuntu Focal
daily 20210201.1:
laney@focal-test-nvidia-haxed:~$ sudo apt autoremove
[sudo] password for laney:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
libnvidia-cfg1-460 libnvidia-common-460 libnvidia-compute-460
libnvidia-decode-460 libnvidia-encode-460 libnvidia-extra-460
libnvidia-fbc1-460 libnvidia-gl-460 libnvidia-ifr1-460 libvdpau1
libxnvctrl0 linux-modules-nvidia-460-generic-hwe-20.04-edge
mesa-vdpau-drivers nvidia-compute-utils-460 nvidia-driver-460
nvidia-kernel-common-460 nvidia-kernel-source-460 nvidia-prime
nvidia-settings nvidia-utils-460 oem-sutton.newell-ace-meta
screen-resolution-extra ubuntu-oem-keyring vdpau-driver-all
xserver-xorg-video-nvidia-460
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-test-nvidia-haxed:~$ apt policy oem-sutton.newell-ace-meta
oem-sutton.newell-ace-meta:
Installed: 20.04~ubuntu1
Candidate: 20.04~ubuntu1
Version table:
*** 20.04~ubuntu1 100
100 /var/lib/dpkg/status
laney@focal-test-nvidia-haxed:~$ apt show oem-sutton.newell-ace-meta
Package: oem-sutton.newell-ace-meta
Version: 20.04~ubuntu1
Status: install ok installed
Priority: optional
Section: misc
Maintainer: Commercial Engineering <[email protected]>
Installed-Size: 13.3 kB
Depends: ubuntu-oem-keyring
Modaliases: meta(dmi:*bvnLENOVO:bvrN2W*)
Ubuntu-Oem-Kernel-Flavour: oem
Download-Size: unknown
APT-Manual-Installed: no
APT-Sources: /var/lib/dpkg/status
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-5.6.0-1042-oem
Feb 1 14:08:37 ubuntu /plugininstall.py: Autopurge linux-headers-oem-20.04
Feb 1 14:08:37 ubuntu /plugininstall.py: Autopurge linux-image-5.6.0-1042-oem
Feb 1 14:08:37 ubuntu /plugininstall.py: Autopurge linux-image-oem-20.04
Feb 1 14:08:37 ubuntu /plugininstall.py: Autopurge linux-modules-5.6.0-1042-oem
Feb 1 14:08:37 ubuntu /plugininstall.py: Autopurge linux-oem-20.04
Feb 1 14:08:37 ubuntu /plugininstall.py: Autopurge
linux-oem-5.6-headers-5.6.0-1042
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-Oem-Kernel-Flavour missing or as 'oem', not 'default')
1a. Alternatively, boot to a live session and run "echo
oem-sutton.newell-ace-meta | sudo tee /run/ubuntu-drivers-oem.autoinstall"
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-focal-test:~$ apt list '?installed ?not(?automatic)'
Listing... Done
base-passwd/focal,now 3.5.47 amd64 [installed]
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-locale-en/focal-updates,focal-security,now
84.0.2+build1-0ubuntu0.20.04.1 amd64 [installed]
fonts-indic/focal,focal,now 2:1.3 all [installed]
grep/focal,now 3.4-1 amd64 [installed]
grub-common/focal-updates,now 2.04-1ubuntu26.8 amd64 [installed]
grub-efi-amd64-signed/focal-updates,now 1.142.10+2.04-1ubuntu26.8 amd64
[installed]
grub-gfxpayload-lists/focal,now 0.7 amd64 [installed]
grub-pc-bin/focal-updates,now 2.04-1ubuntu26.8 amd64 [installed]
grub-pc/focal-updates,now 2.04-1ubuntu26.8 amd64 [installed]
grub2-common/focal-updates,now 2.04-1ubuntu26.8 amd64 [installed]
gzip/focal,now 1.10-0ubuntu4 amd64 [installed]
hostname/focal,now 3.23 amd64 [installed]
hyphen-en-gb/focal,focal,now 1:6.4.3-1 all [installed]
hyphen-en-us/focal,focal,now 2.8.8-7 all [installed]
init/focal,now 1.57 amd64 [installed]
language-pack-en-base/focal-updates,focal-updates,now 1:20.04+20210121 all
[installed]
language-pack-en/focal-updates,focal-updates,now 1:20.04+20210121 all
[installed]
language-pack-gnome-en-base/focal-updates,focal-updates,now 1:20.04+20210121
all [installed]
language-pack-gnome-en/focal-updates,focal-updates,now 1:20.04+20210121 all
[installed]
libdebconfclient0/focal,now 0.251ubuntu1 amd64 [installed]
libfprint-2-tod1/focal-updates,now 1:1.90.2+tod1-0ubuntu1~20.04.4 amd64
[installed]
libllvm9/focal,now 1:9.0.1-12 amd64 [installed]
libreoffice-help-common/focal-updates,focal-updates,now
1:6.4.6-0ubuntu0.20.04.1 all [installed]
libreoffice-help-en-gb/focal-updates,focal-updates,now 1:6.4.6-0ubuntu0.20.04.1
all [installed]
libreoffice-help-en-us/focal-updates,focal-updates,now 1:6.4.6-0ubuntu0.20.04.1
all [installed]
libreoffice-l10n-en-gb/focal-updates,focal-updates,now 1:6.4.6-0ubuntu0.20.04.1
all [installed]
linux-oem-20.04/focal-updates,focal-security,now 5.6.0.1042.38 amd64 [installed]
mokutil/focal,now 0.3.0+1538710437.fb6250f-1 amd64 [installed]
mythes-en-us/focal,focal,now 1:6.4.3-1 all [installed]
ncurses-base/focal,focal,now 6.2-0ubuntu2 all [installed]
ncurses-bin/focal,now 6.2-0ubuntu2 amd64 [installed]
oem-somerville-three-eyed-raven-meta/unknown,unknown 20.04ubuntu4 all
[upgradable from: 20.04~ubuntu2]
oem-sutton.newell-ace-meta/unknown,unknown 20.04ubuntu7 all [upgradable from:
20.04~ubuntu1]
os-prober/focal,now 1.74ubuntu2 amd64 [installed]
shim-signed/focal-updates,now 1.40.4+15+1552672080.a4a1fbe-0ubuntu2 amd64
[installed]
thunderbird-locale-en-gb/focal-updates,focal-updates,focal-security,focal-security,now
1:68.10.0+build1-0ubuntu0.20.04.1 all [installed]
thunderbird-locale-en-us/focal-updates,focal-updates,focal-security,focal-security,now
1:68.10.0+build1-0ubuntu0.20.04.1 all [installed]
thunderbird-locale-en/focal-updates,focal-security,now
1:68.10.0+build1-0ubuntu0.20.04.1 amd64 [installed]
ubuntu-desktop-minimal/focal-updates,now 1.450.2 amd64 [installed]
ubuntu-desktop/focal-updates,now 1.450.2 amd64 [installed]
ubuntu-minimal/focal-updates,now 1.450.2 amd64 [installed]
ubuntu-standard/focal-updates,now 1.450.2 amd64 [installed]
ubuntu-wallpapers/focal,focal,now 20.04.2-0ubuntu1 all [installed]
which I think is OK, although there's scope for optimisation here with
some of the libraries that are marked manual.
** Affects: ubiquity (Ubuntu)
Importance: Critical
Assignee: Iain Lane (laney)
Status: In Progress
** Affects: ubiquity (Ubuntu Focal)
Importance: Critical
Assignee: Iain Lane (laney)
Status: In Progress
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1914091
Title:
OEM kernel removed during install, metapackage marked for removal in
the target system
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1914091/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs