Tails FTBFS: grub-pc is not configured
The error happens when provisioning the basebox. Logs
10:01:19 default: + apt-get -y dist-upgrade
10:01:19 default: Reading package lists...
10:01:19 default: Building dependency tree...
10:01:19 default:
10:01:19 default: Reading state information...
10:01:19 default: Calculating upgrade...
10:01:19 default: The following NEW packages will be installed:
10:01:19 default: linux-image-5.10.0-19-amd64
10:01:19 default: The following packages will be upgraded:
10:01:19 default: dbus grub-common grub-pc grub-pc-bin grub2 grub2-common isc-dhcp-client
10:01:19 default: isc-dhcp-common libdbus-1-3 libexpat1 libksba8 libxml2 linux-image-amd64
10:01:19 default: 13 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
10:01:19 default: Need to get 61.8 MB of archives.
10:01:19 default: After this operation, 318 MB of additional disk space will be used.
[ snip ]
10:01:29 default: Setting up linux-image-5.10.0-19-amd64 (5.10.149-2) ...
10:01:29 default: I: /vmlinuz is now a symlink to boot/vmlinuz-5.10.0-19-amd64
10:01:29 default: I: /initrd.img is now a symlink to boot/initrd.img-5.10.0-19-amd64
10:01:29 default: /etc/kernel/postinst.d/initramfs-tools:
10:01:29 default: update-initramfs: Generating /boot/initrd.img-5.10.0-19-amd64
10:01:36 default: /etc/kernel/postinst.d/zz-update-grub:
10:01:36 default: Generating grub configuration file ...
10:01:37 default: Found linux image: /boot/vmlinuz-5.10.0-19-amd64
10:01:37 default: Found initrd image: /boot/initrd.img-5.10.0-19-amd64
10:01:37 default: Found linux image: /boot/vmlinuz-5.10.0-18-amd64
10:01:37 default: Found initrd image: /boot/initrd.img-5.10.0-18-amd64
10:01:37 default: done
10:01:37 default: Setting up isc-dhcp-common (4.4.1-2.3+deb11u1) ...
10:01:37 default: Setting up libxml2:amd64 (2.9.10+dfsg-6.7+deb11u3) ...
10:01:37 default: Setting up grub2-common (2.06-3~deb11u4) ...
10:01:37 default: Setting up linux-image-amd64 (5.10.149-2) ...
10:01:37 default: Setting up grub-pc-bin (2.06-3~deb11u4) ...
10:01:37 default: Setting up grub-pc (2.06-3~deb11u4) ...
10:01:38 default: You must correct your GRUB install devices before proceeding:
10:01:38 default:
10:01:38 default: DEBIAN_FRONTEND=dialog dpkg --configure grub-pc
10:01:38 default: dpkg --configure -a
10:01:38 default: dpkg: error processing package grub-pc (--configure):
10:01:38 default: installed grub-pc package post-installation script subprocess returned error exit status 1
10:01:38 default: dpkg: dependency problems prevent configuration of grub2:
10:01:38 default: grub2 depends on grub-pc (= 2.06-3~deb11u4); however:
10:01:38 default: Package grub-pc is not configured yet.
10:01:38 default:
10:01:38 default: dpkg: error processing package grub2 (--configure):
10:01:38 default: dependency problems - leaving unconfigured
10:01:38 default: Processing triggers for libc-bin (2.31-13+deb11u4) ...
10:01:38 default: Errors were encountered while processing:
10:01:38 default: grub-pc
10:01:38 default: grub2
10:01:38 default: E
10:01:38 default: :
10:01:38 default: Sub-process /usr/bin/dpkg returned an error code (1)
It happens on Jenkins since the (UTC-)morning of Nov16, on all branches. I can reproduce it locally.
Edited by boyska