Help! Error executing the apt autoremove

I was supposed to put this query on the following thread but apprently it closed yesterday by @KidKlown :

===============================================================

Im having following issue while running apt-autoremove :

┌─[root@parrot]─[/home/username]
└──╼ #apt autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up broadcom-sta-dkms (6.30.223.271-10parrot1) ...
Removing old broadcom-sta-6.30.223.271 DKMS files...

------------------------------

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 5.1.0-parrot1-3t-amd64
Building initial module for 5.1.0-parrot1-3t-amd64
Done.

wl.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.1.0-parrot1-3t-amd64/updates/dkms/

depmod...

Backing up initrd.img-5.1.0-parrot1-3t-amd64 to /boot/initrd.img-5.1.0-parrot1-3t-amd64.old-dkms
Making new initrd.img-5.1.0-parrot1-3t-amd64
(If next boot fails, revert to initrd.img-5.1.0-parrot1-3t-amd64.old-dkms image)
update-initramfs........(bad exit status: 1)

-------- Uninstall Beginning --------

Module:  broadcom-sta
Version: 6.30.223.271
Kernel:  5.1.0-parrot1-3t-amd64 (x86_64)

-------------------------------------

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

wl.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.1.0-parrot1-3t-amd64/updates/dkms/
rmdir: failed to remove directory 'updates': Directory not empty
 - 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
Errors were encountered while processing:
 broadcom-sta-dkms
Configuring sandbox profiles....
Sandbox profiles updated!
Scanning application launchers
Updating active launchers
Done

==============================================================

Heres some additional information that maybe helpful :

┌─[✗]─[root@parrot]─[/home/username]
└──╼ #ls /boot
config-4.19.0-parrot4-28t-amd64    
initrd.img-5.1.0-parrot1-3t-amd64.old-dkms
config-5.1.0-parrot1-3t-amd64     
lost+found
efi                                  
System.map-4.19.0-parrot4-28t-amd64
grub                                
System.map-5.1.0-parrot1-3t-amd64
initrd.img-4.19.0-parrot4-28t-amd64  
vmlinuz-4.19.0-parrot4-28t-amd64
initrd.img-5.1.0-parrot1-3t-amd64    
vmlinuz-5.1.0-parrot1-3t-amd64
┌─[root@parrot]─[/home/username]
└──╼ #uname -r
5.1.0-parrot1-3t-amd64
┌─[✗]─[root@parrot]─[/home/username]
└──╼ #dpkg -l | grep -e 'ii  linux-image-[0-9]'
ii  linux-image-4.19.0-parrot4-28t-amd64      4.19.28-2parrot4.28t                 amd64        Linux 4.19 for 64-bit PCs

ii  linux-image-5.1.0-parrot1-3t-amd64        5.1.3-1parrot1.3t                    amd64        Linux 5.1 for 64-bit PCs

ThankYou for your attention :slight_smile:

Been a couple of days now.
Anyone could help maybe? ive been getting errors on errors lately.
Thank you.

It is because Parrot is using kernel 5.1 and broadcom doesn’t compatible

sooo…not sure what should i do now. My remaining /boot space is 0mb…which does not sound soo good for future updates.

Anything i could remove using a specific command that wont brick my device and free up some space in /boot? Im fairly new to linux & use encryptedLVM with LUKS so sorting out space to different directories isnt an option since i know i would mess up something.

This is a bit concerning.

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

2 Likes

That did work indeed. Thanks @99-0 :blush:

Just wondering if removing initrd.img-4.19.0-parrot4-28t-amd64 (56.4mb), config-4.19.0-parrot4-28t-amd64 (205kb) & system.map-5.1.0-parrot1-3t-amd64 (3.4mb) affect/brick/messup/crash my current system? since i really need to slice up space in /boot.

└──╼ $uname -r
5.1.0-parrot1-3t-amd64

ThankYou for helping so far :slight_smile:

welp, just recieve another update and its giving me issues, again. @dmknght & @99-0
:frowning:

└──╼ $sudo apt autoremove
[sudo] password for user: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 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)
Processing triggers for initramfs-tools (0.133) ...
update-initramfs: Generating /boot/initrd.img-5.1.0-parrot1-3t-amd64
W: Possible missing firmware /lib/firmware/i915/icl_dmc_ver1_07.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_huc_ver01_8_2893.bin for module i915
pigz: abort: write error on <stdout> (No space left on device)
E: mkinitramfs failure cpio 141 pigz 28
update-initramfs: failed for /boot/initrd.img-5.1.0-parrot1-3t-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:
 initramfs-tools
Configuring sandbox profiles....
Sandbox profiles updated!
Scanning application launchers
Updating active launchers
Done
E: Sub-process /usr/bin/dpkg returned an error code (1)

You don’t have to run autoremove if you don’t need to, specially we are using kernel 5.1 and applications are may not compatible with new kernel.

well, it keeps prompting me my /boot has 0mb and clear some space soo…
(im using guided encrypted lvm so…i dont really know how to resize the partitions. have to work with whats provided by it)

For instance, Such.

**Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 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)
Processing triggers for initramfs-tools (0.133) ...
update-initramfs: Generating /boot/initrd.img-5.1.0-parrot1-3t-amd64
pigz: abort: write error on <stdout> (No space left on device)
E: mkinitramfs failure cpio 141 pigz 28
update-initramfs: failed for /boot/initrd.img-5.1.0-parrot1-3t-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:
 initramfs-tools
Configuring sandbox profiles....
Sandbox profiles updated!
Scanning application launchers
Updating active launchers
Done
E: Sub-process /usr/bin/dpkg returned an error code (1)
**

System.map- NO! Only the 4.19 items can be removed but you’ll have no fallback kernel version if the primary one fails.

LVM is managed by the LVM command, it’s an advanced setup partitioning scheme you’ll need to do some research on logical volume manager especially if you have no familiarity with the concept of logical volumes.

1 Like

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