(Solved) Errors encountered while processing updates

M7379t

New Member
Joined
Feb 23, 2022
Messages
8
Reaction score
3
Credits
112
Hello, I have been using Linux for about 3 months replacing Windows 10 on a desktop and a laptop. I have been very-pleased with the improvement in performance of Linux over Windows! I am experiencing an issue with my desktop computer, a Dell Precision T1600 with 465.76 GB free hard drive space (using 69.98 GB). The system is running Kernel 5.4.0-99-generic x86_64 bits, Cinnamon 5.2.7; Distro: Linux Mint 20.3 Una base, Ubuntu 20.04.
After an update a few weeks ago I noted that my boot directory free space was down to ~39 MB -- I do not know how much free space it initially had at installation. After my most recent update the directory is down to approximately 10 MB.
At the conclusion of the latest update I received a message that errors were encountered while processing:
linux-firmware
linux-image-generic
linux-genric
initramfs-tools
linux-image-5.4.0-100-generic

E: linux-firmware: installed linux-firmware package post-installation script subprocess returned error exit status 1
E: linux-image-generic: dependency problems - leaving unconfigured
E: linux-generic: dependency problems - leaving unconfigured
E: initramfs-tools: installed initramfs-tools package post-installation script subprocess returned error exit status 1
E: linux-image-5.4.0-100-generic: installed linux-image-5.4.0-100-generic package post-installation script subprocess returned error exit status 1

I am looking for any assistance to remedy the issue(s) and greatly appreciate any input into solving the problem with the shrinking directory memory that is critically low and the update errors. Thanks in advance.
 
Last edited:


Condobloke

Well-Known Member
Joined
Apr 30, 2017
Messages
4,675
Reaction score
4,047
Credits
26,651
G'day M7379t, Welcome to Linux.org

Please run the below command in Terminal please

Code:
dpkg --list |grep linux-image

post the output in your nest reply (copy and paste)
 
OP
M

M7379t

New Member
Joined
Feb 23, 2022
Messages
8
Reaction score
3
Credits
112
Another command you might try
Code:
sudo dpkg --configure -a
I still have the errors:

[email protected]:~$ sudo dpkg --configure -a
[sudo] password for drmet:
Setting up initramfs-tools (0.136ubuntu6.7) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-firmware (1.187.26) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-99-generic
I: The initramfs will attempt to resume from /dev/dm-2
I: (/dev/mapper/vgmint-swap_1)
I: Set the RESUME variable to override this.
Error 24 : Write error : cannot write compressed block
E: mkinitramfs failure cpio 141 lz4 -9 -l 24
update-initramfs: failed for /boot/initrd.img-5.4.0-99-generic with 1.
dpkg: error processing package linux-firmware (--configure):
installed linux-firmware package post-installation script subprocess returned error exit status 1
Setting up linux-image-5.4.0-100-generic (5.4.0-100.113) ...
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-firmware; however:
Package linux-firmware is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 5.4.0.100.104); however:
Package linux-image-generic is not configured yet.

dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.136ubuntu6.7) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-99-generic
I: The initramfs will attempt to resume from /dev/dm-2
I: (/dev/mapper/vgmint-swap_1)
I: Set the RESUME variable to override this.
Error 24 : Write error : cannot write compressed block
E: mkinitramfs failure cpio 141 lz4 -9 -l 24
update-initramfs: failed for /boot/initrd.img-5.4.0-99-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.4.0-100-generic (5.4.0-100.113) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-100-generic
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-100-generic
I: The initramfs will attempt to resume from /dev/dm-2
I: (/dev/mapper/vgmint-swap_1)
I: Set the RESUME variable to override this.
Error 24 : Write error : cannot write compressed block
E: mkinitramfs failure cpio 141 lz4 -9 -l 24
update-initramfs: failed for /boot/initrd.img-5.4.0-100-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.4.0-100-generic (--configure):
installed linux-image-5.4.0-100-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-firmware
linux-image-generic
linux-generic
initramfs-tools
linux-image-5.4.0-100-generic
[email protected]:~$
 
OP
M

M7379t

New Member
Joined
Feb 23, 2022
Messages
8
Reaction score
3
Credits
112
G'day M7379t, Welcome to Linux.org

Please run the below command in Terminal please

Code:
dpkg --list |grep linux-image

post the output in your nest reply (copy and paste)
Thank you for the welcome!

[email protected]:~$ dpkg --list |grep linux-image
iF linux-image-5.4.0-100-generic 5.4.0-100.113 amd64 Signed kernel image generic
ii linux-image-5.4.0-74-generic 5.4.0-74.83 amd64 Signed kernel image generic
ii linux-image-5.4.0-92-generic 5.4.0-92.103 amd64 Signed kernel image generic
ii linux-image-5.4.0-94-generic 5.4.0-94.106 amd64 Signed kernel image generic
ii linux-image-5.4.0-96-generic 5.4.0-96.109 amd64 Signed kernel image generic
ii linux-image-5.4.0-97-generic 5.4.0-97.110 amd64 Signed kernel image generic
ii linux-image-5.4.0-99-generic 5.4.0-99.112 amd64 Signed kernel image generic
iU linux-image-generic 5.4.0.100.104 amd64 Generic Linux kernel image
[email protected]:~$
 

Lord Boltar

Well-Known Member
Joined
Nov 24, 2020
Messages
1,771
Reaction score
1,183
Credits
13,191
with all those unnecessary kernels you may have run out of space in the /boot folder
Code:
sudo apt purge linux-image-5.4.0-74-generic linux-image-5.4.0-92 linux-image-5.4.0-94 linux-image-5.4.0-96 linux-image-5.4.0-97
Once removed run
Code:
sudo apt-get autoremove
Code:
sudo apt-get clean
then finally
Code:
sudo dpkg --configure -a
I think that once you remove those older kernels and free up space in your boot folder things will straighten out - generally at most you want to keep only 2 kernels the most current and the one prior just in case some update breaks the newest kernel you can boot into another - but if you have to many kernels your /boot folder will get full and throw up a bunch of errors because nothing more can be installed into it
 
OP
M

M7379t

New Member
Joined
Feb 23, 2022
Messages
8
Reaction score
3
Credits
112
with all those unnecessary kernels you may have run out of space in the /boot folder
Code:
sudo apt purge linux-image-5.4.0-74-generic linux-image-5.4.0-92 linux-image-5.4.0-94 linux-image-5.4.0-96 linux-image-5.4.0-97
Once removed run
Code:
sudo apt-get autoremove
Code:
sudo apt-get clean
then finally
Code:
sudo dpkg --configure -a
I think that once you remove those older kernels and free up space in your boot folder things will straighten out - generally at most you want to keep only 2 kernels the most current and the one prior just in case some update breaks the newest kernel you can boot into another - but if you have to many kernels your /boot folder will get full and throw up a bunch of errors because nothing more can be installed into it
Thanks for the solution. I purged the old apts and now have 454.2 MB of disk space in the boot directory. I rebooted the computer and I refreshed the update manager to see if there are any updates but it indicates that the sys is up to date. The sys reports indicates that there are no issues.
It appears that the sys is nominal. I appreciate the help from you, Lord Boltar, and Condobloke. I believe that there is a place that I need to go to on this site to indicate that my problem has been resolved, please let me know where that is located so that I can do so.Thanks again!
 

Lord Boltar

Well-Known Member
Joined
Nov 24, 2020
Messages
1,771
Reaction score
1,183
Credits
13,191
Thanks for the solution. I purged the old apts and now have 454.2 MB of disk space in the boot directory. I rebooted the computer and I refreshed the update manager to see if there are any updates but it indicates that the sys is up to date. The sys reports indicates that there are no issues.
It appears that the sys is nominal. I appreciate the help from you, Lord Boltar, and Condobloke. I believe that there is a place that I need to go to on this site to indicate that my problem has been resolved, please let me know where that is located so that I can do so.Thanks again!
You can put (Solved) in front of the title of you first post - glad it is fixed for you
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation


Latest posts

Top