Results 1 to 3 of 3

Thread: dpkg error upgr libc6: A copy of the C library was found in an unexpected directory

  1. #1

    dpkg error upgr libc6: A copy of the C library was found in an unexpected directory

    The following is from a flash-based persistent install of Knoppix 6.4 (I believe this is what you call a poor man's install). According to the Debian BTS, this bug in libc6 is "fixed", but it is not fixed for me.

    Since now I can't install reportbug (or anything else), I can't report this "bug" to Debian even if I wanted to.

    root@Microknoppix:/home/knoppix# apt-get -f install

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Correcting dependencies... Done
    The following extra packages will be installed:
    libc6 libc6-i686
    Suggested packages:
    glibc-doc
    The following packages will be upgraded:
    libc6 libc6-i686
    2 upgraded, 0 newly installed, 0 to remove and 95 not upgraded.
    1 not fully installed or removed.
    Need to get 0 B/5136 kB of archives.
    After this operation, 32.8 kB of additional disk space will be used.
    Do you want to continue [Y/n]? Y
    Reading changelogs...
    (Reading database ... 348874 files and directories currently installed.)
    Preparing to replace libc6 2.13-7 (using .../libc6_2.13-20_i386.deb) ...

    A copy of the C library was found in an unexpected directory:
    '/UNIONFS/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
    '/UNIONFS/lib/i386-linux-gnu' and try again.

    dpkg: error processing /var/cache/apt/archives/libc6_2.13-20_i386.deb (--unpack):
    subprocess new pre-installation script returned error exit status 1
    configured to not write apport reports
    Errors were encountered while processing:
    /var/cache/apt/archives/libc6_2.13-20_i386.deb
    localepurge: Disk space freed in /usr/share/locale: 0 KiB
    localepurge: Disk space freed in /usr/share/man: 0 KiB
    localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
    localepurge: Disk space freed in /usr/share/omf: 0 KiB
    localepurge: Disk space freed in /usr/share/doc/kde/HTML: 0 KiB

    Total disk space freed by localepurge: 0 KiB

    E: Sub-process /usr/bin/dpkg returned an error code (1)


    root@Microknoppix:/home/knoppix# dpkg -i --force-all /var/cache/apt/archives/libc6_2.13-20_i386.deb
    (Reading database ... 348874 files and directories currently installed.)
    Preparing to replace libc6 2.13-7 (using .../libc6_2.13-20_i386.deb) ...

    A copy of the C library was found in an unexpected directory:
    '/UNIONFS/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
    '/UNIONFS/lib/i386-linux-gnu' and try again.

    dpkg: error processing /var/cache/apt/archives/libc6_2.13-20_i386.deb (--install):
    subprocess new pre-installation script returned error exit status 1
    Errors were encountered while processing:
    /var/cache/apt/archives/libc6_2.13-20_i386.deb


    root@Microknoppix:/home/knoppix# dpkg --configure -a

    dpkg: dependency problems prevent configuration of libc6-dev:
    libc6-dev depends on libc6 (= 2.13-20); however:
    Version of libc6 on system is 2.13-7.
    dpkg: error processing libc6-dev (--configure):
    dependency problems - leaving unconfigured
    Errors were encountered while processing:
    libc6-dev

    root@Microknoppix:/home/knoppix#

  2. #2
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    Did you try the installation of the new libc6 package inside a chroot jail?
    I would try something like the following in a root terminal or console.
    Code:
    mkdir /tmp/root
    mount --bind /UNIONFS/ /tmp/root/
    chroot /tmp/root
    dpkg -i /var/cache/apt/archives/libc6_2.13-20_i386.deb
    exit
    umount /tmp/root

  3. #3
    Thank you so very much; I just could not have put all the pieces together without your help.
    And I've made a concerted effort to understand the reason for every line in the Code section so, as a newcomer, I can take away something in terms of self-education.

Posting Permissions

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


Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x600Gb SAS, Proxmox picture

Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x600Gb SAS, Proxmox

$340.00



Dell PowerEdge M610 Blade Server E5620@2.2GHZ (6x)8GB RAM (2x)146GB 15K SAS HDD picture

Dell PowerEdge M610 Blade Server E5620@2.2GHZ (6x)8GB RAM (2x)146GB 15K SAS HDD

$75.00



Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS picture

Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS

$721.06



H261-Z61 2U 24SFF AMD Server 8x EPYC 7551 256-Cores 256GB RAM 8x25G NIC 2x2200W picture

H261-Z61 2U 24SFF AMD Server 8x EPYC 7551 256-Cores 256GB RAM 8x25G NIC 2x2200W

$2512.18



DELL PowerEdge R730 Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R730 Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45

$275.00



Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB picture

Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB

$510.00



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD

$389.99



SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount picture

SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount

$224.99



DELL PowerEdge R730 Server 2x E5-2643v3 3.4GHz =12 Cores 64GB H730 4xRJ45 picture

DELL PowerEdge R730 Server 2x E5-2643v3 3.4GHz =12 Cores 64GB H730 4xRJ45

$306.00



DELL PowerEdge R630 8SFF Server 2x E5-2690v4 2.6GHz =28 Cores 128GB H730 4xRJ45 picture

DELL PowerEdge R630 8SFF Server 2x E5-2690v4 2.6GHz =28 Cores 128GB H730 4xRJ45

$444.00