Error during kernel upgrade

Briefly describe your issue below:
I’m currently using the 4.19.0-parrot4-28t-amd64 kernel. During a casual update/upgrade I saw I could upgrade linux-image-5.2.0-2parrot1-amd64, linux-image-amd64, and initramfs-tools but encountered errors. The first time i ran the command it complained about 2 missing drivers for the i915 module, which I installed but didn’t make any difference. Everything is working fine with the old kernel. Never seen an error like that before so I don’t know if additional info is needed.

What version of Parrot are you running?
┌─[root@parrot]─[~]
└──╼ #uname -a
Linux parrot 4.19.0-parrot4-28t-amd64 #1 SMP Parrot 4.19.28-2parrot4.28t (2019-04-18) x86_64 GNU/Linux, security, 4.6, MATE.

What method did you use to install Parrot? (Debian Standard / Debian GTK / parrot-experimental)
Installed using ISO image throught bootable usb with the standard debian installer on Acer Aspire 3 A315-51-3987.

Configured to multiboot with other systems? (yes / no)
No
If there are any similar issues or solutions, link to them below:

If there are any error messages or relevant logs, post them below:
┌─[root@parrot]─[~]
└──╼ #parrot-upgrade
Get:1 https://deb.parrot.sh/parrot rolling InRelease [14.4 kB]
Get:2 https://deb.parrot.sh/parrot rolling-security InRelease [8,701 B]
Fetched 23.1 kB in 7s (3,319 B/s)
Reading package lists… Done
Building dependency tree
Reading state information… Done
All packages are up to date.
Setting up initramfs-tools (0.133) …
update-initramfs: deferring update (trigger activated)
Setting up linux-image-5.2.0-2parrot1-amd64 (5.2.7-2parrot1) …
/etc/kernel/postinst.d/dkms:
Error! Bad return status for module build on kernel: 5.2.0-2parrot1-amd64 (x86_64)
Consult /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/make.log for more information.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.2.0-2parrot1-amd64
pigz: abort: write error on (No space left on device)
E: mkinitramfs failure cpio 141 pigz 28
update-initramfs: failed for /boot/initrd.img-5.2.0-2parrot1-amd64 with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.2.0-2parrot1-amd64 (–configure):
installed linux-image-5.2.0-2parrot1-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-amd64:
linux-image-amd64 depends on linux-image-5.2.0-2parrot1-amd64 | linux-image-5.2.0-2parrot1-amd64-unsigned; however:
Package linux-image-5.2.0-2parrot1-amd64 is not configured yet.
Package linux-image-5.2.0-2parrot1-amd64-unsigned is not installed.

dpkg: error processing package linux-image-amd64 (–configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.133) …
update-initramfs: Generating /boot/initrd.img-4.19.0-parrot4-28t-amd64
pigz: abort: write error on (No space left on device)
E: mkinitramfs failure cpio 141 pigz 28
update-initramfs: failed for /boot/initrd.img-4.19.0-parrot4-28t-amd64 with 1.
dpkg: error processing package initramfs-tools (–configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-5.2.0-2parrot1-amd64
linux-image-amd64
initramfs-tools
failed to fix interrupted upgrades
Reading package lists… Done
Building dependency tree
Reading state information… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.133) …
update-initramfs: deferring update (trigger activated)
Setting up linux-image-5.2.0-2parrot1-amd64 (5.2.7-2parrot1) …
/etc/kernel/postinst.d/dkms:
Error! Bad return status for module build on kernel: 5.2.0-2parrot1-amd64 (x86_64)
Consult /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/make.log for more information.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.2.0-2parrot1-amd64
pigz: abort: write error on (No space left on device)
E: mkinitramfs failure cpio 141 pigz 28
update-initramfs: failed for /boot/initrd.img-5.2.0-2parrot1-amd64 with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.2.0-2parrot1-amd64 (–configure):
installed linux-image-5.2.0-2parrot1-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-amd64:
linux-image-amd64 depends on linux-image-5.2.0-2parrot1-amd64 | linux-image-5.2.0-2parrot1-amd64-unsigned; however:
Package linux-image-5.2.0-2parrot1-amd64 is not configured yet.
Package linux-image-5.2.0-2parrot1-amd64-unsigned is not installed.

dpkg: error processing package linux-image-amd64 (–configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.133) …
update-initramfs: Generating /boot/initrd.img-4.19.0-parrot4-28t-amd64
pigz: abort: write error on (No space left on device)
E: mkinitramfs failure cpio 141 pigz 28
update-initramfs: failed for /boot/initrd.img-4.19.0-parrot4-28t-amd64 with 1.
dpkg: error processing package initramfs-tools (–configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-5.2.0-2parrot1-amd64
linux-image-amd64
initramfs-tools
Scanning application launchers
Updating active launchers
Done
E: Sub-process /usr/bin/dpkg returned an error code (1)
failed to fix conflicts
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.133) …
update-initramfs: deferring update (trigger activated)
Setting up linux-image-5.2.0-2parrot1-amd64 (5.2.7-2parrot1) …
/etc/kernel/postinst.d/dkms:
Error! Bad return status for module build on kernel: 5.2.0-2parrot1-amd64 (x86_64)
Consult /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/make.log for more information.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.2.0-2parrot1-amd64
pigz: abort: write error on (No space left on device)
E: mkinitramfs failure cpio 141 pigz 28
update-initramfs: failed for /boot/initrd.img-5.2.0-2parrot1-amd64 with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.2.0-2parrot1-amd64 (–configure):
installed linux-image-5.2.0-2parrot1-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-amd64:
linux-image-amd64 depends on linux-image-5.2.0-2parrot1-amd64 | linux-image-5.2.0-2parrot1-amd64-unsigned; however:
Package linux-image-5.2.0-2parrot1-amd64 is not configured yet.
Package linux-image-5.2.0-2parrot1-amd64-unsigned is not installed.

dpkg: error processing package linux-image-amd64 (–configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.133) …
update-initramfs: Generating /boot/initrd.img-4.19.0-parrot4-28t-amd64
pigz: abort: write error on (No space left on device)
E: mkinitramfs failure cpio 141 pigz 28
update-initramfs: failed for /boot/initrd.img-4.19.0-parrot4-28t-amd64 with 1.
dpkg: error processing package initramfs-tools (–configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-5.2.0-2parrot1-amd64
linux-image-amd64
initramfs-tools
Scanning application launchers
Updating active launchers
Done
E: Sub-process /usr/bin/dpkg returned an error code (1)

┌─[root@parrot]─[~]
└──╼ #cat /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/make.log
DKMS make.log for realtek-rtl88xxau-5.2.20.2~20190210 for kernel 5.2.0-2parrot1-amd64 (x86_64)
Wed 14 Aug 2019 01:48:34 AM EEST
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.2.0-2parrot1-amd64/build M=/var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build modules
make[1]: Entering directory ‘/usr/src/linux-headers-5.2.0-2parrot1-amd64’
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_security.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_debug.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_io.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_ioctl_query.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_ioctl_set.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_ieee80211.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_mlme.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_mlme_ext.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_mi.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_wlan_util.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_vht.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_pwrctrl.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_rf.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_recv.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_sta_mgt.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_ap.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_xmit.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_p2p.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_rson.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_tdls.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_br_ext.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_iol.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_sreset.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_btcoex_wifionly.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_btcoex.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_beamforming.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/rtw_odm.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/core/efuse/rtw_efuse.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/os_dep/osdep_service.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/os_dep/linux/os_intfs.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/os_dep/linux/usb_intf.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/os_dep/linux/usb_ops_linux.o
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/os_dep/linux/ioctl_linux.o
/var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/os_dep/linux/os_intfs.c:1393:22: error: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device )’ {aka ‘short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device )’} from incompatible pointer type ‘u16 ()(struct net_device *, struct sk_buff *, struct net_device , u16 ()(struct net_device *, struct sk_buff *, struct net_device ))’ {aka ‘short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device , short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device *))’} [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,
^~~~~~~~~~~~~~~~
/var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/os_dep/linux/os_intfs.c:1393:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
CC [M] /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/os_dep/linux/xmit_linux.o
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-headers-5.2.0-2parrot1-common/scripts/Makefile.build:284: /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build/os_dep/linux/os_intfs.o] Error 1
make[4]: *** Waiting for unfinished jobs…
make[3]: *** [/usr/src/linux-headers-5.2.0-2parrot1-common/Makefile:1610: module/var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20190210/build] Error 2
make[2]: *** [Makefile:179: sub-make] Error 2
make[1]: *** [Makefile:8: all] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-5.2.0-2parrot1-amd64’
make: *** [Makefile:1551: modules] Error 2

yout boot is full! :wink:
please do:

sudo apt autoremove && sudo apt autoclean -y

@rowie Thank you for the reply. Didn’t think to check there :sweat_smile:. That was the problem. Ran the command you suggested but it didn’t free up space in /boot. So I unistalled the oldest kernel that did the trick.

1 Like