LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-19-2020, 02:41 PM   #1
Mithrilhall
Member
 
Registered: Feb 2002
Location: Adamstown, Pitcairn Islands
Distribution: Neon
Posts: 291

Rep: Reputation: 30
Question Problem running apt autoremove


I'm attempting to run
Code:
sudo apt autoremove
and I'm getting the following error:

Code:
ThinkPad-T460:/etc/apt/sources.list.d$ sudo apt autoremove 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-5.4.0-54-generic (5.4.0-54.60) ...
Processing triggers for initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-53-generic
I: The initramfs will attempt to resume from /dev/dm-2
I: (/dev/mapper/neon--vg-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-53-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-54-generic (5.4.0-54.60) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-54-generic
I: The initramfs will attempt to resume from /dev/dm-2
I: (/dev/mapper/neon--vg-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-54-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-54-generic (--configure):
 installed linux-image-5.4.0-54-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
 linux-image-5.4.0-54-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
Any help would be appreciated.
 
Old 11-19-2020, 03:46 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
The error message mentions error 24. This could be error ENFILE "Too many open files". If so, perhaps kernel parameter /proc/sys/fs/file-max needs adjustment, or any other configuration setting that affects the number of open files.
 
Old 11-19-2020, 04:08 PM   #3
Mithrilhall
Member
 
Registered: Feb 2002
Location: Adamstown, Pitcairn Islands
Distribution: Neon
Posts: 291

Original Poster
Rep: Reputation: 30
Current value of /proc/sys/fs/file-max is 9223372036854775807.
 
Old 11-19-2020, 04:10 PM   #4
Mithrilhall
Member
 
Registered: Feb 2002
Location: Adamstown, Pitcairn Islands
Distribution: Neon
Posts: 291

Original Poster
Rep: Reputation: 30
Output of df -h is:

Code:
ThinkPad-T460:/proc/sys/fs$ df -h
Filesystem                 Size  Used Avail Use% Mounted on
udev                       7.5G     0  7.5G   0% /dev
tmpfs                      1.6G  1.8M  1.6G   1% /run
/dev/mapper/neon--vg-root  467G  267G  177G  61% /
tmpfs                      7.6G  619M  7.0G   9% /dev/shm
tmpfs                      5.0M  4.0K  5.0M   1% /run/lock
tmpfs                      7.6G     0  7.6G   0% /sys/fs/cgroup
/dev/loop3                  56M   56M     0 100% /snap/core18/1932
/dev/loop0                  98M   98M     0 100% /snap/core/10126
/dev/loop1                  56M   56M     0 100% /snap/core18/1885
/dev/loop2                 141M  141M     0 100% /snap/gnome-3-26-1604/98
/dev/loop4                  63M   63M     0 100% /snap/gtk-common-themes/1506
/dev/loop5                  98M   98M     0 100% /snap/core/10185
/dev/loop6                 141M  141M     0 100% /snap/gnome-3-26-1604/100
/dev/loop7                  45M   45M     0 100% /snap/gtk-common-themes/1440
/dev/sda1                  704M  627M   26M  97% /boot
tmpfs                      1.6G   40K  1.6G   1% /run/user/1000
Could I not have enough room in /boot?
 
Old 11-19-2020, 04:16 PM   #5
Mithrilhall
Member
 
Registered: Feb 2002
Location: Adamstown, Pitcairn Islands
Distribution: Neon
Posts: 291

Original Poster
Rep: Reputation: 30
I removed a file from /boot freeing up some room and all is good.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get autoremove whittycat Debian 5 09-22-2009 02:13 AM
apt-get autoremove cccc Debian 2 07-26-2009 02:55 PM
apt-get autoremove, LIES!! BigglesPiP Debian 18 01-24-2009 11:22 AM
Significant change caused by apt-get-autoremove, new package, or full disk- which? sonichedgehog Debian 0 02-06-2008 06:36 PM
"apt-get autoremove" in Debian Etch/Sid available? deepclutch Debian 1 12-27-2006 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration