Preparing to unpack .../00-grub2-common_2.04-1ubuntu35.4_amd64.deb ... Unpacking grub2-common (2.04-1ubuntu35.4) over (2.04-1ubuntu35) ... Preparing to unpack .../01-grub-pc_2.04-1ubuntu35.4_amd64.deb ... Unpacking grub-pc (2.04-1ubuntu35.4) over (2.04-1ubuntu35) ... Preparing to unpack .../02-grub-pc-bin_2.04-1ubuntu35.4_amd64.deb ... Unpacking grub-pc-bin (2.04-1ubuntu35.4) over (2.04-1ubuntu35) ... Preparing to unpack .../03-grub-efi-amd64-signed_1.155.4+2.04-1ubuntu35.4_amd64.deb ... Unpacking grub-efi-amd64-signed (1.155.4+2.04-1ubuntu35.4) over (1.155+2.04-1ubuntu35) ... Preparing to unpack .../04-grub-efi-amd64-bin_2.04-1ubuntu35.4_amd64.deb ... Unpacking grub-efi-amd64-bin (2.04-1ubuntu35.4) over (2.04-1ubuntu35) ... Preparing to unpack .../05-grub-common_2.04-1ubuntu35.4_amd64.deb ... Unpacking grub-common (2.04-1ubuntu35.4) over (2.04-1ubuntu35) ... Running in chroot, ignoring command 'daemon-reload' Selecting previously unselected package linux-modules-5.8.0-45-generic. Preparing to unpack .../06-linux-modules-5.8.0-45-generic_5.8.0-45.51_amd64.deb ... Unpacking linux-modules-5.8.0-45-generic (5.8.0-45.51) ... Selecting previously unselected package linux-image-5.8.0-45-generic. Preparing to unpack .../07-linux-image-5.8.0-45-generic_5.8.0-45.51_amd64.deb ... Unpacking linux-image-5.8.0-45-generic (5.8.0-45.51) ... Selecting previously unselected package linux-modules-extra-5.8.0-45-generic. Preparing to unpack .../08-linux-modules-extra-5.8.0-45-generic_5.8.0-45.51_amd64.deb ... Unpacking linux-modules-extra-5.8.0-45-generic (5.8.0-45.51) ... Preparing to unpack .../09-linux-generic-hwe-20.04_5.8.0.45.50_amd64.deb ... Unpacking linux-generic-hwe-20.04 (5.8.0.45.50) over (5.8.0.25.30) ... Preparing to unpack .../10-linux-image-generic-hwe-20.04_5.8.0.45.50_amd64.deb ... Unpacking linux-image-generic-hwe-20.04 (5.8.0.45.50) over (5.8.0.25.30) ... Selecting previously unselected package linux-headers-5.8.0-45. Preparing to unpack .../11-linux-headers-5.8.0-45_5.8.0-45.51_all.deb ... Unpacking linux-headers-5.8.0-45 (5.8.0-45.51) ... Selecting previously unselected package linux-headers-5.8.0-45-generic. Preparing to unpack .../12-linux-headers-5.8.0-45-generic_5.8.0-45.51_amd64.deb ... Unpacking linux-headers-5.8.0-45-generic (5.8.0-45.51) ... Preparing to unpack .../13-linux-headers-generic-hwe-20.04_5.8.0.45.50_amd64.deb ... Unpacking linux-headers-generic-hwe-20.04 (5.8.0.45.50) over (5.8.0.25.30) ... Setting up grub-common (2.04-1ubuntu35.4) ... Running in chroot, ignoring command 'daemon-reload' /usr/sbin/policy-rc.d returned 101, not running 'restart grub-initrd-fallback.service' update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults Running in chroot, ignoring command 'daemon-reload' Running in chroot, ignoring request. invoke-rc.d: policy-rc.d denied execution of restart. Setting up linux-headers-5.8.0-45 (5.8.0-45.51) ... Setting up udev (246.6-1ubuntu1.2) ... A chroot environment has been detected, udev not started. Running in chroot, ignoring command 'daemon-reload' Setting up linux-modules-5.8.0-45-generic (5.8.0-45.51) ... Setting up grub-efi-amd64-bin (2.04-1ubuntu35.4) ... Setting up linux-headers-5.8.0-45-generic (5.8.0-45.51) ... Setting up linux-image-5.8.0-45-generic (5.8.0-45.51) ... I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.8.0-25-generic I: /boot/vmlinuz is now a symlink to vmlinuz-5.8.0-45-generic I: /boot/initrd.img is now a symlink to initrd.img-5.8.0-45-generic Setting up grub2-common (2.04-1ubuntu35.4) ... Setting up grub-pc-bin (2.04-1ubuntu35.4) ... Setting up grub-pc (2.04-1ubuntu35.4) ... Sourcing file `/etc/default/grub' Sourcing file `/etc/default/grub.d/init-select.cfg' Generating grub configuration file ... Found linux image: /boot/vmlinuz-5.8.0-45-generic Found linux image: /boot/vmlinuz-5.8.0-25-generic Found initrd image: /boot/initrd.img-5.8.0-25-generic Adding boot menu entry for UEFI Firmware Settings done Setting up linux-headers-generic-hwe-20.04 (5.8.0.45.50) ... Setting up linux-modules-extra-5.8.0-45-generic (5.8.0-45.51) ... Setting up linux-image-generic-hwe-20.04 (5.8.0.45.50) ... Setting up grub-efi-amd64-signed (1.155.4+2.04-1ubuntu35.4) ... Trying to migrate /boot/efi into esp config Installing grub to /boot/efi. Installing for x86_64-efi platform. grub-install: warning: Cannot read EFI Boot* variables. grub-install: warning: read_file: could not read from file: Input/output error. grub-install: warning: vars_get_variable: read_file(/sys/firmware/efi/vars/Boot0003-8be4df61-93ca-11d2-aa0d-00e098032b8c/raw_var) failed: Input/output error. grub-install: warning: efi_get_variable: ops->get_variable failed: Input/output error. grub-install: error: failed to register the EFI boot entry: Input/output error. dpkg: error processing package grub-efi-amd64-signed (--configure): installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1