有的时候,使用sudo apt-get install *可能导致意想不到的错误,尤其是中途中断了安装时,错误信息为:
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
此时可以这样解决:
cd /var/lib/dpkg
sudo mv info info.bak
sudo mkdir info
重新安装,在此为:
sudo apt-get --reinstall install *