Preparing to unpack .../00-grub2-common_2.04-1ubuntu35.6_amd64.deb ... Unpacking grub2-common (2.04-1ubuntu35.6) over (2.04-1ubuntu35) ... Preparing to unpack .../01-grub-pc_2.04-1ubuntu35.6_amd64.deb ... Unpacking grub-pc (2.04-1ubuntu35.6) over (2.04-1ubuntu35) ... Preparing to unpack .../02-grub-pc-bin_2.04-1ubuntu35.6_amd64.deb ... Unpacking grub-pc-bin (2.04-1ubuntu35.6) over (2.04-1ubuntu35) ... Preparing to unpack .../03-grub-efi-amd64-signed_1.167.2+2.04-1ubuntu44.2_amd64.deb ... Unpacking grub-efi-amd64-signed (1.167.2+2.04-1ubuntu44.2) over (1.155+2.04-1ubuntu35) ... Preparing to unpack .../04-grub-efi-amd64-bin_2.04-1ubuntu44.2_amd64.deb ... Unpacking grub-efi-amd64-bin (2.04-1ubuntu44.2) over (2.04-1ubuntu35) ... Preparing to unpack .../05-grub-common_2.04-1ubuntu35.6_amd64.deb ... Unpacking grub-common (2.04-1ubuntu35.6) over (2.04-1ubuntu35) ... Running in chroot, ignoring command 'daemon-reload' Selecting previously unselected package linux-modules-5.8.0-55-generic. Preparing to unpack .../06-linux-modules-5.8.0-55-generic_5.8.0-55.62_amd64.deb ... Unpacking linux-modules-5.8.0-55-generic (5.8.0-55.62) ... Selecting previously unselected package linux-image-5.8.0-55-generic. Preparing to unpack .../07-linux-image-5.8.0-55-generic_5.8.0-55.62_amd64.deb ... Unpacking linux-image-5.8.0-55-generic (5.8.0-55.62) ... Selecting previously unselected package linux-modules-extra-5.8.0-55-generic. Preparing to unpack .../08-linux-modules-extra-5.8.0-55-generic_5.8.0-55.62_amd64.deb ... Unpacking linux-modules-extra-5.8.0-55-generic (5.8.0-55.62) ... Preparing to unpack .../09-linux-generic-hwe-20.04_5.8.0.55.60_amd64.deb ... Unpacking linux-generic-hwe-20.04 (5.8.0.55.60) over (5.8.0.25.30) ... Preparing to unpack .../10-linux-image-generic-hwe-20.04_5.8.0.55.60_amd64.deb ... Unpacking linux-image-generic-hwe-20.04 (5.8.0.55.60) over (5.8.0.25.30) ... Selecting previously unselected package linux-headers-5.8.0-55. Preparing to unpack .../11-linux-headers-5.8.0-55_5.8.0-55.62_all.deb ... Unpacking linux-headers-5.8.0-55 (5.8.0-55.62) ... Selecting previously unselected package linux-headers-5.8.0-55-generic. Preparing to unpack .../12-linux-headers-5.8.0-55-generic_5.8.0-55.62_amd64.deb ... Unpacking linux-headers-5.8.0-55-generic (5.8.0-55.62) ... Preparing to unpack .../13-linux-headers-generic-hwe-20.04_5.8.0.55.60_amd64.deb ... Unpacking linux-headers-generic-hwe-20.04 (5.8.0.55.60) over (5.8.0.25.30) ... Setting up grub-common (2.04-1ubuntu35.6) ... 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-55 (5.8.0-55.62) ... Setting up udev (246.6-1ubuntu1.3) ... A chroot environment has been detected, udev not started. Running in chroot, ignoring command 'daemon-reload' Setting up linux-modules-5.8.0-55-generic (5.8.0-55.62) ... Setting up grub-efi-amd64-bin (2.04-1ubuntu44.2) ... Setting up linux-headers-5.8.0-55-generic (5.8.0-55.62) ... Setting up grub2-common (2.04-1ubuntu35.6) ... Setting up grub-pc-bin (2.04-1ubuntu35.6) ... Setting up linux-image-5.8.0-55-generic (5.8.0-55.62) ... 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-55-generic I: /boot/initrd.img is now a symlink to initrd.img-5.8.0-55-generic Setting up grub-pc (2.04-1ubuntu35.6) ... 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-55-generic Found linux image: /boot/vmlinuz-5.8.0-25-generic Found initrd image: /boot/initrd.img-5.8.0-25-generic Found Ubuntu 20.04.2 LTS (20.04) on /dev/sda4 Found Windows Boot Manager on /dev/sdb2@/EFI/Microsoft/Boot/bootmgfw.efi Found Kali GNU/Linux Rolling on /dev/sdc2 Adding boot menu entry for UEFI Firmware Settings done Setting up linux-headers-generic-hwe-20.04 (5.8.0.55.60) ... Setting up linux-modules-extra-5.8.0-55-generic (5.8.0-55.62) ... Setting up linux-image-generic-hwe-20.04 (5.8.0.55.60) ... Setting up grub-efi-amd64-signed (1.167.2+2.04-1ubuntu44.2) ... 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/Boot0006-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