Could not open lock file /var/lib/dpkg/** open(2:no such file or directory)
sudo mkdir -p /var/lib/dpkg/{alternatives,info,parts,triggers,updates}
sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/status
mkdir ./tmp && cd tmp
apt-get download dpkg
sudo dpkg -i dpkg*.deb
apt-get download base-files
sudo dpkg -i base-files*.deb
cd - && rm -r ./tmp
sudo apt-get update&& sudo apt-get check
赞 (0)