Solve the problem that apt-get cannot be used after you manually compile and install the software package on Ubuntu 12.

Source: Internet
Author: User

I recently encountered problems when using Ubuntu, and the installation software was not installed. It was basically due to the installation of incompatible software packages. I have sorted out the following methods for reference.

The error message is as follows:

Root @ abc:/home/ght # apt-get install snmpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'Apt-get-f install' to correct these:
The following packages have unmet dependencies:
Libnih1: PreDepends: libc6 (<2.16) but 2.19-0ubuntu6 is to be installed
Snmpd: Depends: libsnmp15 (> = 5.4.3 ~ Dfsg) but it is not going to be installed
E: Unmet dependencies. Try 'Apt-get-f install' with no packages (or specify a solution ).

To solve this problem, try the following methods:

First, uninstall the installed error package. Which package is returned with the following error:

1) dpkg-l | grep libc6 after a libc6-i386 is found, remove it dpkg-r libc6-i386
2) dpkg-l | grep libgcc0 found libgcc0: i386, remove it dpkg-r libgcc0: i386
3) dpkg-l | grep libselinux1 found libselinux1: i386, remove it dpkg-r libselinux1: i386

Try 2. If the above is not enough, try to execute the following:

Sudo aptitude-f install

Try 3:

Apt-get install-f

I will try this step to solve it ~

Related Article

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.