-
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#
-
Senior Member
registered user
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
-
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
-
Forum Rules
![LOT OF 20 Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module picture](/store/img/g/JEEAAOSwzu9ibCFX/s-l225/LOT-OF-20-Genuine-Cisco-SFP-10G-SR-V03-10GBASE-SR-.jpg)
LOT OF 20 Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module
$95.00
![New Precision DWDM SFP+ 10G 80km Tunable Transceiver 50GHz C-Temp DWDM-SFP10G-C picture](/store/img/g/tqEAAOSwkbxmR-l8/s-l225/New-Precision-DWDM-SFP-10G-80km-Tunable-Transceive.jpg)
New Precision DWDM SFP+ 10G 80km Tunable Transceiver 50GHz C-Temp DWDM-SFP10G-C
$90.00
![Lot (10) Dell 0N8TDR 850nm SFP-10G-SR-85C 10Gbs sfp+ FTLX8574D3BNL-FC N8TDR NEW picture](/store/img/g/E7cAAOSw98tljuIT/s-l225/Lot-10-Dell-0N8TDR-850nm-SFP-10G-SR-85C-10Gbs-sfp-.jpg)
Lot (10) Dell 0N8TDR 850nm SFP-10G-SR-85C 10Gbs sfp+ FTLX8574D3BNL-FC N8TDR NEW
$68.00
![SFP-10G-SR CISCO 10G SR SFP+ C-CLASS TRANSCEIVER 10 PACK picture](/store/img/g/qxMAAOSwBBFl62ur/s-l225/SFP-10G-SR-CISCO-10G-SR-SFP-C-CLASS-TRANSCEIVER-10.jpg)
SFP-10G-SR CISCO 10G SR SFP+ C-CLASS TRANSCEIVER 10 PACK
$99.00
![ProLabs 10GBase-TX SFP+ RJ-45 Copper Transceiver Module P/N: SFP-10GBASE-T-C NEW picture](/store/img/g/NbQAAOSws1xmRieZ/s-l225/ProLabs-10GBase-TX-SFP-RJ-45-Copper-Transceiver-Mo.jpg)
ProLabs 10GBase-TX SFP+ RJ-45 Copper Transceiver Module P/N: SFP-10GBASE-T-C NEW
$34.99
![CISCO SFP-10G-LR SFP TRANSCEIVER MODULE GBIC 10G 10GB SFP - 1 Year Warranty picture](/store/img/g/FkQAAOSwtBZbqRX9/s-l225/CISCO-SFP-10G-LR-SFP-TRANSCEIVER-MODULE-GBIC-10G-1.jpg)
CISCO SFP-10G-LR SFP TRANSCEIVER MODULE GBIC 10G 10GB SFP - 1 Year Warranty
$39.99
![Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03 picture](/store/img/g/7yMAAOSwjyBiZxyT/s-l225/Genuine-Cisco-SFP-10G-SR-V03-10GBASE-SR-SFP-Transc.jpg)
Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03
$8.00
![NEW FS SFP-10G-T 10GBASE T SFP+ 30M Transceiver Module (Lot of 1 Unit) picture](/store/img/g/K7UAAOSwWdtmNYNP/s-l225/NEW-FS-SFP-10G-T-10GBASE-T-SFP-30M-Transceiver-Mod.jpg)
NEW FS SFP-10G-T 10GBASE T SFP+ 30M Transceiver Module (Lot of 1 Unit)
$39.95
![Nvida Mellanox MC3208411-T 1000GBASE-T SFP-TX 100m Optical 1GbE Base-T RJ45 New picture](/store/img/g/sr8AAOSwIDNmJdQB/s-l225/Nvida-Mellanox-MC3208411-T-1000GBASE-T-SFP-TX-100m.jpg)
Nvida Mellanox MC3208411-T 1000GBASE-T SFP-TX 100m Optical 1GbE Base-T RJ45 New
$27.95
![New HP HPE Aruba J9151E 10G SFP+ LC LR 10km SMF XCVR 1310nm Module picture](/store/img/g/YB8AAOSwxp5l1CsI/s-l225/New-HP-HPE-Aruba-J9151E-10G-SFP-LC-LR-10km-SMF-XCV.jpg)
New HP HPE Aruba J9151E 10G SFP+ LC LR 10km SMF XCVR 1310nm Module
$64.39