This question already has an answer here:
When I try to
sudo apt-get upgrade on my Ubuntu 16.04 I consistently get the following error:
Preconfiguring packages ... dpkg: error processing package mount (--configure): package is in a very bad inconsistent state; you should reinstall it before attempting configuration Errors were encountered while processing: mount E: Sub-process /usr/bin/dpkg returned an error code (1)
How can I solve this?