Ubuntu Error sub-process/usr/bin/dpkg returned an error code (1) Workaround

Source: Internet
Author: User

Cd/var/lib/dpkg

sudo mv info info.bak #即备份一个info

sudo mkdir info #新建一个新的info目录

Then use the following command to reload the faulty package

sudo apt-get–reinstall Install package name

At first I wanted to install several packages at the same time in one command, and the result was e:sub-process/usr/bin/dpkg returned an error code (1). So the new info is deleted, one to install, each loaded a package, the info is deleted, and then create a new one, so there is no hint e:sub-process/usr/bin/dpkg returned an error code (1).

Finally, replace the new info with the original Info.bak

SUDO-RF Info

sudo mv Info.bak info

After input sudo apt-get update and sudo apt-get upgrade as well as sudo apt-get autoremove no longer have e:sub-process/usr/bin/dpkg returned an err or code (1).

Ubuntu Error sub-process/usr/bin/dpkg returned an error code (1) Workaround

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.