1.dpkg: warning: files list file missing; assuming package has no files currently installed
解決辦法:將錯(cuò)誤信息放入reinstall.txt,然后運(yùn)行下面腳本,重新安裝這些包
#!/bin/bash
for package in $(cat reinstall.txt | grep "dpkg: warning: files list file for package " | grep -Po "'[^']*'" | sed "s/'//g")极阅;
do
sudo apt-get install --reinstall "$package";
done
2.dpkg: error processing package*
這里看到的解決辦法
sudo mv /var/lib/dpkg/info/ /var/lib/dpkg/info_old/
sudo mkdir /var/lib/dpkg/info/
sudo apt-get update
sudo apt-get -f install
sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old/
sudo rm -rf /var/lib/dpkg/info
sudo mv /var/lib/dpkg/info_old/ /var/lib/dpkg/info/
之后sudo apt-get update