i cant update - not enought space in boot folder

Asked by RAUL EDUARDO OTEGUI

i cant update to the new version

this is the error message --
The upgrade needs a total of 44.1 M free space n disk '/boot' . Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'

edu@Eduardo:~$ mount; df -h; dpkg -l | grep linux-
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=4028564k,nr_inodes=1007141,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=810288k,mode=755)
/dev/mapper/ubuntu--vg-root on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=214)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sda1 on /boot type ext2 (rw,relatime,block_validity,barrier,user_xattr,acl,stripe=4)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=810288k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
Filesystem Size Used Avail Use% Mounted on
udev 3.9G 0 3.9G 0% /dev
tmpfs 792M 9.5M 782M 2% /run
/dev/mapper/ubuntu--vg-root 451G 17G 411G 4% /
tmpfs 3.9G 57M 3.9G 2% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/sda1 472M 450M 0 100% /boot
tmpfs 792M 48K 792M 1% /run/user/1000
ii linux-base 4.0ubuntu1 all Linux image base package
iF linux-firmware 1.157.14 all Firmware for Linux kernel drivers
iU linux-generic-hwe-16.04 4.10.0.42.44 amd64 Complete Generic Linux kernel and headers
ii linux-headers-4.10.0-28 4.10.0-28.32~16.04.2 all Header files related to Linux kernel version 4.10.0
ii linux-headers-4.10.0-28-generic 4.10.0-28.32~16.04.2 amd64 Linux kernel headers for version 4.10.0 on 64 bit x86 SMP
ii linux-headers-4.10.0-30 4.10.0-30.34~16.04.1 all Header files related to Linux kernel version 4.10.0
ii linux-headers-4.10.0-30-generic 4.10.0-30.34~16.04.1 amd64 Linux kernel headers for version 4.10.0 on 64 bit x86 SMP
ii linux-headers-4.10.0-32 4.10.0-32.36~16.04.1 all Header files related to Linux kernel version 4.10.0
ii linux-headers-4.10.0-32-generic 4.10.0-32.36~16.04.1 amd64 Linux kernel headers for version 4.10.0 on 64 bit x86 SMP
ii linux-headers-4.10.0-33 4.10.0-33.37~16.04.1 all Header files related to Linux kernel version 4.10.0
ii linux-headers-4.10.0-33-generic 4.10.0-33.37~16.04.1 amd64 Linux kernel headers for version 4.10.0 on 64 bit x86 SMP
ii linux-headers-4.10.0-35 4.10.0-35.39~16.04.1 all Header files related to Linux kernel version 4.10.0
ii linux-headers-4.10.0-35-generic 4.10.0-35.39~16.04.1 amd64 Linux kernel headers for version 4.10.0 on 64 bit x86 SMP
ii linux-headers-4.10.0-37 4.10.0-37.41~16.04.1 all Header files related to Linux kernel version 4.10.0
ii linux-headers-4.10.0-37-generic 4.10.0-37.41~16.04.1 amd64 Linux kernel headers for version 4.10.0 on 64 bit x86 SMP
ii linux-headers-4.10.0-38 4.10.0-38.42~16.04.1 all Header files related to Linux kernel version 4.10.0
ii linux-headers-4.10.0-38-generic 4.10.0-38.42~16.04.1 amd64 Linux kernel headers for version 4.10.0 on 64 bit x86 SMP
ii linux-headers-4.10.0-40 4.10.0-40.44~16.04.1 all Header files related to Linux kernel version 4.10.0
ii linux-headers-4.10.0-40-generic 4.10.0-40.44~16.04.1 amd64 Linux kernel headers for version 4.10.0 on 64 bit x86 SMP
ii linux-headers-4.10.0-42 4.10.0-42.46~16.04.1 all Header files related to Linux kernel version 4.10.0
ii linux-headers-4.10.0-42-generic 4.10.0-42.46~16.04.1 amd64 Linux kernel headers for version 4.10.0 on 64 bit x86 SMP
ii linux-headers-generic-hwe-16.04 4.10.0.42.44 amd64 Generic Linux kernel headers
ii linux-image-4.10.0-28-generic 4.10.0-28.32~16.04.2 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii linux-image-4.10.0-30-generic 4.10.0-30.34~16.04.1 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii linux-image-4.10.0-32-generic 4.10.0-32.36~16.04.1 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii linux-image-4.10.0-33-generic 4.10.0-33.37~16.04.1 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii linux-image-4.10.0-35-generic 4.10.0-35.39~16.04.1 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii linux-image-4.10.0-37-generic 4.10.0-37.41~16.04.1 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii linux-image-4.10.0-38-generic 4.10.0-38.42~16.04.1 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii linux-image-4.10.0-40-generic 4.10.0-40.44~16.04.1 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP
iF linux-image-4.10.0-42-generic 4.10.0-42.46~16.04.1 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii linux-image-extra-4.10.0-28-generic 4.10.0-28.32~16.04.2 amd64 Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
ii linux-image-extra-4.10.0-30-generic 4.10.0-30.34~16.04.1 amd64 Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
ii linux-image-extra-4.10.0-32-generic 4.10.0-32.36~16.04.1 amd64 Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
ii linux-image-extra-4.10.0-33-generic 4.10.0-33.37~16.04.1 amd64 Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
ii linux-image-extra-4.10.0-35-generic 4.10.0-35.39~16.04.1 amd64 Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
ii linux-image-extra-4.10.0-37-generic 4.10.0-37.41~16.04.1 amd64 Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
ii linux-image-extra-4.10.0-38-generic 4.10.0-38.42~16.04.1 amd64 Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
iF linux-image-extra-4.10.0-40-generic 4.10.0-40.44~16.04.1 amd64 Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
iU linux-image-extra-4.10.0-42-generic 4.10.0-42.46~16.04.1 amd64 Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
iU linux-image-generic-hwe-16.04 4.10.0.42.44 amd64 Generic Linux kernel image
ii linux-libc-dev:amd64 4.4.0-104.127 amd64 Linux Kernel Headers for development
ii linux-sound-base 1.0.25+dfsg-0ubuntu5 all base package for ALSA and OSS sound systems
ii syslinux-common 3:6.03+dfsg-11ubuntu1 all collection of bootloaders (common)
ii syslinux-legacy 2:3.63+dfsg-2ubuntu8 amd64 Bootloader for Linux/i386 using MS-DOS floppies

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
Bashing-om
Solved:
Last query:
Last reply:
Revision history for this message
Best Bashing-om (bashing-om) said :
#1

RAUL EDUARDO OTEGUI; Hello -

You must remove old kernels.
Try the easier way and have the system attempt to clean up - at 100% capacity the chances are slim.
Any joy with terminal command:
sudo apt autoremove

failing that one resorts to manually removing the old kernels . .
tutorial here:
https://help.ubuntu.com/community/RemoveOldKernels

Make sure you know the booting kernel and the version just under that booting kernel . DO NOT remove them .

-my bit to try and help-

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

From your output:
/dev/sda1 472M 450M 0 100% /boot

Due to the fact that the /boot partition is already 100% full, I assume that the standard commands (like apt autoremove) will not work, because they need some free space left. It should, however, be possible to manually delete the oldest kernel files to create some free space, and then use the package management commands to do the rest.

What is the output of the command
ls -l /boot

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

What is the output of:

uname -a; lsb_release -a

Thanks

Revision history for this message
RAUL EDUARDO OTEGUI (reo2005) said :
#4

Thank you! All the answers!! i've started with the #1 from Bashing-om and after the easy way running sudo apt autoremove and this is the result. i'll check the tutorial to learn how to clean it in maintenance cycle
the answer #1 was successful
thank you Bashing-om

edu@Eduardo:~$ ~$ mount; df -h; dpkg -l | grep linux-
~$: command not found
Filesystem Size Used Avail Use% Mounted on
udev 3.9G 0 3.9G 0% /dev
tmpfs 792M 9.5M 782M 2% /run
/dev/mapper/ubuntu--vg-root 451G 15G 413G 4% /
tmpfs 3.9G 17M 3.9G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/sda1 472M 117M 331M 27% /boot
tmpfs 792M 52K 792M 1% /run/user/1000
ii linux-base 4.0ubuntu1 all Linux image base package
ii linux-firmware 1.157.14 all Firmware for Linux kernel drivers
ii linux-generic-hwe-16.04 4.10.0.42.44 amd64 Complete Generic Linux kernel and headers
ii linux-headers-4.10.0-40 4.10.0-40.44~16.04.1 all Header files related to Linux kernel version 4.10.0
ii linux-headers-4.10.0-40-generic 4.10.0-40.44~16.04.1 amd64 Linux kernel headers for version 4.10.0 on 64 bit x86 SMP
ii linux-headers-4.10.0-42 4.10.0-42.46~16.04.1 all Header files related to Linux kernel version 4.10.0
ii linux-headers-4.10.0-42-generic 4.10.0-42.46~16.04.1 amd64 Linux kernel headers for version 4.10.0 on 64 bit x86 SMP
ii linux-headers-generic-hwe-16.04 4.10.0.42.44 amd64 Generic Linux kernel headers
rc linux-image-4.10.0-28-generic 4.10.0-28.32~16.04.2 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP
rc linux-image-4.10.0-30-generic 4.10.0-30.34~16.04.1 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP
rc linux-image-4.10.0-32-generic 4.10.0-32.36~16.04.1 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP
rc linux-image-4.10.0-33-generic 4.10.0-33.37~16.04.1 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP
rc linux-image-4.10.0-35-generic 4.10.0-35.39~16.04.1 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP
rc linux-image-4.10.0-37-generic 4.10.0-37.41~16.04.1 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP
rc linux-image-4.10.0-38-generic 4.10.0-38.42~16.04.1 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii linux-image-4.10.0-40-generic 4.10.0-40.44~16.04.1 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii linux-image-4.10.0-42-generic 4.10.0-42.46~16.04.1 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP
rc linux-image-extra-4.10.0-28-generic 4.10.0-28.32~16.04.2 amd64 Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
rc linux-image-extra-4.10.0-30-generic 4.10.0-30.34~16.04.1 amd64 Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
rc linux-image-extra-4.10.0-32-generic 4.10.0-32.36~16.04.1 amd64 Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
rc linux-image-extra-4.10.0-33-generic 4.10.0-33.37~16.04.1 amd64 Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
rc linux-image-extra-4.10.0-35-generic 4.10.0-35.39~16.04.1 amd64 Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
rc linux-image-extra-4.10.0-37-generic 4.10.0-37.41~16.04.1 amd64 Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
rc linux-image-extra-4.10.0-38-generic 4.10.0-38.42~16.04.1 amd64 Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
ii linux-image-extra-4.10.0-40-generic 4.10.0-40.44~16.04.1 amd64 Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
ii linux-image-extra-4.10.0-42-generic 4.10.0-42.46~16.04.1 amd64 Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
ii linux-image-generic-hwe-16.04 4.10.0.42.44 amd64 Generic Linux kernel image
ii linux-libc-dev:amd64 4.4.0-104.127 amd64 Linux Kernel Headers for development
ii linux-sound-base 1.0.25+dfsg-0ubuntu5 all base package for ALSA and OSS sound systems
ii syslinux-common 3:6.03+dfsg-11ubuntu1 all collection of bootloaders (common)
ii syslinux-legacy 2:3.63+dfsg-2ubuntu8 amd64 Bootloader for Linux/i386 using MS-DOS floppies

thank you again
happy holidays

Revision history for this message
RAUL EDUARDO OTEGUI (reo2005) said :
#5

Thanks Bashing-om, that solved my question.

Revision history for this message
Bashing-om (bashing-om) said :
#6

RAUL EDUARDO OTEGUI; Great .

Pleased it all worked out.

While not required, you might want to clean up the files marked "rc" ( -r-emoved but -c-onfig files remain) to gain back just a bit of disk space and make things easier to read:
dpkg -l | awk '/^rc/{print $2}' | xargs sudo dpkg -P

-I like clean behind me-