dpkg: error processing package xxx (--configure) solution

When prompted to install or uninstall with apt-get tool "dpkg: error processing package xxx (--configure)" error.


1. Log in as root
su


2. Run the following command

mv /var/lib/dpkg/info/ /var/lib/dpkg/info_old/
mkdir /var/lib/dpkg/info/
apt-get update
apt-get -f install
mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old/
rm -rf /var/lib/dpkg/info
mv /var/lib/dpkg/info_old/ /var/lib/dpkg/info

 

3. Verify successful
apt -f install

 

Guess you like

Origin www.cnblogs.com/maluscalc/p/11117392.html