flAbsPath on /var/lib/dpkg/status failed – realpath

error:

[email protected]:/home/quantum6/nanjing/doubango# apt install libtool
正在读取软件包列表... 有错误!
E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: 没有那个文件或目录)
E: 无法打开文件  - open (2: 没有那个文件或目录)
E: Problem opening 
E: 无法解析或打开软件包的列表或是状态文件。

solution:

mkdir -p /var/lib/dpkg/{alternatives,info,parts,triggers,updates}

cp /var/backups/dpkg.status.0 /var/lib/dpkg/status

apt update

reinstall, through.

Read More: