Not enough free space for update
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/
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
|
#1 |
What is the output of:
lsb_release -a; uname -a; dpkg -l | grep linux-image
Thanks
Revision history for this message
|
#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-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
Revision history for this message
|
#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
|
#4 |
Please provide the output of the following terminal commands:
uname -a
df -h
df -i
sudo dpkg --purge linux-image-
df -h
df -i
Revision history for this message
|
#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-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
Revision history for this message
|
#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/
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@gusGreen:~$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/
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@gusGreen:~$ sudo dpkg --purge linux-image-
[sudo] password for gus:
(Reading database ... 296368 files and directories currently installed.)
Removing linux-image-
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
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-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Purging configuration files for linux-image-
Removing linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
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/
- 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/
run-parts: executing /etc/kernel/
update-initramfs: Deleting /boot/initrd.
run-parts: executing /etc/kernel/
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-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Purging configuration files for linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
gus@gusGreen:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/
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@gusGreen:~$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/
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/
Revision history for this message
|
#7 |
sudo apt-get --purge remove linux-image-
sudo apt-get --purge autoremove
Revision history for this message
|
#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.