When you use apt-get to install software
Install-Info: No dir file specified; try-help for more information. dpkg: An error occurred when processing gettext (-configure): the sub-process post-installation script returned error number 1. An error occurred during processing:
Findutils
E: sub-process/usr/bin/dpkg returned an error code (1)
The method is as follows:
Sudo mV/var/lib/dpkg/INFO/var/lib/dpkg/info. bak // rename the info folder sudo mkdir/var/lib/dpkg/INFO // create a new info folder sudo apt-Get update
apt-get -f install xxxsudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info.bak
// After the previous step is completed, some files are generated in the new info folder. Now, all these files are moved to the info. Bak folder.
Sudo Rm-RF/var/lib/dpkg/INFO // Delete sudo mV/var/lib/dpkg/info from the newly created info folder. bak/var/lib/dpkg/INFO // rename the previous info folder
The problem has been solved successfully.
Method 2:
for i in /usr/share/fonts/X11/* /usr/share/fonts/truetype/*do sudo touch "$i"done
Method 3:
sudo apt-get update --fix-missingsudo apt-get autoremove && sudo apt-get clean && sudo apt-get install -f
Ubuntu error solution E: sub-process/usr/bin/dpkg returned an error code (1)