PDA

View Full Version : 17.04 upgrade fails due to false 'no space left' msg



raif
April 17th, 2017, 05:51 PM
Hey there

I've been using Ubuntu for over 10 years and the upgrade to 17.04 seems to have broken my system worse than any other. I did a fresh install of 16.10 but when I tried to upgrade to 17.04 today I get stuck. Whatever dpkg or apt command I try to use, I get an error message saying no space left on device, even though there's loads.


root@r-K501:/boot# dpkg --configure --pending
Setting up imagemagick-6-common (8:6.9.7.4+dfsg-3ubuntu1) ...
dpkg: unrecoverable fatal error, aborting:
unable to install updated status of 'imagemagick-6-common': No space left on device
root@r-K501:/boot# df -h
Filesystem Size Used Avail Use% Mounted on
udev 5.8G 0 5.8G 0% /dev
tmpfs 1.2G 10M 1.2G 1% /run
/dev/sda5 16G 12G 3.5G 77% /
tmpfs 5.9G 23M 5.8G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 5.9G 0 5.9G 0% /sys/fs/cgroup
/dev/sda1 256M 29M 228M 12% /boot/efi
/dev/sda7 387G 116G 271G 30% /home
tmpfs 1.2G 112K 1.2G 1% /run/user/1000
root@r-K501:/boot# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
udev 1514232 565 1513667 1% /dev
tmpfs 1520577 982 1519595 1% /run
/dev/sda5 0 0 0 - /
tmpfs 1520577 112 1520465 1% /dev/shm
tmpfs 1520577 5 1520572 1% /run/lock
tmpfs 1520577 18 1520559 1% /sys/fs/cgroup
/dev/sda1 0 0 0 - /boot/efi
/dev/sda7 0 0 0 - /home
tmpfs 1520577 57 1520520 1% /run/user/1000


the other error message I get is

# apt-get autoremove
Reading package lists... Error!
E: Problem renaming the file /var/cache/apt/pkgcache.bin.XRSWCJ to /var/cache/apt/pkgcache.bin - rename (28: No space left on device)
W: You may want to run apt-get update to correct these problems
E: The package cache file is corrupted

My only guess as to what is going wrong is that it might be to do with using the brtfs filesystem. I've seen some suggestions about moving /boot but that won't work as my system is encrypted.

any help gratefully received.

thanks!

TheFu
April 17th, 2017, 06:07 PM
You are out of i-nodes. From your post above,

# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda5 0 0 0 - /
/dev/sda1 0 0 0 - /boot/efi
/dev/sda7 0 0 0 - /home

Nothing is possible until that is corrected.
I don't know anything about btrfs. Never touched it. Too new for my needs.