Ubuntu 14.04 Encounters "installed post-installation script returned error number 127" Problem resolution

Source: Internet
Author: User

Due to the poor network, the installation of the OpenSSH when the interruption, the reinstallation encountered a problem with the title.

Do not bother to pack, directly update dpkg installed software configuration information (/var/lib/dpkg/info). Action steps are as follows:

1. Backup the/var/lib/dpkg/info directory

sudo mv/var/lib/dpkg/info/var/lib/dpkg/info_backup

2. New Empty Info Directory

sudo mkdir/var/lib/dpkg/info

3. Update installation software

sudo apt-get install update

sudo apt-get-f Install

4. Move the new file under info to the backup directory

sudo mv/var/lib/dpkg/info/*/var/lib/dpkg/info_backup

5. Restore Info Directory Name

sudo rm-rf/var/lib/dpkg/info

sudo mv/var/lib/dpkg/info_backup/var/lib/dpkg/info

6. Reinstall the required software

sudo apt-get install xxx

There is no longer an error in the header

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.