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

简介: flAbsPath on /var/lib/dpkg/status failed - realpath

错误如下:


root@nanjing:/home/quantum6/nanjing/doubango# apt install libtool
正在读取软件包列表... 有错误!
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
apt update

再安装,通过。

目录
相关文章
configure: error: Could not find cups!
configure: error: Could not find cups!
487 0
E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: 没有那个文件或目录)
E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: 没有那个文件或目录)
294 0
|
7月前
No rule to make target ‘.xxxxxxxx‘, needed by ‘debug/xxxx.cpp‘. Stop.
No rule to make target ‘.xxxxxxxx‘, needed by ‘debug/xxxx.cpp‘. Stop.
装R包(package)error:(as ‘lib’ is unspecified)installation of package had non-zero exit status]
装R包(package)error:(as ‘lib’ is unspecified)installation of package had non-zero exit status]
|
关系型数据库 MySQL 数据库
ERROR! MariaDB is running but PID file could not be found
在CentOS7.6上安装了MariaDB10.3,采用的yum方式安装的,用命令查看数据库的状态会报错误
173 0
npm ERR! Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules‘
npm ERR! Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules‘
164 0
未解决:dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/-1.diff.rm5mTN
未解决:dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/-1.diff.rm5mTN
131 0
|
应用服务中间件 nginx
[error] OpenEvent(“Global\ngx_reload_11812“) failed (2: The system cannot find the file specified
[error] OpenEvent(“Global\ngx_reload_11812“) failed (2: The system cannot find the file specified
flAbsPath on /var/lib/dpkg/status failed - realpath
flAbsPath on /var/lib/dpkg/status failed - realpath
397 0
|
Linux 虚拟化
安装centos7 报错[FAILED] Failed to start Switch Root. see 'systemctl status initrd-switch-root.service' for details
安装centos7 报错[FAILED] Failed to start Switch Root. see 'systemctl status initrd-switch-root.service' for details
24687 0