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

 sarge Release
Fetched 25.4 kB in 2s (9,195 B/s)
flAbsPath on /var/lib/dpkg/status failed - realpath (2: No such file or directory)
Could not open file  - open (2: No such file or directory)
Problem opening
The package lists or status file could not be parsed or opened.
Can't call method "policy" on an undefined value at /usr/bin/apt-show-versions line 56.
Reading package lists... Error!
E: Problem executing scripts APT::Update::Post-Invoke-Success 'test -x /usr/bin/apt-show-versions || exit 0 ; apt-show-versions -i'
E: Sub-process returned an error code
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.



dpkg --clear-avail 
rm /var/lib/apt/lists/* --force 


apt-get download dpkg
sudo dpkg -i dpkg*.deb
apt-get download base-files
sudo dpkg -i base-files*.deb
dpkg --audit
sudo apt-get update
sudo apt-get check

Comentários

Mensagens populares