I encountered the following error while upgrading my Ubuntu 12.04 server. Now apt-get
is unable to install or removed any package.
Unpacking linux-headers-3.13.0-62 (from .../linux-headers-3.13.0-62_3.13.0-62.102~precise1_all.deb) ... dpkg: error processing /var/cache/apt/archives/linux-headers-3.13.0-62_3.13.0-62.102~precise1_all.deb (--unpack): unable to create `/usr/src/linux-headers-3.13.0-62/arch/arm/include/asm/ptrace.h.dpkg-new' (while processing `./usr/src/linux-headers-3.13.0-62/arch/arm/include/asm/ptrace.h'): No space left on device No apport report written because the error message indicates a disk full error dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/linux-headers-3.13.0-62_3.13.0-62.102~precise1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
Though I am not really out of disk space,
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 6.8G 4.7G 1.8G 69% /
Anyhow my inodes are full,
# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda1 458752 455214 3538 100% /
I have more than ten old kernels but I am unable to remove those as my apt-get
itself is lame. So I am unable to follow this post which reports similar problem.
The only option seems to delete a few older kernels manually. Will it cause any problem?
Is there any better way out? Can I use reserved space for root for the time being and remove older kernels?
/usr/src
to get rid of the situation. Luckily everything went well andapt
started working again. But I will request you to take back up before doing such thing on a production machine. I did it on a virtual machine which had complete backup.