/var/lib/dpkg/status) is not remembering things well. This leads package management to fail in any case, automatic repairs don't work.
dpkg: unrecoverable fatal error, aborting: reading files list for package 'emacs23-common': Input/output errorDue to an archive post by gartss (Refer link), it is repairable by manually removing the error-causing package records in
Here is the sketch.
cd /var/lib/dpkg sudo cp status status.backup sudo vi status //remove the error package records (not those of dependencies) sudo dpkg --configure -a sudo apt-get -f install