dpkg-query:错误:解析文件‘/var/lib/dpkg/status’第 0 行附近:字段名称‘ ’后的文件结尾

dpkg-query:错误:解析文件‘/var/lib/dpkg/status’第 0 行附近:字段名称‘ ’后的文件结尾

当我尝试启动 dpkg 命令时出现此 dpkg 错误:

dpkg: error: parsing file '/var/lib/dpkg/status' near line 0:
end of file after field name ''

当我尝试更新时,apt-get update我得到了这个:

Hit:1 http://download.hiveos.farm/repo/binary  InRelease 
Hit:2 http://download2.hiveos.farm/repo/binary  InRelease
Hit:3 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:5 http://ppa.launchpad.net/h-realh/roxterm/ubuntu bionic InRelease
Hit:6 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:4 https://build.openvpn.net/debian/openvpn/stable bionic InRelease
Hit:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:8 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Error!
E: Unable to parse package file /var/lib/dpkg/status (1)
W: You may want to run apt-get update to correct these problems
E: The package cache file is corrupted

如能得到帮助将非常感激!

相关内容