i cant update - not enought space in boot folder
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,
proc on /proc type proc (rw,nosuid,
udev on /dev type devtmpfs (rw,nosuid,
devpts on /dev/pts type devpts (rw,nosuid,
tmpfs on /run type tmpfs (rw,nosuid,
/dev/mapper/
securityfs on /sys/kernel/
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,
cgroup on /sys/fs/
pstore on /sys/fs/pstore type pstore (rw,nosuid,
cgroup on /sys/fs/
cgroup on /sys/fs/
cgroup on /sys/fs/
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,
cgroup on /sys/fs/
cgroup on /sys/fs/
cgroup on /sys/fs/
cgroup on /sys/fs/
cgroup on /sys/fs/
cgroup on /sys/fs/
systemd-1 on /proc/sys/
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/
/dev/sda1 on /boot type ext2 (rw,relatime,
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,
Filesystem Size Used Avail Use% Mounted on
udev 3.9G 0 3.9G 0% /dev
tmpfs 792M 9.5M 782M 2% /run
/dev/mapper/
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-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
iF linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
iF linux-image-
iU linux-image-
iU linux-image-
ii linux-libc-
ii linux-sound-base 1.0.25+
ii syslinux-common 3:6.03+
ii syslinux-legacy 2:3.63+
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Bashing-om
- Solved:
- 2017-12-23
- Last query:
- 2017-12-23
- Last reply:
- 2017-12-23
|
#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:/
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-
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
What is the output of:
uname -a; lsb_release -a
Thanks
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/
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-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
rc linux-image-
rc linux-image-
rc linux-image-
rc linux-image-
rc linux-image-
rc linux-image-
rc linux-image-
ii linux-image-
ii linux-image-
rc linux-image-
rc linux-image-
rc linux-image-
rc linux-image-
rc linux-image-
rc linux-image-
rc linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-libc-
ii linux-sound-base 1.0.25+
ii syslinux-common 3:6.03+
ii syslinux-legacy 2:3.63+
thank you again
happy holidays
RAUL EDUARDO OTEGUI (reo2005) said : | #5 |
Thanks Bashing-om, that solved my question.
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-