Ubuntu error solution E: sub-process/usr/bin/dpkg returned an error code (1)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.