PDA

View Full Version : [ubuntu] 14.04 x64 /boot full issue



chris-tolley
July 21st, 2014, 03:02 AM
I'm having a problem that just won't fix itself. Tried an update a few days ago, and I got the following error:


The upgrade needs a total of 81.4 M free space on disk '/boot'.
Please free at least an additional 13.6 M of disk space on '/boot'.
Empty your trash and remove temporary packages of former installations
using 'sudo apt-get clean'.

Cool, whatever, I'll clean it up. So I went in through Nautilus and got rid of older kernels, leaving just the current two. I ran apt-get clean, and tried updating again. Same error. Okay, so I got rid of the 2nd to current kernel. Nadda. I rebooted thinking my computer was being retarded. Still telling me I need 13.6 M freed up. That number hasn't changed.

So, I got to digging around on here and tried a few more things that seems to have helped others. It hasn't helped me.


####@####-K61IC:~$ uname -r
3.13.0-30-generic
####@####-K61IC:~$


####@####-K61IC:~$ sudo dpkg --list 'linux-image*'
[sudo] password for ####:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
un linux-image <none> <none> (no description available)
un linux-image-3. <none> <none> (no description available)
rc linux-image-3. 3.13.0-24.47 amd64 Linux kernel image for version 3.
rc linux-image-3. 3.13.0-27.50 amd64 Linux kernel image for version 3.
ii linux-image-3. 3.13.0-29.53 amd64 Linux kernel image for version 3.
ii linux-image-3. 3.13.0-30.55 amd64 Linux kernel image for version 3.
rc linux-image-ex 3.13.0-24.47 amd64 Linux kernel extra modules for ve
rc linux-image-ex 3.13.0-27.50 amd64 Linux kernel extra modules for ve
ii linux-image-ex 3.13.0-29.53 amd64 Linux kernel extra modules for ve
ii linux-image-ex 3.13.0-30.55 amd64 Linux kernel extra modules for ve
ii linux-image-ge 3.13.0.30.36 amd64 Generic Linux kernel image
####@####-K61IC:~$

It's showing the older kernels there, but:


####@####-K61IC:/boot$ ls
abi-3.13.0-30-generic memtest86+.bin
config-3.13.0-30-generic memtest86+.elf
grub memtest86+_multiboot.bin
initrd.img-3.13.0-30-generic System.map-3.13.0-30-generic
lost+found vmlinuz-3.13.0-30-generic
####@####-K61IC:/boot$

How do I go about correcting this issue?

I tried:


sudo apt-get remove linux-image-version

But I can't seem to call the kernels by the correct name, as I keep getting "unable to locate package" errors.

Thank you in advance for the assistance.

oldfred
July 21st, 2014, 05:13 AM
Much better to delete with synaptic. Dpkg is keeping a list and you need to full uninstall with synaptic or from command line with dpkg. Now you may have packages in dpkg but not the package on the system to delete. Or you are out of sync.

If you have upgraded and have kernels from old install, they probably will not be in the new dpkg and you do have to manually delete. But then the go into trash and you have to empty trash to finally get space back.

Determine your current kernel:
uname -a
uname -r
In synaptic search for linux-image to choose to delete old ones
Also command line in post #8
http://ubuntuforums.org/showthread.php?t=1283521
cd /boot
ls vmlinuz*
sudo apt-get purge linux-image-[version]-generic linux-image-[version]-generic
Multiples, just be sure not to delete your current kernel:
sudo apt-get purge linux-image-3.8.0-{XX,XX,XX,XX,XX,XX}-generic
Example:
sudo apt-get purge linux-image-3.8.0-{17,18,19,21,22,23,24}-generic
#current install:
lsb_release -a

How To: Disk Full? - Check Your Trash
http://ubuntuforums.org/showthread.php?t=898573

If you get permission problems try to slip a sudo in front of the commands, but be sure that the path is correct.

Sometimes it is necessary to change the ownership of the trash files:
sudo chown -R yourusername /home/yourusername/.local/share/Trash

RecoverLostDiskSpace
https://help.ubuntu.com/community/RecoverLostDiskSpace
HOWTO: Recover Lost Disk Space - drs305
http://ubuntuforums.org/showthread.php?t=1122670
http://ubuntuforums.org/showthread.php?t=898573
HOWTO: Cleaning up all those unnecessary junk files...
http://ubuntuforums.org/showthread.php?t=140920
Caution deborphan will delete anything you manually installed. See comment:

chris-tolley
July 21st, 2014, 05:24 AM
Still have more on your list to follow, and I will in the morning. Thank you for the reply for me to chase. I'll get after it and reply again, but for now you'll see what I ran in to. My trash is/has been empty, but I changed permissions anyway just in case something was hidden. Nothing was.


####@######-K61IC:/boot$ sudo apt-get purge linux-image-3.13.0-24.47-generic linux-image-3.13.0-27.50-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-3.13.0-24.47-generic
E: Couldn't find any package by regex 'linux-image-3.13.0-24.47-generic'
E: Unable to locate package linux-image-3.13.0-27.50-generic
E: Couldn't find any package by regex 'linux-image-3.13.0-27.50-generic'

oldfred
July 21st, 2014, 05:55 AM
Be sure to use package name not version.
example in my system
linux (3.2.0-67.101) precise is the version, but package is linux-image-3.2.0-67-generic

chris-tolley
July 22nd, 2014, 05:06 PM
[QUOTE=chris-tolley;13078545]

Good news. I went from this:


####@####-K61IC:~$ sudo dpkg --list 'linux-image*'
[sudo] password for ####:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
un linux-image <none> <none> (no description available)
un linux-image-3. <none> <none> (no description available)
rc linux-image-3. 3.13.0-24.47 amd64 Linux kernel image for version 3.
rc linux-image-3. 3.13.0-27.50 amd64 Linux kernel image for version 3.
ii linux-image-3. 3.13.0-29.53 amd64 Linux kernel image for version 3.
ii linux-image-3. 3.13.0-30.55 amd64 Linux kernel image for version 3.
rc linux-image-ex 3.13.0-24.47 amd64 Linux kernel extra modules for ve
rc linux-image-ex 3.13.0-27.50 amd64 Linux kernel extra modules for ve
ii linux-image-ex 3.13.0-29.53 amd64 Linux kernel extra modules for ve
ii linux-image-ex 3.13.0-30.55 amd64 Linux kernel extra modules for ve
ii linux-image-ge 3.13.0.30.36 amd64 Generic Linux kernel image


To this:


####@####-K61IC:~$ sudo dpkg --list 'linux-image*'[sudo] password for ctolley:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
un linux-image <none> <none> (no description available)
un linux-image-3. <none> <none> (no description available)
un linux-image-3. <none> <none> (no description available)
un linux-image-3. <none> <none> (no description available)
ii linux-image-3. 3.13.0-30.55 amd64 Linux kernel image for version 3.
rc linux-image-ex 3.13.0-24.47 amd64 Linux kernel extra modules for ve
rc linux-image-ex 3.13.0-27.50 amd64 Linux kernel extra modules for ve
ii linux-image-ex 3.13.0-30.55 amd64 Linux kernel extra modules for ve
ii linux-image-ge 3.13.0.30.36 amd64 Generic Linux kernel image


So, I have removed the kernal images for the old stuff, but now the extras are sticking around. But not all of them. Through no input of my own, -29 extras kernel was kind enough to go away. The updater is still not registering enough free space. Still *need* 13.6M.

oldfred
July 22nd, 2014, 10:47 PM
Does this show essentially the same?

ls -l /boot


Are you able to get to gui and load synaptic. I still think that is the best & easiest way to houseclean old kernels.
Did you houseclean trash? Particularly root's trash which can be difficult to empty.

chris-tolley
July 22nd, 2014, 11:05 PM
####@####-K61IC:~$ ls -l /boot
total 39404
-rw-r--r-- 1 root root 1162257 Jul 4 18:18 abi-3.13.0-30-generic
-rw-r--r-- 1 root root 165576 Jul 4 18:18 config-3.13.0-30-generic
drwxr-xr-x 5 root root 1024 Jul 22 11:28 grub
-rw-r--r-- 1 root root 29135422 Jul 6 08:23 initrd.img-3.13.0-30-generic
drwx------ 2 root root 12288 May 14 08:39 lost+found
-rw-r--r-- 1 root root 176500 Mar 12 08:31 memtest86+.bin
-rw-r--r-- 1 root root 178176 Mar 12 08:31 memtest86+.elf
-rw-r--r-- 1 root root 178680 Mar 12 08:31 memtest86+_multiboot.bin
-rw------- 1 root root 3378641 Jul 4 18:18 System.map-3.13.0-30-generic
-rw------- 1 root root 5792608 Jul 4 18:18 vmlinuz-3.13.0-30-generic





####@####-K61IC:~$ sudo rm -rf ~/root/.local/share/Trash/*



Still no change

oldfred
July 23rd, 2014, 12:46 AM
Is this an encrypted install with LVM?
Another user with encryption & LVM has exactly the same error message on 13.6MB needed???

See second screenshot in first post:
http://ubuntuforums.org/showthread.php?t=2235697

chris-tolley
July 23rd, 2014, 01:29 PM
Actually, it is. That's an interesting correlation, and it looks like it's a deeper issue than me not knowing what I'm doing.

Did a fix come about for his issue? **edit, noticed the link you posted. Reading now.

chris-tolley
July 23rd, 2014, 01:33 PM
Exact duplicate of his error:

http://i1078.photobucket.com/albums/w490/02sevendotthree/Memory_zps64dacf0b.png

oldfred
July 23rd, 2014, 03:40 PM
Since two users are getting exactly the same error, I assume it is a bug.

dojaeger
July 26th, 2014, 07:11 PM
Hello all,

I am running into the same message, with the exact same numbers.

The first message says: "...182.1 MB will be downloaded" (this number has been increasing within the last days/weeks). I confirm with "Install now" .

Then there pops up a second message: "...upgrade needs a total of 81.4 M free space on disk '/boot'. Please free at least an additional 13.6 M of disk space ..."

If it is a bug, how can we fix it :-)

Thx,
DJ

oldfred
July 27th, 2014, 04:05 AM
Probably best to file bug report. They will want lots of detail.

bug reports info on how to do:
https://help.ubuntu.com/community/ReportingBugs
https://launchpad.net/ubuntu
http://www.ubuntu.com/community/report-problem

chris-tolley
July 27th, 2014, 08:50 PM
bug report filed using "ubuntu-bug -w"

Seemed that would give the most detail in hopes of a quick resolution.

For tracking reference:

https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1349172

oldfred
July 28th, 2014, 09:03 PM
Just to confirm that space is there.

df -h

chris-tolley
July 28th, 2014, 09:14 PM
Looks like I don't have the room. Am I able to extend the partition without reinstalling?


####@####-K61IC:~$ sudo df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-root 455G 274G 158G 64% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 2.0G 12K 2.0G 1% /dev
tmpfs 396M 1.4M 394M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 16M 2.0G 1% /run/shm
none 100M 116K 100M 1% /run/user
/dev/sda1 236M 161M 63M 73% /boot
/dev/sdb1 1.9G 988M 767M 57% /media/####/66b03b4e-5d9b-4248-a007-847c3b19190c
/home/####/.Private 455G 274G 158G 64% /home/####

oldfred
July 28th, 2014, 09:23 PM
A total of 455MB should be plenty.

Are you sure all of root's trash is empty.
I had trouble fully emptying trash and had to change ownership.

chris-tolley
July 28th, 2014, 09:25 PM
Actually, disregard. x64 has been quite the hassle with many things. I'm going to load 32-bit and call it good. I'm sure the encryption is what caused this issue, but 64-bit has been problematic since I installed it. Nothing with the OS, just getting auxiliary software to install easily.

chris-tolley
July 28th, 2014, 09:28 PM
I changed ownership, and went into trash through the terminal. It's empty. I don't know what the problem is, and the feed back I received on the bug report was to go to irc for hopeful resolution. Of course, there's no link to their irc channel, and yeah... 32-bit was much friendlier.

I do sincerely appreciate the help you and others have given me with this issue though. We didn't solve it, but y'all were helpful just the same.

Bochigger
March 10th, 2015, 05:07 AM
Hi there, I had the same issue just now, updates failed because of lack of space on /boot. I am using Ubuntu 14.04 64bit with the drive encryption. This command fixed it for me:

apt-get autoremove

It found and removed the obsolete files in the boot partition.