E:在 Kali Linux 2.0 中尝试安装任何软件或更新时,/var/lib/dpkg/status 上的 flAbsPath 失败

E:在 Kali Linux 2.0 中尝试安装任何软件或更新时,/var/lib/dpkg/status 上的 flAbsPath 失败
#apt-get update

Fetched 26.5 MB in 3min 1s (146 kB/s)                                          

Output directory /var/lib/debtags/ does not exist
Reading package lists... Error!
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.

答案1

打开终端并输入:

sudo mkdir /var/lib/debtags
sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/status
sudo apt update  

如果出现以下错误:E: Lists directory /var/lib/apt/lists/partial is missing运行此命令来创建丢失的目录:

sudo mkdir /var/lib/apt/lists/partial

相关内容