Not enough free space for update

Asked by John Gustafson

Not enough free disk space
The upgrade needs a total of 78.4 M free space on disk '/boot'. Please free at least an additional 7,655 k of disk space on '/boot'. Empty your trash and remove temporary packages of former installations using "sudo apt-get clean".

I have recently installed 14.04 LTS

I do not have enough knowledge/experience to resolve this.

Previous posts seem to be version specific so I am reluctant to try those solutions.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

lsb_release -a; uname -a; dpkg -l | grep linux-image

Thanks

Revision history for this message
John Gustafson (opm-w) said :
#2

gus@gusGreen:~$ lsb_release -a; dpkg -l | grep linux-image
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty
ii linux-image-3.16.0-30-generic 3.16.0-30.40~14.04.1 i386 Linux kernel image for version 3.16.0 on 32 bit x86 SMP
ii linux-image-3.16.0-34-generic 3.16.0-34.47~14.04.1 i386 Linux kernel image for version 3.16.0 on 32 bit x86 SMP
ii linux-image-3.16.0-36-generic 3.16.0-36.48~14.04.1 i386 Linux kernel image for version 3.16.0 on 32 bit x86 SMP
ii linux-image-3.16.0-37-generic 3.16.0-37.51~14.04.1 i386 Linux kernel image for version 3.16.0 on 32 bit x86 SMP
ii linux-image-extra-3.16.0-30-generic 3.16.0-30.40~14.04.1 i386 Linux kernel extra modules for version 3.16.0 on 32 bit x86 SMP
ii linux-image-extra-3.16.0-34-generic 3.16.0-34.47~14.04.1 i386 Linux kernel extra modules for version 3.16.0 on 32 bit x86 SMP
ii linux-image-extra-3.16.0-36-generic 3.16.0-36.48~14.04.1 i386 Linux kernel extra modules for version 3.16.0 on 32 bit x86 SMP
ii linux-image-extra-3.16.0-37-generic 3.16.0-37.51~14.04.1 i386 Linux kernel extra modules for version 3.16.0 on 32 bit x86 SMP
ii linux-image-generic-lts-utopic 3.16.0.37.29 i386 Generic Linux kernel image

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

You missed:

uname -a

If you copy and paste the given commands, you will have fewer issues. Why do you think I give the exact command??

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

Please provide the output of the following terminal commands:

uname -a
df -h
df -i
sudo dpkg --purge linux-image-3.16.0-30-generic linux-image-extra-3.16.0-30-generic
df -h
df -i

Revision history for this message
John Gustafson (opm-w) said :
#5

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty
Linux gusGreen 3.16.0-37-generic #51~14.04.1-Ubuntu SMP Wed May 6 15:24:07 UTC 2015 i686 i686 i686 GNU/Linux
ii linux-image-3.16.0-30-generic 3.16.0-30.40~14.04.1 i386 Linux kernel image for version 3.16.0 on 32 bit x86 SMP
ii linux-image-3.16.0-34-generic 3.16.0-34.47~14.04.1 i386 Linux kernel image for version 3.16.0 on 32 bit x86 SMP
ii linux-image-3.16.0-36-generic 3.16.0-36.48~14.04.1 i386 Linux kernel image for version 3.16.0 on 32 bit x86 SMP
ii linux-image-3.16.0-37-generic 3.16.0-37.51~14.04.1 i386 Linux kernel image for version 3.16.0 on 32 bit x86 SMP
ii linux-image-extra-3.16.0-30-generic 3.16.0-30.40~14.04.1 i386 Linux kernel extra modules for version 3.16.0 on 32 bit x86 SMP
ii linux-image-extra-3.16.0-34-generic 3.16.0-34.47~14.04.1 i386 Linux kernel extra modules for version 3.16.0 on 32 bit x86 SMP
ii linux-image-extra-3.16.0-36-generic 3.16.0-36.48~14.04.1 i386 Linux kernel extra modules for version 3.16.0 on 32 bit x86 SMP
ii linux-image-extra-3.16.0-37-generic 3.16.0-37.51~14.04.1 i386 Linux kernel extra modules for version 3.16.0 on 32 bit x86 SMP
ii linux-image-generic-lts-utopic 3.16.0.37.29 i386 Generic Linux kernel image

Revision history for this message
John Gustafson (opm-w) said :
#6

gus@gusGreen:~$ uname -a
Linux gusGreen 3.16.0-37-generic #51~14.04.1-Ubuntu SMP Wed May 6 15:24:07 UTC 2015 i686 i686 i686 GNU/Linux
gus@gusGreen:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-root 145G 7.4G 130G 6% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 997M 4.0K 997M 1% /dev
tmpfs 202M 1.2M 201M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1010M 12M 998M 2% /run/shm
none 100M 52K 100M 1% /run/user
/dev/sda1 236M 156M 68M 70% /boot
/dev/sdb1 15G 8.6G 6.4G 58% /media/gus/7A3A-DA69
gus@gusGreen:~$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/ubuntu--vg-root 9625600 334520 9291080 4% /
none 220056 2 220054 1% /sys/fs/cgroup
udev 213008 521 212487 1% /dev
tmpfs 220056 529 219527 1% /run
none 220056 6 220050 1% /run/lock
none 220056 63 219993 1% /run/shm
none 220056 28 220028 1% /run/user
/dev/sda1 62248 317 61931 1% /boot
/dev/sdb1 0 0 0 - /media/gus/7A3A-DA69
gus@gusGreen:~$ sudo dpkg --purge linux-image-3.16.0-30-generic linux-image-extra-3.16.0-30-generic
[sudo] password for gus:
(Reading database ... 296368 files and directories currently installed.)
Removing linux-image-extra-3.16.0-30-generic (3.16.0-30.40~14.04.1) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.16.0-30-generic /boot/vmlinuz-3.16.0-30-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.16.0-30-generic /boot/vmlinuz-3.16.0-30-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.16.0-30-generic /boot/vmlinuz-3.16.0-30-generic
update-initramfs: Generating /boot/initrd.img-3.16.0-30-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.16.0-30-generic /boot/vmlinuz-3.16.0-30-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.16.0-30-generic /boot/vmlinuz-3.16.0-30-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.16.0-30-generic /boot/vmlinuz-3.16.0-30-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-3.16.0-37-generic
Found initrd image: /boot/initrd.img-3.16.0-37-generic
Found linux image: /boot/vmlinuz-3.16.0-36-generic
Found initrd image: /boot/initrd.img-3.16.0-36-generic
Found linux image: /boot/vmlinuz-3.16.0-34-generic
Found initrd image: /boot/initrd.img-3.16.0-34-generic
Found linux image: /boot/vmlinuz-3.16.0-30-generic
Found initrd image: /boot/initrd.img-3.16.0-30-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Purging configuration files for linux-image-extra-3.16.0-30-generic (3.16.0-30.40~14.04.1) ...
Removing linux-image-3.16.0-30-generic (3.16.0-30.40~14.04.1) ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 3.16.0-30-generic /boot/vmlinuz-3.16.0-30-generic
dkms: removing: nvidia-304 304.125 (3.16.0-30-generic) (i686)

-------- Uninstall Beginning --------
Module: nvidia-304
Version: 304.125
Kernel: 3.16.0-30-generic (i686)
-------------------------------------

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

nvidia_304.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.16.0-30-generic/updates/dkms/
 - 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....

DKMS: uninstall completed.
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.16.0-30-generic /boot/vmlinuz-3.16.0-30-generic
update-initramfs: Deleting /boot/initrd.img-3.16.0-30-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.16.0-30-generic /boot/vmlinuz-3.16.0-30-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-3.16.0-37-generic
Found initrd image: /boot/initrd.img-3.16.0-37-generic
Found linux image: /boot/vmlinuz-3.16.0-36-generic
Found initrd image: /boot/initrd.img-3.16.0-36-generic
Found linux image: /boot/vmlinuz-3.16.0-34-generic
Found initrd image: /boot/initrd.img-3.16.0-34-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Purging configuration files for linux-image-3.16.0-30-generic (3.16.0-30.40~14.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.16.0-30-generic /boot/vmlinuz-3.16.0-30-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.16.0-30-generic /boot/vmlinuz-3.16.0-30-generic
gus@gusGreen:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-root 145G 7.3G 130G 6% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 997M 12K 997M 1% /dev
tmpfs 202M 1.2M 201M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1010M 14M 997M 2% /run/shm
none 100M 52K 100M 1% /run/user
/dev/sda1 236M 119M 105M 54% /boot
/dev/sdb1 15G 8.6G 6.4G 58% /media/gus/7A3A-DA69
gus@gusGreen:~$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/ubuntu--vg-root 9625600 329275 9296325 4% /
none 220056 2 220054 1% /sys/fs/cgroup
udev 213008 524 212484 1% /dev
tmpfs 220056 533 219523 1% /run
none 220056 6 220050 1% /run/lock
none 220056 69 219987 1% /run/shm
none 220056 28 220028 1% /run/user
/dev/sda1 62248 312 61936 1% /boot
/dev/sdb1 0 0 0 - /media/gus/7A3A-DA69

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

sudo apt-get --purge remove linux-image-3.16.0-30-generic linux-image-3.16.0-34-generic linux-image-3.16.0-36-generic

sudo apt-get --purge autoremove

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

The output of the commands proposed by me shows:

1. You have a /boot partition of 236 MB size
2. Before the dpkg --purge action you had four versions of the kernel image installed (each one consisting of two packages), totaling 156 MB, so each one is about 40 MB. This is in line with the status after removal with 119 MB used by three kernel versions.

The limited size of the /boot partition restricts the number of kernel versions that you can have installed at the same time. So you must make sure to remove an old obsolete kernel before update management tries to add another one.

On the Ubuntu release that you are running, the terminal command

sudo apt-get --purge autoremove

should automatically uninstall old obsolete kernels. You should execute that command periodically.

You can check the number of installed kernel packages with the command

dpkg -l | grep linux-image

or by checking

ls /boot

Can you help with this problem?

Provide an answer of your own, or ask John Gustafson for more information if necessary.

To post a message you must log in.