[Bug 2011925] Re: flash-kernel 3.106ubuntu13 causes a trigger cycle when installing arm64 kernels on VMs
Francis Ginther
2011925 at bugs.launchpad.net
Thu Mar 23 19:21:48 UTC 2023
@waveform,
I've tested on both aws and gcp, by installing the flash-kernel update
first, then installing the linux-generic kernel. Here's the apt-get
output:
$ apt-get install --yes kernel-testing--linux--full--generic
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
libnuma1
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
firmware-sof-signed linux-firmware linux-headers-6.2.0-18
linux-headers-6.2.0-18-generic linux-headers-generic
linux-image-6.2.0-18-generic linux-image-generic
linux-modules-6.2.0-18-generic linux-modules-extra-6.2.0-18-generic
wireless-regdb
Suggested packages:
fdutils linux-doc | linux-source-6.2.0 linux-tools
The following NEW packages will be installed:
firmware-sof-signed linux-firmware linux-generic linux-headers-6.2.0-18
linux-headers-6.2.0-18-generic linux-headers-generic
linux-image-6.2.0-18-generic linux-image-generic
linux-modules-6.2.0-18-generic linux-modules-extra-6.2.0-18-generic
wireless-regdb
0 upgraded, 11 newly installed, 0 to remove and 5 not upgraded.
Need to get 428 MB of archives.
After this operation, 1821 MB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports lunar/main arm64 firmware-sof-signed all 2.2.4-1 [651 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports lunar/main arm64 linux-firmware all 20230323.gitbcdcfbcf-0ubuntu1 [281 MB]
Get:3 http://ports.ubuntu.com/ubuntu-ports lunar/main arm64 linux-modules-6.2.0-18-generic arm64 6.2.0-18.18 [28.0 MB]
Get:4 http://ports.ubuntu.com/ubuntu-ports lunar/main arm64 linux-image-6.2.0-18-generic arm64 6.2.0-18.18 [20.0 MB]
Get:5 http://ports.ubuntu.com/ubuntu-ports lunar/main arm64 wireless-regdb all 2022.06.06-0ubuntu1 [10.3 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports lunar/main arm64 linux-modules-extra-6.2.0-18-generic arm64 6.2.0-18.18 [82.0 MB]
Get:7 http://ports.ubuntu.com/ubuntu-ports lunar/main arm64 linux-image-generic arm64 6.2.0.18.18 [7936 B]
Get:8 http://ports.ubuntu.com/ubuntu-ports lunar/main arm64 linux-headers-6.2.0-18 all 6.2.0-18.18 [13.1 MB]
Get:9 http://ports.ubuntu.com/ubuntu-ports lunar/main arm64 linux-headers-6.2.0-18-generic arm64 6.2.0-18.18 [2924 kB]
Get:10 http://ports.ubuntu.com/ubuntu-ports lunar/main arm64 linux-headers-generic arm64 6.2.0.18.18 [7844 B]
Get:11 http://ports.ubuntu.com/ubuntu-ports lunar/main arm64 linux-generic arm64 6.2.0.18.18 [1704 B]
Fetched 428 MB in 5s (78.2 MB/s)
Selecting previously unselected package firmware-sof-signed.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 68792 files and directories currently installed.)
Preparing to unpack .../00-firmware-sof-signed_2.2.4-1_all.deb ...
Unpacking firmware-sof-signed (2.2.4-1) ...
Selecting previously unselected package linux-firmware.
Preparing to unpack .../01-linux-firmware_20230323.gitbcdcfbcf-0ubuntu1_all.deb ...
Unpacking linux-firmware (20230323.gitbcdcfbcf-0ubuntu1) ...
Selecting previously unselected package linux-modules-6.2.0-18-generic.
Preparing to unpack .../02-linux-modules-6.2.0-18-generic_6.2.0-18.18_arm64.deb ...
Unpacking linux-modules-6.2.0-18-generic (6.2.0-18.18) ...
Selecting previously unselected package linux-image-6.2.0-18-generic.
Preparing to unpack .../03-linux-image-6.2.0-18-generic_6.2.0-18.18_arm64.deb ...
Unpacking linux-image-6.2.0-18-generic (6.2.0-18.18) ...
Selecting previously unselected package wireless-regdb.
Preparing to unpack .../04-wireless-regdb_2022.06.06-0ubuntu1_all.deb ...
Unpacking wireless-regdb (2022.06.06-0ubuntu1) ...
Selecting previously unselected package linux-modules-extra-6.2.0-18-generic.
Preparing to unpack .../05-linux-modules-extra-6.2.0-18-generic_6.2.0-18.18_arm64.deb ...
Unpacking linux-modules-extra-6.2.0-18-generic (6.2.0-18.18) ...
Selecting previously unselected package linux-image-generic.
Preparing to unpack .../06-linux-image-generic_6.2.0.18.18_arm64.deb ...
Unpacking linux-image-generic (6.2.0.18.18) ...
Selecting previously unselected package linux-headers-6.2.0-18.
Preparing to unpack .../07-linux-headers-6.2.0-18_6.2.0-18.18_all.deb ...
Unpacking linux-headers-6.2.0-18 (6.2.0-18.18) ...
Selecting previously unselected package linux-headers-6.2.0-18-generic.
Preparing to unpack .../08-linux-headers-6.2.0-18-generic_6.2.0-18.18_arm64.deb ...
Unpacking linux-headers-6.2.0-18-generic (6.2.0-18.18) ...
Selecting previously unselected package linux-headers-generic.
Preparing to unpack .../09-linux-headers-generic_6.2.0.18.18_arm64.deb ...
Unpacking linux-headers-generic (6.2.0.18.18) ...
Selecting previously unselected package linux-generic.
Preparing to unpack .../10-linux-generic_6.2.0.18.18_arm64.deb ...
Unpacking linux-generic (6.2.0.18.18) ...
Setting up linux-firmware (20230323.gitbcdcfbcf-0ubuntu1) ...
update-initramfs: Generating /boot/initrd.img-5.19.0-1010-gcp
flash-kernel: deferring update (trigger activated)
Setting up linux-modules-6.2.0-18-generic (6.2.0-18.18) ...
Setting up firmware-sof-signed (2.2.4-1) ...
Setting up wireless-regdb (2022.06.06-0ubuntu1) ...
Setting up linux-headers-6.2.0-18 (6.2.0-18.18) ...
Setting up linux-image-6.2.0-18-generic (6.2.0-18.18) ...
I: /boot/vmlinuz is now a symlink to vmlinuz-6.2.0-18-generic
I: /boot/initrd.img is now a symlink to initrd.img-6.2.0-18-generic
Setting up linux-modules-extra-6.2.0-18-generic (6.2.0-18.18) ...
Setting up linux-headers-6.2.0-18-generic (6.2.0-18.18) ...
Setting up linux-image-generic (6.2.0.18.18) ...
Setting up linux-headers-generic (6.2.0.18.18) ...
Setting up linux-generic (6.2.0.18.18) ...
Processing triggers for man-db (2.11.2-1) ...
Processing triggers for flash-kernel (3.106ubuntu14~ppa1) ...
flash-kernel: requested kernel 6.2.0-18-generic is in state triggers-pending.
flash-kernel: quitting cleanly, anticipating a future run
Processing triggers for linux-image-6.2.0-18-generic (6.2.0-18.18) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.2.0-18-generic
flash-kernel: deferring update (trigger activated)
/etc/kernel/postinst.d/zz-flash-kernel:
flash-kernel: deferring update (trigger activated)
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/40-force-partuuid.cfg'
Sourcing file `/etc/default/grub.d/50-cloudimg-settings.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
GRUB_FORCE_PARTUUID is set, will attempt initrdless boot
Found linux image: /boot/vmlinuz-6.2.0-18-generic
Found initrd image: /boot/initrd.img-6.2.0-18-generic
Found linux image: /boot/vmlinuz-5.19.0-1010-gcp
Found initrd image: /boot/initrd.img-5.19.0-1010-gcp
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
Processing triggers for flash-kernel (3.106ubuntu14~ppa1) ...
System running in EFI mode, skipping.
Pending kernel upgrade!
Running kernel version:
5.19.0-1010-gcp
Diagnostics:
The currently running kernel version is not the expected kernel version 6.2.0-18-generic.
Restarting the system to load the new kernel will not be handled
automatically, so you should consider rebooting. [Return]
Failed to check for processor microcode upgrades.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this
host.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to flash-kernel in Ubuntu.
https://bugs.launchpad.net/bugs/2011925
Title:
flash-kernel 3.106ubuntu13 causes a trigger cycle when installing
arm64 kernels on VMs
Status in flash-kernel package in Ubuntu:
New
Bug description:
We're seeing the following error when trying to install kernel
packages on cloud instances with the latest flash-kernel,
3.106ubuntu13.
sudo apt-get install --yes linux-generic
...
: /boot/vmlinuz is now a symlink to vmlinuz-6.1.0-16-generic
I: /boot/initrd.img is now a symlink to initrd.img-6.1.0-16-generic
Setting up linux-headers-generic (6.1.0.16.16) ...
Setting up linux-image-generic (6.1.0.16.16) ...
Setting up linux-generic (6.1.0.16.16) ...
Processing triggers for man-db (2.11.2-1) ...
Processing triggers for flash-kernel (3.106ubuntu13) ...
flash-kernel: requested kernel 6.1.0-16-generic is in state triggers-pending.
flash-kernel: deferring update (trigger activated)
dpkg: cycle found while processing triggers:
chain of packages whose triggers are or may be responsible:
flash-kernel -> linux-image-6.1.0-16-generic
packages' pending triggers which are or may be unresolvable:
linux-image-6.1.0-16-generic: linux-update-6.1.0-16-generic
flash-kernel: flash-kernel
dpkg: error processing package linux-image-6.1.0-16-generic (--configure):
triggers looping, abandoned
Processing triggers for flash-kernel (3.106ubuntu13) ...
flash-kernel: requested kernel 6.1.0-16-generic is in state half-configured.
flash-kernel: deferring update (trigger activated)
Processing triggers for flash-kernel (3.106ubuntu13) ...
flash-kernel: requested kernel 6.1.0-16-generic is in state half-configured.
flash-kernel: deferring update (trigger activated)
Processing triggers for flash-kernel (3.106ubuntu13) ...
flash-kernel: requested kernel 6.1.0-16-generic is in state half-configured.
flash-kernel: deferring update (trigger activated)
dpkg: cycle found while processing triggers:
chain of packages whose triggers are or may be responsible:
flash-kernel -> flash-kernel -> flash-kernel -> flash-kernel
packages' pending triggers which are or may be unresolvable:
flash-kernel: flash-kernel
dpkg: error processing package flash-kernel (--configure):
triggers looping, abandoned
Errors were encountered while processing:
linux-image-6.1.0-16-generic
flash-kernel
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
I was able to reproduce this on an aws image with serial 20230306, but
not on one with serial 20230303 (which was using flash-kernel
3.106ubuntu12. I also see this on the latest google cloud images.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/flash-kernel/+bug/2011925/+subscriptions
More information about the foundations-bugs
mailing list