dpkg:错误:无法打开软件包信息文件‘/var/lib/dpkg/available’进行读取:没有此文件或目录

dpkg:错误:无法打开软件包信息文件‘/var/lib/dpkg/available’进行读取:没有此文件或目录

我在 Ubuntu(20.04) 中卸载一个软件时,出现了这些错误

dpkg: error: failed to open package info file '/var/lib/dpkg/available' for reading: No such file or directory
E: Sub-process dpkg --set-selections returned an error code (2)
E: Couldn't record the approved state changes as dpkg selection states

相关内容