E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: 没有那个文件或目录)

root@debian:/home/quantum6/tio-framework4# ./apt-install-jdk.sh 
正在读取软件包列表... 有错误!
E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: 没有那个文件或目录)
E: 无法打开文件  - open (2: 没有那个文件或目录)
E: Problem opening 
E: 无法解析或打开软件包的列表或是状态文件。
正在读取软件包列表... 有错误!
E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: 没有那个文件或目录)
E: 无法打开文件  - open (2: 没有那个文件或目录)
E: Problem opening 
E: 无法解析或打开软件包的列表或是状态文件。
正在读取软件包列表... 有错误!
E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: 没有那个文件或目录)
E: 无法打开文件  - open (2: 没有那个文件或目录)
E: Problem opening 
E: 无法解析或打开软件包的列表或是状态文件。
正在读取软件包列表... 有错误!

解决办法:

mkdir -p /var/lib/dpkg/{alternatives,info,parts,triggers,updates}
cp /var/backups/dpkg.status.0 /var/lib/dpkg/status

如果还有错误,参考:

https://blog.csdn.net/quantum7/article/details/105064888

发布了2601 篇原创文章 · 获赞 324 · 访问量 196万+

猜你喜欢

转载自blog.csdn.net/quantum7/article/details/105064808
今日推荐