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 ~