About dpkg: An error occurred while processing xxx (-- configure) (ubuntu12.04)

Source: Internet
Author: User

I want to install the samba server a few days ago. First I installed an installation package for the samba server, and then I started to report the following error: dpkg: Processing samba4 (-- configure ). At that time, I thought the Operation Document was incorrect and I stopped the installation. As a result, the above error will be reported within a few days after apt-get is used for installation. It seems that the installed software is usable, but the error is helpless. The following are the solutions I have found, and the actual experience is indeed feasible.

1. $ sudo mv/var/lib/dpkg/info/var/lib/dpkg/info_old // rename the info folder.
2. $ sudo mkdir/var/lib/dpkg/info // create a new info folder.
3. $ sudo apt-get update, apt-get-f install // No need to explain
4. $ sudo mv/var/lib/dpkg/info/*/var/lib/dpkg/info_old // After performing the previous operation, some files will be generated in the new info folder, move all these files to the info_old folder.
5. $ sudo rm-rf/var/lib/dpkg/info // Delete the info folder you created
6. $ sudo mv/var/lib/dpkg/info_old/var/lib/dpkg/info // rename the previous info folder

Haha. Can you do the same?

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.