I was installing LibreOffice on my Ubuntu phone when it ran out of space (sudo apt-get install libreoffice). When I attempt to purge what was installed of LibreOffice (sudo apt-get purge libreoffice), I am presented with the message
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
When I run sudo dpkg --configure -a, I am presented with the following error:
dpkg: error: failed to write status database record about 'iputils-ping' to '/var/lib/dpkg/status': No space left on device
How should I proceed? I am trying to purge LibreOffice precisely to address this lack of space. Are there some LibreOffice package/system files I can remove manually to make enough space for the dpkg purge to actually run?