Consider a "fresh" system that doesn't have user files that can be deleted easily to reclaim hard drive space. On such a system, how can one recover from running out of space during an apt installation?
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
The system I have in mind is the Ubuntu phone Aquaris E4.5, which has quite limited hard drive space. On a fresh system on the phone, it is easy to run out of space when installing a large program using apt-get
. What I want to know is how to backtrack from an error like the following when there are no files that can be deleted other than default system files and the fraction of the program that was in the process of being installed by apt
.
dpkg: error: failed to write status database record about 'iputils-ping' to '/var/lib/dpkg/status': No space left on device
/var/cache/apt
maybe? – Jos Jan 04 '17 at 16:55/var/cache/apt/archives
. Thanks for the suggestion. – d3pd Jan 04 '17 at 17:15