Ubuntu error: flAbsPath on /var/lib/dpkg/status failed – realpath (2: No such file or directory)

false

E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: No such file or directory)

solution

sudo mkdir -p /var/lib/dpkg/{alternatives,info,parts,triggers,updates}
sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/status
apt-get download dpkg
sudo dpkg -i dpkg*.deb
apt-get download base-files
sudo dpkg -i base-files*.deb
sudo apt-get update
sudo apt-get check

Read More: