Libc6 Unable to Correct Dependencies

Asked by Phil Long

I have a Linux machine to host a website I'm developing, and I seem to have created a dependency mess. This machine almost never has internet access (don't ask, there's a reason for it), and getting it online is mostly out of my control, so on the occasions that I need to install something, I usually have to download the packages manually from another machine.

I performed all the commands at https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure, along with a couple of others I found in searches while I was writing this post, nothing seems to work. Below is the full console output. Thank you for reading, and I appreciate any help that can be offered; admittedly, Linux administration is not my strength.

root@plong:~# sudo grep -R proxy /etc/apt/*
root@plong:~# echo $http_proxy

root@plong:~# echo $ftp_proxy

root@plong:~# grep proxy /etc/bash.bashrc
root@plong:~# sudo fuser -vvv /var/lib/dpkg/lock
root@plong:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.1 LTS"
root@plong:~# uname -a
Linux plong 3.2.0-32-generic-pae #51-Ubuntu SMP Wed Sep 26 21:54:23 UTC 2012 i686 i686 i386 GNU/Linux
root@plong:~# sudo rm /var/lib/apt/lists/lock
root@plong:~# sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
root@plong:~# sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
root@plong:~# sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
root@plong:~# sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
root@plong:~# sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
root@plong:~# sudo rm -rf /var/lib/dpkg/updates/*
root@plong:~# sudo rm -rf /var/lib/apt/lists
root@plong:~# sudo rm /var/cache/apt/*.bin
root@plong:~# sudo mkdir /var/lib/apt/lists
root@plong:~# sudo mkdir /var/lib/apt/lists/partial
root@plong:~# LANG=C;sudo apt-get clean
root@plong:~# LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
root@plong:~# LANG=C;sudo apt-get --purge autoremove
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:
 libc-dev-bin : Depends: libc6 (< 2.16) but 2.16-0ubuntu3 is installed
 libc6-dev : Depends: libc6 (= 2.15-0ubuntu10.2) but 2.16-0ubuntu3 is installed
 libnih1 : PreDepends: libc6 (< 2.16) but 2.16-0ubuntu3 is installed
E: Unmet dependencies. Try using -f.
root@plong:~# LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000
Ign http://us.archive.ubuntu.com precise InRelease
Ign http://us.archive.ubuntu.com precise-updates InRelease
Ign http://extras.ubuntu.com precise InRelease
Ign http://security.ubuntu.com precise-security InRelease
Get:1 http://extras.ubuntu.com precise Release.gpg [71 B]
Get:2 http://security.ubuntu.com precise-security Release.gpg [198 B]
Get:3 http://extras.ubuntu.com precise Release [11.9 kB]
Ign http://us.archive.ubuntu.com precise-backports InRelease
Get:4 http://us.archive.ubuntu.com precise Release.gpg [198 B]
Get:5 http://security.ubuntu.com precise-security Release [49.6 kB]
Get:6 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:7 http://us.archive.ubuntu.com precise-backports Release.gpg [198 B]
Get:8 http://us.archive.ubuntu.com precise Release [49.6 kB]
Get:9 http://extras.ubuntu.com precise/main Sources [8137 B]
Get:10 http://extras.ubuntu.com precise/main i386 Packages [10.8 kB]
Ign http://extras.ubuntu.com precise/main TranslationIndex
Get:11 http://security.ubuntu.com precise-security/main Sources [59.6 kB]
Get:12 http://us.archive.ubuntu.com precise-updates Release [49.6 kB]
Ign http://extras.ubuntu.com precise/main Translation-en
Get:13 http://security.ubuntu.com precise-security/restricted Sources [1950 B]
Get:14 http://security.ubuntu.com precise-security/universe Sources [18.9 kB]
Get:15 http://us.archive.ubuntu.com precise-backports Release [49.6 kB]
Get:16 http://security.ubuntu.com precise-security/multiverse Sources [1382 B]
Get:17 http://security.ubuntu.com precise-security/main i386 Packages [221 kB]
Get:18 http://us.archive.ubuntu.com precise/main Sources [934 kB]
Get:19 http://security.ubuntu.com precise-security/restricted i386 Packages [3968 B]
Get:20 http://security.ubuntu.com precise-security/universe i386 Packages [61.1 kB]
Get:21 http://security.ubuntu.com precise-security/multiverse i386 Packages [2392 B]
Get:22 http://security.ubuntu.com precise-security/main TranslationIndex [74 B]
Get:23 http://security.ubuntu.com precise-security/multiverse TranslationIndex [71 B]
Get:24 http://security.ubuntu.com precise-security/restricted TranslationIndex [71 B]
Get:25 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:26 http://security.ubuntu.com precise-security/main Translation-en [104 kB]
Get:27 http://security.ubuntu.com precise-security/multiverse Translation-en [995 B]
Get:28 http://security.ubuntu.com precise-security/restricted Translation-en [978 B]
Get:29 http://security.ubuntu.com precise-security/universe Translation-en [36.8 kB]
Ign http://deb.opera.com stable InRelease
Get:30 http://deb.opera.com stable Release.gpg [189 B]
Get:31 http://deb.opera.com stable Release [632 B]
Get:32 http://deb.opera.com stable/non-free i386 Packages [773 B]
Ign http://deb.opera.com stable/non-free TranslationIndex
Ign http://deb.opera.com stable/non-free Translation-en
Get:33 http://us.archive.ubuntu.com precise/restricted Sources [5470 B]
Get:34 http://us.archive.ubuntu.com precise/universe Sources [5019 kB]
Get:35 http://us.archive.ubuntu.com precise/multiverse Sources [155 kB]
Get:36 http://us.archive.ubuntu.com precise/main i386 Packages [1274 kB]
Get:37 http://us.archive.ubuntu.com precise/restricted i386 Packages [8431 B]
Get:38 http://us.archive.ubuntu.com precise/universe i386 Packages [4796 kB]
Get:39 http://us.archive.ubuntu.com precise/multiverse i386 Packages [121 kB]
Get:40 http://us.archive.ubuntu.com precise/main TranslationIndex [3706 B]
Get:41 http://us.archive.ubuntu.com precise/multiverse TranslationIndex [2676 B]
Get:42 http://us.archive.ubuntu.com precise/restricted TranslationIndex [2596 B]
Get:43 http://us.archive.ubuntu.com precise/universe TranslationIndex [2922 B]
Get:44 http://us.archive.ubuntu.com precise-updates/main Sources [197 kB]
Get:45 http://us.archive.ubuntu.com precise-updates/restricted Sources [4419 B]
Get:46 http://us.archive.ubuntu.com precise-updates/universe Sources [67.5 kB]
Get:47 http://us.archive.ubuntu.com precise-updates/multiverse Sources [4244 B]
Get:48 http://us.archive.ubuntu.com precise-updates/main i386 Packages [457 kB]
Get:49 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [8374 B]
Get:50 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [165 kB]
Get:51 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [9675 B]
Get:52 http://us.archive.ubuntu.com precise-updates/main TranslationIndex [3564 B]
Get:53 http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex [2605 B]
Get:54 http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex [2461 B]
Get:55 http://us.archive.ubuntu.com precise-updates/universe TranslationIndex [2850 B]
Get:56 http://us.archive.ubuntu.com precise-backports/main Sources [2422 B]
Get:57 http://us.archive.ubuntu.com precise-backports/restricted Sources [14 B]
Get:58 http://us.archive.ubuntu.com precise-backports/universe Sources [20.3 kB]
Get:59 http://us.archive.ubuntu.com precise-backports/multiverse Sources [2669 B]
Get:60 http://us.archive.ubuntu.com precise-backports/main i386 Packages [1941 B]
Get:61 http://us.archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
Get:62 http://us.archive.ubuntu.com precise-backports/universe i386 Packages [20.3 kB]
Get:63 http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages [2504 B]
Get:64 http://us.archive.ubuntu.com precise-backports/main TranslationIndex [72 B]
Get:65 http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex [72 B]
Get:66 http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex [70 B]
Get:67 http://us.archive.ubuntu.com precise-backports/universe TranslationIndex [73 B]
Get:68 http://us.archive.ubuntu.com precise/main Translation-en [726 kB]
Get:69 http://us.archive.ubuntu.com precise/multiverse Translation-en [93.4 kB]
Get:70 http://us.archive.ubuntu.com precise/restricted Translation-en [2395 B]
Get:71 http://us.archive.ubuntu.com precise/universe Translation-en [3341 kB]
Get:72 http://us.archive.ubuntu.com precise-updates/main Translation-en [219 kB]
Get:73 http://us.archive.ubuntu.com precise-updates/multiverse Translation-en [5414 B]
Get:74 http://us.archive.ubuntu.com precise-updates/restricted Translation-en [2082 B]
Get:75 http://us.archive.ubuntu.com precise-updates/universe Translation-en [97.8 kB]
Get:76 http://us.archive.ubuntu.com precise-backports/main Translation-en [1244 B]
Get:77 http://us.archive.ubuntu.com precise-backports/multiverse Translation-en [1476 B]
Get:78 http://us.archive.ubuntu.com precise-backports/restricted Translation-en [14 B]
Get:79 http://us.archive.ubuntu.com precise-backports/universe Translation-en [14.1 kB]
Fetched 18.5 MB in 2min 22s (131 kB/s)
Reading package lists... Done
root@plong:~# sudo dpkg --configure -a
root@plong:~# sudo dpkg --clear-avail
root@plong:~# LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libc-dev-bin : Depends: libc6 (< 2.16) but 2.16-0ubuntu3 is installed
 libc6-dev : Depends: libc6 (= 2.15-0ubuntu10.2) but 2.16-0ubuntu3 is installed
 libnih1 : PreDepends: libc6 (< 2.16) but 2.16-0ubuntu3 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
root@plong:~# LANG=C;sudo apt-get --fix-missing install
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:
 libc-dev-bin : Depends: libc6 (< 2.16) but 2.16-0ubuntu3 is installed
 libc6-dev : Depends: libc6 (= 2.15-0ubuntu10.2) but 2.16-0ubuntu3 is installed
 libnih1 : PreDepends: libc6 (< 2.16) but 2.16-0ubuntu3 is installed
E: Unmet dependencies. Try using -f.
root@plong:~# LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Ign http://us.archive.ubuntu.com precise InRelease
Ign http://us.archive.ubuntu.com precise-updates InRelease
Ign http://us.archive.ubuntu.com precise-backports InRelease
Hit http://us.archive.ubuntu.com precise Release.gpg
Get:1 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Hit http://us.archive.ubuntu.com precise-backports Release.gpg
Hit http://us.archive.ubuntu.com precise Release
Get:2 http://us.archive.ubuntu.com precise-updates Release [49.6 kB]
Ign http://security.ubuntu.com precise-security InRelease
Ign http://extras.ubuntu.com precise InRelease
Hit http://us.archive.ubuntu.com precise-backports Release
Hit http://security.ubuntu.com precise-security Release.gpg
Hit http://extras.ubuntu.com precise Release.gpg
Hit http://us.archive.ubuntu.com precise/main Sources
Hit http://us.archive.ubuntu.com precise/restricted Sources
Hit http://us.archive.ubuntu.com precise/universe Sources
Hit http://us.archive.ubuntu.com precise/multiverse Sources
Hit http://us.archive.ubuntu.com precise/main i386 Packages
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Get:3 http://us.archive.ubuntu.com precise-updates/main Sources [197 kB]
Hit http://security.ubuntu.com precise-security Release
Hit http://extras.ubuntu.com precise Release
Hit http://security.ubuntu.com precise-security/main Sources
Hit http://security.ubuntu.com precise-security/restricted Sources
Hit http://security.ubuntu.com precise-security/universe Sources
Hit http://security.ubuntu.com precise-security/multiverse Sources
Hit http://security.ubuntu.com precise-security/main i386 Packages
Hit http://security.ubuntu.com precise-security/restricted i386 Packages
Hit http://security.ubuntu.com precise-security/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/restricted Sources
Hit http://us.archive.ubuntu.com precise-updates/universe Sources
Hit http://us.archive.ubuntu.com precise-updates/multiverse Sources
Hit http://us.archive.ubuntu.com precise-updates/main i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/main Sources
Hit http://us.archive.ubuntu.com precise-backports/restricted Sources
Hit http://us.archive.ubuntu.com precise-backports/universe Sources
Hit http://us.archive.ubuntu.com precise-backports/multiverse Sources
Hit http://us.archive.ubuntu.com precise-backports/main i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Hit http://us.archive.ubuntu.com precise-updates/main Translation-en
Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/multiverse i386 Packages
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en
Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://extras.ubuntu.com precise/main Sources
Hit http://extras.ubuntu.com precise/main i386 Packages
Ign http://extras.ubuntu.com precise/main TranslationIndex
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Ign http://extras.ubuntu.com precise/main Translation-en
Ign http://deb.opera.com stable InRelease
Hit http://deb.opera.com stable Release.gpg
Hit http://deb.opera.com stable Release
Hit http://deb.opera.com stable/non-free i386 Packages
Ign http://deb.opera.com stable/non-free TranslationIndex
Ign http://deb.opera.com stable/non-free Translation-en
Fetched 247 kB in 31s (7933 B/s)
Reading package lists... Done
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:
 libc-dev-bin : Depends: libc6 (< 2.16) but 2.16-0ubuntu3 is installed
 libc6-dev : Depends: libc6 (= 2.15-0ubuntu10.2) but 2.16-0ubuntu3 is installed
 libnih1 : PreDepends: libc6 (< 2.16) but 2.16-0ubuntu3 is installed
E: Unmet dependencies. Try using -f.
root@plong:~# find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

     1 #deb cdrom:[Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release i386 (20120817.3)]/ precise main restricted
     2
     3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     4 # newer versions of the distribution.
     5 deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted
     6 deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted
     7
     8 ## Major bug fix updates produced after the final release of the
     9 ## distribution.
    10 deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
    11 deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
    12
    13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    14 ## team. Also, please note that software in universe WILL NOT receive any
    15 ## review or updates from the Ubuntu security team.
    16 deb http://us.archive.ubuntu.com/ubuntu/ precise universe
    17 deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
    18 deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
    19 deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
    20
    21 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    22 ## team, and may not be under a free licence. Please satisfy yourself as to
    23 ## your rights to use the software. Also, please note that software in
    24 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    25 ## security team.
    26 deb http://us.archive.ubuntu.com/ubuntu/ precise multiverse
    27 deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse
    28 deb http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
    29 deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
    30
    31 ## N.B. software from this repository may not have been tested as
    32 ## extensively as that contained in the main release, although it includes
    33 ## newer versions of some applications which may provide useful features.
    34 ## Also, please note that software in backports WILL NOT receive any review
    35 ## or updates from the Ubuntu security team.
    36 deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
    37 deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
    38
    39 deb http://security.ubuntu.com/ubuntu precise-security main restricted
    40 deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
    41 deb http://security.ubuntu.com/ubuntu precise-security universe
    42 deb-src http://security.ubuntu.com/ubuntu precise-security universe
    43 deb http://security.ubuntu.com/ubuntu precise-security multiverse
    44 deb-src http://security.ubuntu.com/ubuntu precise-security multiverse
    45
    46 ## Uncomment the following two lines to add software from Canonical's
    47 ## 'partner' repository.
    48 ## This software is not part of Ubuntu, but is offered by Canonical and the
    49 ## respective vendors as a service to Ubuntu users.
    50 # deb http://archive.canonical.com/ubuntu precise partner
    51 # deb-src http://archive.canonical.com/ubuntu precise partner
    52
    53 ## This software is not part of Ubuntu, but is offered by third-party
    54 ## developers who want to ship their latest software.
    55 deb http://extras.ubuntu.com/ubuntu precise main
    56 deb-src http://extras.ubuntu.com/ubuntu precise main

/etc/apt/sources.list.d/opera.list

     1 # This file makes sure that Opera Browser is kept up-to-date
     2 # as part of regular system upgrades
     3
     4 deb http://deb.opera.com/opera/ stable non-free #Opera Browser (final releases)
     5
     6 # The line above will make sure you get all final public releases.
     7 # Uncomment the following line if you want to get alpha and beta
     8 # releases, too.
     9
    10 # deb http://deb.opera.com/opera-beta/ stable non-free #Opera Browser (beta releases)
root@plong:~# sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libc-dev-bin : Depends: libc6 (< 2.16) but 2.16-0ubuntu3 is installed
 libc6-dev : Depends: libc6 (= 2.15-0ubuntu10.2) but 2.16-0ubuntu3 is installed
 libnih1 : PreDepends: libc6 (< 2.16) but 2.16-0ubuntu3 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
root@plong:~# sudo apt-get upgrade -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libc-dev-bin : Depends: libc6 (< 2.16) but 2.16-0ubuntu3 is installed
 libc6-dev : Depends: libc6 (= 2.15-0ubuntu10.2) but 2.16-0ubuntu3 is installed
 libnih1 : PreDepends: libc6 (< 2.16) but 2.16-0ubuntu3 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
root@plong:~# sudo apt-get install libc6=2.16
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '2.16' for 'libc6' was not found
root@plong:~# sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libc-dev-bin : Depends: libc6 (< 2.16) but 2.16-0ubuntu3 is installed
 libc6-dev : Depends: libc6 (= 2.15-0ubuntu10.2) but 2.16-0ubuntu3 is installed
 libnih1 : PreDepends: libc6 (< 2.16) but 2.16-0ubuntu3 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
root@plong:~# sudo apt-get install libc6=2.15
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '2.15' for 'libc6' was not found

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Sam_
Solved:
Last query:
Last reply:
Revision history for this message
Sam_ (and-sam) said :
#1

>> The following packages have unmet dependencies:
 libc-dev-bin : Depends: libc6 (< 2.16) but 2.16-0ubuntu3 is installed
 libc6-dev : Depends: libc6 (= 2.15-0ubuntu10.2) but 2.16-0ubuntu3 is installed
 libnih1 : PreDepends: libc6 (< 2.16) but 2.16-0ubuntu3 is installed

> download the packages manually from another machine

2.16 is from dev release RR which you're other machine obviously runs.
Downgrade to 2.15.

http://askubuntu.com/questions/138284/how-to-downgrade-a-package-via-apt-get

http://packages.ubuntu.com/precise-updates/libc-dev-bin
http://packages.ubuntu.com/precise-updates/libc6-dev

Revision history for this message
Phil Long (plong) said :
#2

Thanks for the info. When I try to downgrade libc6 via apt-get, the operation fails, because openssh-server requires libc6 2.16. When I try to remove openssh-server (apt-get remove --purge openssh-server), the operation fails because of this libc6 dependency issue. How do I escape this dependency loop?

Revision history for this message
Sam_ (and-sam) said :
#3

> openssh-server requires libc6 2.16

http://packages.ubuntu.com/precise/openssh-server

says dependency libc6 (>= 2.15)

Revision history for this message
Phil Long (plong) said :
#4

root@plong:~# apt-get install libc6=2.15-0ubuntu10.2
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:
 openssh-server : Depends: libc6 (>= 2.16) but 2.15-0ubuntu10.2 is to be installed
                  Recommends: ncurses-term but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

root@plong:~# apt-cache show openssh-server
Package: openssh-server
Status: install ok installed
Multi-Arch: foreign
Priority: optional
Section: net
Installed-Size: 828
Maintainer: Colin Watson <email address hidden>
Architecture: i386
Source: openssh
Version: 1:6.1p1-1ubuntu1
Replaces: openssh-client (<< 1:3.8.1p1-11), ssh, ssh-krb5
Provides: ssh-server
Depends: libc6 (>= 2.16), libcomerr2 (>= 1.01), libgssapi-krb5-2 (>= 1.10+dfsg~), libkrb5-3 (>= 1.6.dfsg.2), libpam0g (>= 0.99.7.1), libselinux1 (>= 1.32), libssl1.0.0 (>= 1.0.1), libwrap0 (>= 7.6-4~), zlib1g (>= 1:1.1.4), debconf (>= 1.2.0) | debconf-2.0, openssh-client (= 1:6.1p1-1ubuntu1), upstart-job, libpam-runtime (>= 0.76-14), libpam-modules (>= 0.72-9), adduser (>= 3.9), dpkg (>= 1.9.0), lsb-base (>= 3.2-13), procps
Recommends: xauth, ncurses-term, ssh-import-id
Suggests: ssh-askpass, rssh, molly-guard, openssh-blacklist, openssh-blacklist-extra, ufw, monkeysphere
Conflicts: rsh-client (<< 0.16.1-1), sftp, ssh (<< 1:3.8.1p1-9), ssh-krb5 (<< 1:4.3p2-7), ssh-nonfree (<< 2), ssh-socks, ssh2
Conffiles:
 /etc/ufw/applications.d/openssh-server 486b78d54b93cc9fdc950c1d52ff479e
 /etc/network/if-up.d/openssh-server d6e8fb0f6192bc4cb91c4a1bc50d096b
 /etc/init/ssh.conf 2c7eae0c0ef56b191dad89310fa36b8e
 /etc/pam.d/sshd ee93e13ec6aa3f3120c6939a2880a5b6
 /etc/init.d/ssh 72f87136ef9b97c7dba5fe2b75e13a59
 /etc/default/ssh 500e3cf069fe9a7b9936108eb9d9c035
Description-en: secure shell (SSH) server, for secure access from remote machines
 This is the portable version of OpenSSH, a free implementation of
 the Secure Shell protocol as specified by the IETF secsh working
 group.
 .
 Ssh (Secure Shell) is a program for logging into a remote machine
 and for executing commands on a remote machine.
 It provides secure encrypted communications between two untrusted
 hosts over an insecure network. X11 connections and arbitrary TCP/IP
 ports can also be forwarded over the secure channel.
 It can be used to provide applications with a secure communication
 channel.
 .
 This package provides the sshd server.
 .
 In some countries it may be illegal to use any encryption at all
 without a special permit.
 .
 sshd replaces the insecure rshd program, which is obsolete for most
 purposes.
Homepage: http://www.openssh.org/
Original-Maintainer: Debian OpenSSH Maintainers <email address hidden>

Package: openssh-server
Priority: optional
Section: net
Installed-Size: 817
Maintainer: Colin Watson <email address hidden>
Original-Maintainer: Debian OpenSSH Maintainers <email address hidden>
Architecture: i386
Source: openssh
Version: 1:5.9p1-5ubuntu1
Replaces: openssh-client (<< 1:3.8.1p1-11), ssh, ssh-krb5
Provides: ssh-server
Depends: libc6 (>= 2.15), libcomerr2 (>= 1.01), libgssapi-krb5-2 (>= 1.10+dfsg~), libkrb5-3 (>= 1.6.dfsg.2), libpam0g (>= 0.99.7.1), libselinux1 (>= 1.32), libssl1.0.0 (>= 1.0.0), libwrap0 (>= 7.6-4~), zlib1g (>= 1:1.1.4), debconf (>= 1.2.0) | debconf-2.0, openssh-client (= 1:5.9p1-5ubuntu1), upstart-job, libpam-runtime (>= 0.76-14), libpam-modules (>= 0.72-9), adduser (>= 3.9), dpkg (>= 1.9.0), lsb-base (>= 3.2-13), procps
Recommends: xauth, ssh-import-id
Suggests: ssh-askpass, rssh, molly-guard, openssh-blacklist, openssh-blacklist-extra, ufw, monkeysphere
Conflicts: rsh-client (<< 0.16.1-1), sftp, ssh (<< 1:3.8.1p1-9), ssh-krb5 (<< 1:4.3p2-7), ssh-nonfree (<< 2), ssh-socks, ssh2
Filename: pool/main/o/openssh/openssh-server_5.9p1-5ubuntu1_i386.deb
Size: 341830
MD5sum: f39ada6e92a5315311e1d2edff4f0d57
SHA1: 53b3aa5f543f9640da396539d40c2f662aca38f6
SHA256: 120569c9629ec08175f84de87e3290754bc5bc487494451fb4cd6b2fa661cfcb
Description-en: secure shell (SSH) server, for secure access from remote machines
 This is the portable version of OpenSSH, a free implementation of
 the Secure Shell protocol as specified by the IETF secsh working
 group.
 .
 Ssh (Secure Shell) is a program for logging into a remote machine
 and for executing commands on a remote machine.
 It provides secure encrypted communications between two untrusted
 hosts over an insecure network. X11 connections and arbitrary TCP/IP
 ports can also be forwarded over the secure channel.
 It can be used to provide applications with a secure communication
 channel.
 .
 This package provides the sshd server.
 .
 In some countries it may be illegal to use any encryption at all
 without a special permit.
 .
 sshd replaces the insecure rshd program, which is obsolete for most
 purposes.
Multi-Arch: foreign
Homepage: http://www.openssh.org/
Description-md5: 842cc998cae371b9d8106c1696373919
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: virt-host, cloud-image, openssh-server, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

What is the output of:

apt-cache policy libc-dev-bin libc6 ncurses-term libc6-dev libnih1

Thanks

Revision history for this message
Best Sam_ (and-sam) said :
#6

>> Status: install ok installed
Multi-Arch: foreign
Priority: optional
Section: net
Installed-Size: 828
Maintainer: Colin Watson <email address hidden>
Architecture: i386
Source: openssh
Version: 1:6.1p1-1ubuntu1

Above openssh-server is also from development release RR, dependencies can't match.
http://packages.ubuntu.com/raring/openssh-server

The second one mentioned in #4 is the one for 12.04 Precise Pangolin
Package: openssh-server
Priority: optional
Section: net
Installed-Size: 817
Maintainer: Colin Watson <email address hidden>
Original-Maintainer: Debian OpenSSH Maintainers <email address hidden>
Architecture: i386
Source: openssh
Version: 1:5.9p1-5ubuntu1

http://packages.ubuntu.com/precise/openssh-server

Revision history for this message
Phil Long (plong) said :
#7

Thanks Sam_, that solved my question.

Revision history for this message
Phil Long (plong) said :
#8

With the info from Sam_, I manually downloaded the correct versions of openssh-server and openssh-client, and forced them to install without dependencies using dpkg (Google search to the rescue!). I was then able to use apt-get to install the correct version of libc6, and now everything is functioning correctly. Thank you very much for the assistance.