LinuxQuestions.org
Visit Jeremy's Blog.
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 07-04-2019, 03:08 PM   #1
kevinas716
LQ Newbie
 
Registered: Jun 2019
Posts: 4

Rep: Reputation: Disabled
Please help me. /boot full. What do I do :(


Something went wrong during my recent update process.
I now try:
sudo apt-get dist-upgrade
and get errors.

As such I try:
sudo apt autoremove
and continue to get errors.

In the past sudo apt autoremove would fix my /boot full issues, but today it's not working.

I'm so lost as to what to do.

It says:
"2 not fully installed or removed."
However both commands to either upgrade or remove dont work.
Log below.

Would love some assistance!

Code:
admin@user123:~$ sudo apt-get dist-upgrade
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.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up initramfs-tools (0.130ubuntu3.8) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-firmware (1.173.8) ...
update-initramfs: Generating /boot/initrd.img-5.1.15-050115-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-5.1.15-050115-generic with 1.
dpkg: error processing package linux-firmware (--configure):
 installed linux-firmware package post-installation script subprocess returned error exit status 1
Processing triggers for initramfs-tools (0.130ubuntu3.8) ...
update-initramfs: Generating /boot/initrd.img-5.1.15-050115-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-5.1.15-050115-generic 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-firmware
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
admin@user123:~$ sudo 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.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.130ubuntu3.8) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-firmware (1.173.8) ...
update-initramfs: Generating /boot/initrd.img-5.1.15-050115-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-5.1.15-050115-generic with 1.
dpkg: error processing package linux-firmware (--configure):
 installed linux-firmware package post-installation script subprocess returned error exit status 1
Processing triggers for initramfs-tools (0.130ubuntu3.8) ...
update-initramfs: Generating /boot/initrd.img-5.1.15-050115-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-5.1.15-050115-generic 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-firmware
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
admin@user123:~$ df
Filesystem                   1K-blocks    Used Available Use% Mounted on
udev                           1975276       0   1975276   0% /dev
tmpfs                           403696     864    402832   1% /run
/dev/mapper/user123--vg-root  22079356 6237464  14697268  30% /
tmpfs                          2018472       0   2018472   0% /dev/shm
tmpfs                             5120       0      5120   0% /run/lock
tmpfs                          2018472       0   2018472   0% /sys/fs/cgroup
/dev/sda1                       482922  443870     14118  97% /boot
tmpfs                           403692       0    403692   0% /run/user/1000
admin@user123:~$

Last edited by kevinas716; 07-04-2019 at 03:10 PM.
 
Old 07-04-2019, 03:55 PM   #2
dc.901
Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS 6-7; SuSE 8-12
Posts: 599

Rep: Reputation: 174Reputation: 174
You will have to remove old kernels; see this post:
https://askubuntu.com/questions/2232...ing-the-kernel

How big is /boot?

What is the exact "autoremove" command did you run and what was the output?
 
1 members found this post helpful.
Old 07-05-2019, 01:18 PM   #3
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 423

Rep: Reputation: Disabled
what a strange configuration - you have a /boot partition that is limited in size? usually people use "whole disk" installation since the early 2000's (unlimited /boot size)

is that debian or ubuntu that did that or did you create your own /boot partition ?

anyway be CAREFUL about removing files from /boot - it may cause you to be unable to boot

and my ad is that using debian you can expect to have many more such "issues", though in this channel i will not say why
 
Old 07-05-2019, 01:21 PM   #4
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 423

Rep: Reputation: Disabled
if /boot is on the same disk as /var, then you can find some files you can remove in /var

show use your fstab(5) so we know what we're saying in answering you
 
Old 07-05-2019, 01:50 PM   #5
dc.901
Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS 6-7; SuSE 8-12
Posts: 599

Rep: Reputation: 174Reputation: 174
@X-LFS-2010 - This is a known issue in Ubuntu 16.10; problem is old kernels do not get purged after apt update, so /boot (which is created by installer), and have to be cleaned up manually.
I have read that this problem is resolved in 18.x.
 
Old 07-05-2019, 06:10 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,146

Rep: Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935
I tried the commands in the link above on a Mint system I'm responsible for. Interest only as I'm not an apt-based system user normally.
Read the output really carefully. I specified the oldest kernel for deletion and it selected four - plus headers and modules as expected. I was planning on getting rid of them all eventually, but didn't expect (and don't know why) the other later kernels to be considered dependencies.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mint 18 Full disk encryption VS Veracrypt Full Disk encryption: Help a Noob Decide Please ! APeacefulRig Linux - Security 2 11-11-2016 08:10 AM
[SOLVED] /boot is full, can't do any updates and can't autoremove, please help wh33t Ubuntu 8 07-15-2015 08:32 PM
Please, Please,Please help with HD Cloning... knichel Linux - Software 7 09-16-2006 10:19 PM
please please please help :'( ach1lles SUSE / openSUSE 2 02-28-2005 05:03 AM
Samba Help Please!!!! Please !!!! Please!!! Snake007uk Linux - Networking 18 07-10-2002 01:22 PM

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

All times are GMT -5. The time now is 11:37 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration