[Bug 980573] Re: apt-get fails at libc6 upgrade with "A copy of the C library was found in an unexpected directory" error message

John Edwards 980573 at bugs.launchpad.net
Tue Oct 22 08:56:45 UTC 2013


In my report I think the key

There were not files in /var/lib/dpkg/info/ for libc6:i386, only for
libc6 (ie /var/lib/dpkg/info/libc6.list existed but
/var/lib/dpkg/info/libc6:i386.list did not).

I created the /var/lib/dpkg/info/libc6:i386.list file from the contents
of the downloaded deb package using:

dpkg-deb -c /var/cache/apt/archives/libc6_2.15-0ubuntu10.5_i386.deb |
awk {'sub(/^\./,"",$6);sub(/^\/$/,"/.",$6); sub(/\/$/,"",$6); print $6'}
> /var/lib/dpkg/info/libc6:i386.list

After this 'apt-get install -f' run correctly and the libc6 package was
upgraded. Then the rest of the package upgrades were done via aptitude.

The mention of libc6:i386 suggests that the problem maybe linked to
multiarch, but I can not be sure. I also suggest that copying
/var/lib/dpkg/info/libc6.list to /var/lib/dpkg/info/libc6:i386.list
might also work temporarily.

So fixed for me for the moment.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to eglibc in Ubuntu.
https://bugs.launchpad.net/bugs/980573

Title:
  apt-get fails at libc6 upgrade with "A copy of the C library was found
  in an unexpected directory" error message

Status in “eglibc” package in Ubuntu:
  Confirmed

Bug description:
  I've upgraded to 12.04 since a couple of weeks ago, since then I've
  periodically updated/dist-upgraded my system.

  The latest attempt fails with the next behavior:

  apt-get update - all goes well

  When trying apt-get dist-upgrade I get this:
  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:
   libc6 : Depends: libc-bin (= 2.15-0ubuntu6)
           Breaks: libc6:i386 (!= 2.15-0ubuntu6) but 2.15-0ubuntu7 is installed
   libc6:i386 : Breaks: libc6 (!= 2.15-0ubuntu7) but 2.15-0ubuntu6 is installed
   libc6-dev : Depends: libc6 (= 2.15-0ubuntu7) but 2.15-0ubuntu6 is installed
   libc6-i386 : Depends: libc6 (= 2.15-0ubuntu7) but 2.15-0ubuntu6 is installed
  E: Unmet dependencies. Try using -f.

  
  When trying apt-get -f install I get this:
  A copy of the C library was found in an unexpected directory:
    '/lib/x86_64-linux-gnu/libc-2.15.so'
  It is not safe to upgrade the C library in this situation;
  please remove that copy of the C library or get it out of
  '/lib/x86_64-linux-gnu' and try again.

  dpkg: error processing /var/cache/apt/archives/libc6_2.15-0ubuntu7_amd64.deb (--unpack):
   subprocess new pre-installation script returned error exit status 1
  Errors were encountered while processing:
   /var/cache/apt/archives/libc6_2.15-0ubuntu7_amd64.deb
  E: Sub-process /usr/bin/dpkg returned an error code (1)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/980573/+subscriptions



More information about the foundations-bugs mailing list