I did sudo apt update && sudo apt upgrade
.
It always done correctly, but this time, it raise some errors.
Then I tried dpkg --configure -a
but same errors raised again.
Possibily, it caused by linux-5.8 kernel that installed manually by myself.
I have no idea how I can delete this kernel image that installed manually.
How do I fix this error?
I using Ubuntu 20.04 HWE on Raspberry Pi 4
Below is output of apt update
:
Hit:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
Hit:2 http://ppa.launchpad.net/longsleep/golang-backports/ubuntu focal InRelease
Get:3 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB]
Hit:4 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease
Get:5 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [101 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [114 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 Packages [786 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 Packages [731 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports focal-security/main arm64 Packages [478 kB]
Get:10 http://ports.ubuntu.com/ubuntu-ports focal-security/main Translation-en [141 kB]
Get:11 http://ports.ubuntu.com/ubuntu-ports focal-security/restricted Translation-en [36.5 kB]
Fetched 2500 kB in 4s (685 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
ubuntu@ubuntu:~$ sudo apt upgrade
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
ubuntu@ubuntu:~$ ^Cdo apt upgrade
ubuntu@ubuntu:~$ sudo dpkg --configure -a
Setting up linux-firmware (1.187.14) ...
update-initramfs: Generating /boot/initrd.img-5.8.0-55-generic
Using DTB: bcm2711-rpi-4-b.dtb
Installing /lib/firmware/5.8.0-55-generic/device-tree/broadcom/bcm2711-rpi-4-b.dtb into /boot/dtbs/5.8.0-55-generic/./bcm2711-rpi-4-b.dtb
Taking backup of bcm2711-rpi-4-b.dtb.
Installing new bcm2711-rpi-4-b.dtb.
Ignoring old or unknown version 5.8.0-55-generic (latest is 5.4.0-1036-raspi)
update-initramfs: Generating /boot/initrd.img-5.8.0-53-generic
modinfo: ERROR: could not get modinfo from 'usbmisc_imx': Exec format error
modinfo: ERROR: could not get modinfo from 'ci_hdrc_imx': Exec format error
modinfo: ERROR: could not get modinfo from 'ci_hdrc_usb2': Exec format error
modinfo: ERROR: could not get modinfo from 'ci_hdrc_msm': Exec format error
modinfo: ERROR: could not get modinfo from 'ci_hdrc_tegra': Exec format error
modinfo: ERROR: could not get modinfo from 'ci_hdrc_pci': Exec format error
modinfo: ERROR: could not get modinfo from 'phy_sun4i_usb': Exec format error
cp: error reading '/lib/modules/5.8.0-53-generic/kernel/drivers/iio/industrialio.ko': Input/output error
cp: cannot create regular file '/var/tmp/mkinitramfs_3DhQoR//usr/lib/modules/5.8.0-53-generic/kernel/drivers/input/keyboard/adc-keys.ko': Read-only file system
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 153: mkdir: Input/output error
Bus error
/usr/sbin/mkinitramfs: 75: modprobe: Input/output error
/usr/sbin/mkinitramfs: 76: modprobe: Input/output error
/usr/sbin/mkinitramfs: 733: cat: Input/output error
/usr/sbin/mkinitramfs: 735: find: Input/output error
Bus error
/usr/sbin/mkinitramfs: 321: cd: can't cd to /usr/share/initramfs-tools/scripts/
/usr/sbin/mkinitramfs: 333: cd: can't cd to /etc/initramfs-tools/scripts
/usr/sbin/mkinitramfs: 343: cannot create /var/tmp/mkinitramfs_3DhQoR/conf/arch.conf: Input/output error
Bus error
E: no ldd around - install libc-bin
/usr/sbin/mkinitramfs: 231: rm: Input/output error
/usr/sbin/mkinitramfs: 231: rm: Input/output error
/usr/sbin/mkinitramfs: 231: rm: Input/output error
/usr/sbin/update-initramfs: 144: rm: Input/output error
dpkg: error processing package linux-firmware (--configure):
installed linux-firmware package post-installation script subprocess returned error exit status 127
Setting up update-notifier-common (3.192.30.8) ...
dpkg: error processing package update-notifier-common (--configure):
unable to open triggers ci file '/var/lib/dpkg/info/update-notifier-common.triggers': Input/output error
Setting up golang-1.16-src (1.16.5-1longsleep1+focal) ...
dpkg: error processing package golang-1.16-src (--configure):
unable to open triggers ci file '/var/lib/dpkg/info/golang-1.16-src.triggers': Input/output error
dpkg: dependency problems prevent configuration of golang-1.16-go:
golang-1.16-go depends on golang-1.16-src (>= 1.16.5-1longsleep1+focal); however:
Package golang-1.16-src is not configured yet.
dpkg: error processing package golang-1.16-go (--configure):
dependency problems - leaving unconfigured
dpkg: error processing package dbus (--configure):
unable to check existence of '/var/lib/dpkg/info/libgcc-s1:arm64.postinst': Input/output error
Processing triggers for mime-support (3.64ubuntu1) ...
dpkg: unrecoverable fatal error, aborting:
unable to flush updated status of 'mime-support': Read-only file system