package management - APT reporting disk full but disk isn't full! - Ask Ubuntu


usually able google way out of problems apt 1 has me stumped. it's complaining lacking disk space it's reporting can't create directory on sda1?

any suggestions appreciated!

here output tried.

duncan@bedroom:~$ df -h filesystem      size  used avail use% mounted on udev            1.6g  4.0k  1.6g   1% /dev tmpfs           328m  1.4m  326m   1% /run /dev/sda1        14g  9.8g  3.1g  76% / none            4.0k     0  4.0k   0% /sys/fs/cgroup none            5.0m     0  5.0m   0% /run/lock none            1.6g   13m  1.6g   1% /run/shm none            100m  8.0k  100m   1% /run/user    duncan@bedroom:~$ sudo apt-get clean   duncan@bedroom:~$ sudo apt-get install reading package lists... done building dependency tree        reading state information... done might want run ‘apt-get -f install’ correct these. following packages have unmet dependencies. linux-headers-generic : depends: linux-headers-3.13.0-100-generic not installed e: unmet dependencies. try using -f.  duncan@bedroom:~$ sudo apt-get install -f reading package lists... done building dependency tree        reading state information... done correcting dependencies... done following packages installed:   linux-headers-3.13.0-100-generic following new packages installed linux-headers-3.13.0-100-generic 0 upgrade, 1 newly install, 0 remove , 5 not upgrade. 1 not installed or removed. need 688 kb of archives. after operation, 13.2 mb of additional disk space used. want continue? [y/n] y  get:1 http://gb.archive.ubuntu.com/ubuntu/ trusty-updates/main linux-headers-3.13.0-100-generic i386 3.13.0-100.147 [688 kb] fetched 688 kb in 1s (433 kb/s)                            (reading database ... 422618 files , directories installed.) preparing unpack .../linux-headers-3.13.0-100-generic_3.13.0-100.147_i386.deb ... unpacking linux-headers-3.13.0-100-generic (3.13.0-100.147) ... no apport report written because error message indicates disk full error dpkg: error processing archive /var/cache/apt/archives/linux-headers-3.13.0-100-generic_3.13.0-100.147_i386.deb (--unpack): unable create `/usr/src/linux-headers-3.13.0-100-generic/include/config/sensors/g762.h.dpkg-new' (while processing `./usr/src/linux-headers-3.13.0-100-generic/include/config/sensors/g762.h'): no space left on device dpkg-deb: error: subprocess paste killed signal (broken pipe) errors encountered while processing: /var/cache/apt/archives/linux-headers-3.13.0-100-generic_3.13.0-100.147_i386.deb e: sub-process /usr/bin/dpkg returned error code (1) 

and in case matters:

duncan@bedroom:~$ uname -a linux bedroom 3.13.0-100-generic #147-ubuntu smp tue oct 18 16:49:53 utc 2016 i686 athlon i686 gnu/linux 

turns out disk kinda full. close exhausting inodes.

root@bedroom:~# df -i  filesystem     inodes  iused  ifree iuse% mounted on udev           207347    498 206849    1% /dev tmpfs          214299    525 213774    1% /run /dev/sda1      909312 906196   3116  100% / none           214299      2 214297    1% /sys/fs/cgroup none           214299      3 214296    1% /run/lock none           214299    133 214166    1% /run/shm none           214299     10 214289    1% /run/user 

have figure out using many now.

edit: ironically old linux header files taking lot of inodes. deleted oldest 2 versions manually /usr/src freed enough script in turn freed more.

after running apt-get purge $oldconf kyodake's script:

filesystem     inodes  iused  ifree iuse% mounted on /dev/sda1      909312 889004  20308   98% / 

after running apt-get purge $oldkernels

filesystem     inodes  iused  ifree iuse% mounted on /dev/sda1      909312 644406 264906   71% / 

and have 4gb free

thanks kyodake!


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User