Problem with Remaking Initrd

Hello, I am a newbie ParrotOS user. I have been suffering from a problem recently has not plagued me before but seems to have started after a major update. I worry that this is something that is serious, but I am not sure how to go about fixing it. It also slows down the process of installing any new software. Whenever I install a package from Synaptic Package manager (can be anything, from printer drivers to graphics programs), it will show the following log:

Selecting previously unselected package python3-dbus.mainloop.pyqt5.
(Reading database … 523850 files and directories currently installed.)
Preparing to unpack …/python3-dbus.mainloop.pyqt5_5.12.3+dfsg-2_amd64.deb …
Unpacking python3-dbus.mainloop.pyqt5 (5.12.3+dfsg-2) …
Selecting previously unselected package hplip-gui.
Preparing to unpack …/hplip-gui_3.18.12+dfsg0-2_all.deb …
Unpacking hplip-gui (3.18.12+dfsg0-2) …
Selecting previously unselected package python3-notify2.
Preparing to unpack …/python3-notify2_0.3-3_all.deb …
Unpacking python3-notify2 (0.3-3) …
Selecting previously unselected package xsane-common.
Preparing to unpack …/xsane-common_0.999-7_all.deb …
Unpacking xsane-common (0.999-7) …
Selecting previously unselected package xsane.
Preparing to unpack …/xsane_0.999-7_amd64.deb …
Unpacking xsane (0.999-7) …
Setting up python3-dbus.mainloop.pyqt5 (5.12.3+dfsg-2) …
Setting up initramfs-tools (0.135) …
update-initramfs: deferring update (trigger activated)
Setting up broadcom-sta-dkms (6.30.223.271-11) …
Removing old broadcom-sta-6.30.223.271 DKMS files…

-------- Uninstall Beginning --------
Module: broadcom-sta
Version: 6.30.223.271
Kernel: 4.19.37-parrot1-amd64 (x86_64)

Status: This module version was INACTIVE for this kernel.
depmod…

DKMS: uninstall completed.


Deleting module version: 6.30.223.271
completely from the DKMS tree.

Done.
Loading new broadcom-sta-6.30.223.271 DKMS files…
Building for 4.19.37-parrot1-amd64 5.2.0-2parrot1-amd64
Building initial module for 4.19.37-parrot1-amd64
Done.

wl.ko:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/4.19.37-parrot1-amd64/updates/dkms/

depmod…

Backing up initrd.img-4.19.37-parrot1-amd64 to /boot/initrd.img-4.19.37-parrot1-amd64.old-dkms
cp: error writing ‘/boot/initrd.img-4.19.37-parrot1-amd64.old-dkms’: No space left on device
Making new initrd.img-4.19.37-parrot1-amd64
(If next boot fails, revert to initrd.img-4.19.37-parrot1-amd64.old-dkms image)
update-initramfs…(bad exit status: 1)

-------- Uninstall Beginning --------
Module: broadcom-sta
Version: 6.30.223.271
Kernel: 4.19.37-parrot1-amd64 (x86_64)

Status: Before uninstall, this module version was ACTIVE on this kernel.

wl.ko:

  • Uninstallation
    • Deleting from: /lib/modules/4.19.37-parrot1-amd64/updates/dkms/
  • Original module
    • No original module was found for this module on this kernel.
    • Use the dkms install command to reinstall any previous module version.

depmod…

update-initramfs…(bad exit status: 1)
Warning: There was a problem remaking your initrd. You must manually remake it
before booting into this kernel.

DKMS: uninstall completed.
Error! Problems with mkinitrd detected. Automatically uninstalling this module.
DKMS: Install Failed (mkinitrd problems). Module rolled back to built state.
dpkg: error processing package broadcom-sta-dkms (–configure):
installed broadcom-sta-dkms package post-installation script subprocess returned error exit status 7
Setting up grub-pc (2.04-2parrot1) …
Installing for i386-pc platform.
Installation finished. No error reported.
Generating grub configuration file …
cat: write error: No space left on device
dpkg: error processing package grub-pc (–configure):
installed grub-pc package post-installation script subprocess returned error exit status 1
Setting up hplip-gui (3.18.12+dfsg0-2) …
Setting up python3-notify2 (0.3-3) …
Setting up xsane-common (0.999-7) …
Setting up xsane (0.999-7) …
Processing triggers for mime-support (3.63) …
Processing triggers for hicolor-icon-theme (0.17-2) …
Processing triggers for doc-base (0.10.9) …
Processing 1 added doc-base file…
Processing triggers for man-db (2.8.6.1-1) …
Processing triggers for desktop-file-utils (0.24-1) …
Processing triggers for initramfs-tools (0.135) …
update-initramfs: Generating /boot/initrd.img-4.19.37-parrot1-amd64
W: Possible missing firmware /lib/firmware/nvidia/gv100/acr/ucode_load.bin for module nouveau
cat: write error: No space left on device
update-initramfs: failed for /boot/initrd.img-4.19.37-parrot1-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:
broadcom-sta-dkms
grub-pc
initramfs-tools
Scanning application launchers
Updating active launchers
Done
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up initramfs-tools (0.135) …
update-initramfs: deferring update (trigger activated)
Setting up broadcom-sta-dkms (6.30.223.271-11) …
Removing old broadcom-sta-6.30.223.271 DKMS files…

-------- Uninstall Beginning --------
Module: broadcom-sta
Version: 6.30.223.271
Kernel: 4.19.37-parrot1-amd64 (x86_64)

Status: This module version was INACTIVE for this kernel.
depmod…

DKMS: uninstall completed.


Deleting module version: 6.30.223.271
completely from the DKMS tree.

Done.
Loading new broadcom-sta-6.30.223.271 DKMS files…
Building for 4.19.37-parrot1-amd64 5.2.0-2parrot1-amd64
Building initial module for 4.19.37-parrot1-amd64
Done.

wl.ko:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/4.19.37-parrot1-amd64/updates/dkms/

depmod…

Backing up initrd.img-4.19.37-parrot1-amd64 to /boot/initrd.img-4.19.37-parrot1-amd64.old-dkms
cp: error writing ‘/boot/initrd.img-4.19.37-parrot1-amd64.old-dkms’: No space left on device
Making new initrd.img-4.19.37-parrot1-amd64
(If next boot fails, revert to initrd.img-4.19.37-parrot1-amd64.old-dkms image)
update-initramfs…(bad exit status: 1)

-------- Uninstall Beginning --------
Module: broadcom-sta
Version: 6.30.223.271
Kernel: 4.19.37-parrot1-amd64 (x86_64)

Status: Before uninstall, this module version was ACTIVE on this kernel.

wl.ko:

  • Uninstallation
    • Deleting from: /lib/modules/4.19.37-parrot1-amd64/updates/dkms/
  • Original module
    • No original module was found for this module on this kernel.
    • Use the dkms install command to reinstall any previous module version.

depmod…

update-initramfs…(bad exit status: 1)
Warning: There was a problem remaking your initrd. You must manually remake it
before booting into this kernel.

DKMS: uninstall completed.
Error! Problems with mkinitrd detected. Automatically uninstalling this module.
DKMS: Install Failed (mkinitrd problems). Module rolled back to built state.
dpkg: error processing package broadcom-sta-dkms (–configure):
installed broadcom-sta-dkms package post-installation script subprocess returned error exit status 7
Setting up grub-pc (2.04-2parrot1) …
Installing for i386-pc platform.
Installation finished. No error reported.
Generating grub configuration file …
cat: write error: No space left on device
dpkg: error processing package grub-pc (–configure):
installed grub-pc package post-installation script subprocess returned error exit status 1
Processing triggers for initramfs-tools (0.135) …
update-initramfs: Generating /boot/initrd.img-4.19.37-parrot1-amd64
W: Possible missing firmware /lib/firmware/nvidia/gv100/acr/ucode_load.bin for module nouveau
cat: write error: No space left on device
update-initramfs: failed for /boot/initrd.img-4.19.37-parrot1-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:
broadcom-sta-dkms
grub-pc
initramfs-tools

The applications that I install using Synaptic Package manager run fine without any problems, and the overall operation of the system is smooth (reboot works normally, no surprises at grub), but this log appears repetitively whenever I am installing anything using Synaptic. Also, I do not understand what it means when it says there is no space on my device left. My Dolphin file manager informs me that only 4% of disk space is used. Additionally, my root partition shares the same space as my home directory.

My system details are as follows:
Operating System: Parrot GNU/Linux 4.7
KDE Plasma Version: 5.14.5
Qt Version: 5.11.3
KDE Frameworks Version: 5.54.0
Kernel Version: 4.19.37-parrot1-amd64
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-2400S CPU @ 2.50GHz
Memory: 7.7 GiB of RAM

Lastly, ParrotOS is the only operating system on the computer I am using (no dual-boot here). Furthermore, my system is not encrypted. I see that another user had a similar problem, https://community.parrotlinux.org/t/help-error-executing-the-apt-autoremove/8186, but from what I had understood from that thread there was only one solution that would apply to my situation somewhat:

"sudo dpkg -P broadcom-sta-dkms should purge the module and a parrot-upgrade should fix the rest."

I would be much obliged if anyone could assist me in understanding how to solve this retitively appearing problem concerning the failure to resolve roadcom-sta-dkms, grub-pc and initramfs-tools.

your /boot is full like in the other x tickets here in the forum.
you have to remove old kernels

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.