ubuntu使用dpkg报错

报错提示:

dpkg: error: failed to open package info file ‘/usr/local/var/lib/dpkg/status’ for reading: No such file or directory

dpkg: error: failed to open package info file ‘/usr/local/var/lib/dpkg/available’ for reading: No such file or directory

解决方案:

cp -a /var/lib/dpkg/status-old /usr/local/var/lib/dpkg/status

cp -a /var/lib/dpkg/available /usr/local/var/lib/dpkg/available

dpkg --configure -a

你可能感兴趣的:(ubuntu,ubuntu,linux)