Search This Blog

Monday, March 22, 2021

E: Sub-process /usr/bin/dpkg returned an error code (2) - SOLUTION

sudo rm /var/lib/dpkg/available sudo touch /var/lib/dpkg/available sudo sh -c 'for i in /var/lib/apt/lists/*_Packages; do dpkg --merge-avail "$i"; done' If previous instruction does not solve the problem... sudo dpkg --configure -a sudo apt-get -f install sudo apt-get clean sudo apt-get update && sudo apt-get upgrade

No comments:

Post a Comment