Problema:

Reading package lists… Error!
E: flAbsPath on /var/lib/dpkg/status failed – realpath (2: No such file or directory)
E: Could not open file – open (2: No such file or directory)
E: Problem opening
E: The package lists or status file could not be parsed or opened.

solucion:

touch /var/lib/dpkg/status

Problema:

dpkg: error: cannot scan updates directory `/var/lib/dpkg/updates/’: No such file or directory
E: Sub-process /usr/bin/dpkg returned an error code (2)

Solucion:

mkdir /var/lib/dpkg/updates

Problema:

update-alternatives: error: cannot scan directory ‘/var/lib/dpkg/alternatives’: No such file or directory
dpkg: error processing package vim (–configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:

Solucion:

mkdir /var/lib/dpkg/alternatives/