Results 1 to 3 of 3

Thread: A copy of the C library was found in an unexpected directory: '/lib/i386-linux-gnu/

  1. #1
    Join Date
    Mar 2012
    Beans
    4

    Angry A copy of the C library was found in an unexpected directory: '/lib/i386-linux-gnu/

    Hi, all

    I am using ubuntu 11.10. Last time I tried running update, it failed. After that an warning icon appeared in the place of update notification. I follow the help message, try the following command

    Code:
    sudo apt-get -f install
    and get the following

    Code:
    The following extra packages will be installed:
      libc6
    Suggested packages:
      glibc-doc
    The following packages will be upgraded:
      libc6
    1 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
    1 not fully installed or removed.
    Need to get 0 B/3,800 kB of archives.
    After this operation, 8,192 B of additional disk space will be used.
    Do you want to continue [Y/n]?
    After press Y, firstly I get some dpkg warnings, such as

    Code:
    dpkg: warning: files list file for package `libgwibber-gtk2' missing, assuming package has no files currently installed.
    after those warnings are

    Code:
    A copy of the C library was found in an unexpected directory:
      '/lib/i386-linux-gnu/libc-2.13.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/i386-linux-gnu' and try again.
    
    dpkg: error processing /var/cache/apt/archives/libc6_2.13-20ubuntu5.1_i386.deb (--unpack):
     subprocess new pre-installation script returned error exit status 1
    No apport report written because MaxReports is reached already
                                                                  Errors were encountered while processing:
     /var/cache/apt/archives/libc6_2.13-20ubuntu5.1_i386.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    The problem really borders me. Can you help me?
    Thanks

    best,
    June

  2. #2
    Join Date
    Mar 2012
    Beans
    4

    Re: A copy of the C library was found in an unexpected directory: '/lib/i386-linux-

    Anyone help?

  3. #3
    Join Date
    Aug 2007
    Beans
    2

    Re: A copy of the C library was found in an unexpected directory: '/lib/i386-linux-

    I didn't have
    Code:
    dpkg: warning: files list file for package...
    but only
    Code:
    A copy of the C library was found in an unexpected directory:
    so heres what i did
    1. Copy /lib/i386-linux-gnu/libc-2.13.so to /lib/delme
    2. Copy every file from /lib/i386-linux-gnu/ that apt-get complain about to /lib/delme
    3. Edit /etc/ld.so.conf.d/libc.conf and add there "/lib/delme"
    4. Run sudo ldconfig -v
    5. (This step is danger, I have a running "sudo mc" in case something goes wrong) Now you can safely delete files from /lib/i386-linux-gnu/ you just copied
    6. Run "sudo apt-get -f install" and it should work now
    7. Finally remove entry from /etc/ld.so.conf.d/libc.conf and delete /lib/delme

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •