packages kept back

David Abrahams dave at boost-consulting.com
Sat Oct 13 01:59:25 UTC 2007


on Fri Oct 12 2007, Troy Lenze <tlenze-AT-gmail.com> wrote:

D> David Abrahams wrote:
>> How do I fix this problem?
>>
>>   $ sudo apt-get upgrade
>>   Password:
>>   Reading package lists... Done
>>   Building dependency tree       
>>   Reading state information... Done
>>   The following packages have been kept back:
>>     dpkg-dev fakeroot g++ g++-4.1 libc6-dev libstdc++6-4.1-dev
>>   0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
>>
>> I can get details about the unmet dependencies, but that doesn't help
>> me understand how to fix them.  For example:
>>
>> The following packages have unmet dependencies:
>>   g++-4.1: Depends: gcc-4.1-base (= 4.1.2-15ubuntu2) but 4.1.2-0ubuntu4 is to be installed
>>            Depends: gcc-4.1 (= 4.1.2-15ubuntu2) but 4.1.2-0ubuntu4 is to be installed
>>            Depends: libstdc++6-4.1-dev (= 4.1.2-15ubuntu2) but it is not going to be installed
>>            Depends: libc6 (>= 2.6-1) but 2.5-0ubuntu14 is to be installed
>>
>> I don't know why the older versions of packages such as libc6 are "to
>> be installed," nor what to do about it.
>>
>> TIA,
>>   
> Use "sudo apt-get dist-upgrade" 

Nope:

  $ sudo apt-get dist-upgrade 
  Password:
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  Calculating upgrade... Done
  The following packages have been kept back:
    dpkg-dev fakeroot g++ g++-4.1 libc6-dev libstdc++6-4.1-dev
  0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

> or else you can use "sudo apt-get install dpkg-dev fakeroot g++
> etc..."  I prefer dist-upgrade myself.

Nope:

  $ sudo apt-get install dpkg-dev fakeroot g++ g++-4.1 libc6-dev libstdc++6-4.1-dev
  Password:
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  Some packages could not be installed. This may mean that you have
  requested an impossible situation or if you are using the unstable
  distribution that some required packages have not yet been created
  or been moved out of Incoming.
  The following information may help to resolve the situation:

  The following packages have unmet dependencies:
    dpkg-dev: Depends: dpkg (>= 1.14.0) but 1.13.24ubuntu6 is to be installed
    fakeroot: Depends: libc6 (>= 2.5-5) but 2.5-0ubuntu14 is to be installed
    g++: Depends: cpp (>= 4:4.1.2-2ubuntu6) but 4:4.1.2-1ubuntu1 is to be installed
         Depends: gcc (>= 4:4.1.2-2ubuntu6) but 4:4.1.2-1ubuntu1 is to be installed
    g++-4.1: Depends: gcc-4.1-base (= 4.1.2-15ubuntu2) but 4.1.2-0ubuntu4 is to be installed
             Depends: gcc-4.1 (= 4.1.2-15ubuntu2) but 4.1.2-0ubuntu4 is to be installed
             Depends: libc6 (>= 2.6-1) but 2.5-0ubuntu14 is to be installed
    libc6-dev: Depends: libc6 (= 2.6.1-0ubuntu1) but 2.5-0ubuntu14 is to be installed
    libstdc++6-4.1-dev: Depends: gcc-4.1-base (= 4.1.2-15ubuntu2) but 4.1.2-0ubuntu4 is to be installed
                        Depends: libstdc++6 (>= 4.1.2-15ubuntu2) but 4.1.2-0ubuntu4 is to be installed
  E: Broken packages


Furthermore, I'm not too surprised, since if it were that easy,
"apt-get upgrade" should handle it for me automatically.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com





More information about the ubuntu-users mailing list