[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#629983: libc6 install aborts with "A non-dpkg owned copy of the C library was found in /lib."



IIUC something is still amiss with this stuff:

Preparing to replace libc6 2.13-2 (using .../archives/libc6_2.13-7_i386.deb) ...

A non-dpkg owned copy of the C library was found:
  '/lib/ld-linux.so.1.9.11'
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' and try again.
dpkg: error processing /var/cache/apt/archives/libc6_2.13-7_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-7_i386.deb

OK so it says "non-dpkg owned", _and_ now mentions the exact file
after that has been properly complained about by other people in this bug.
Well, doing this on the very file mentioned in the output:

# dpkg -S /lib/ld-linux.so.1.9.11
ldso: /lib/ld-linux.so.1.9.11

Ermm...

HOWEVER, doing:

# dpkg -S /lib/ld.so
dpkg-query: no path found matching pattern /lib/ld.so.

Am I right in that the check has a list of ld.so binaries and
on error condition brainlessly dumps the first one it contains,
no matter whether that's the culprit or not?

Might want to refine that printout logic...
(and especially since it's crucial that users get the name of the to-be-removed file right, otherwise --> pile of smoke)

Here, the configuration is as such:

# ls -l /lib/ld*
-rwxr-xr-x 1 root root 117960 May  2 12:19 /lib/ld-2.13.so*
lrwxrwxrwx 1 root root     18 Jun  7  2003 /lib/ld-linux.so.1 -> ld-linux.so.1.9.11*
-rwxr-xr-x 1 root root  24817 Mar  7  2001 /lib/ld-linux.so.1.9.11*
lrwxrwxrwx 1 root root     10 May  9 22:39 /lib/ld-linux.so.2 -> ld-2.13.so*
-rwxr-xr-x 2 root root  99568 Mar  7  2001 /lib/ld.so*
-rwxr-xr-x 2 root root  99568 Mar  7  2001 /lib/ld.so.1.9.11*

Confused users will rightfully ask the questions:
- whether to plainly remove (rename-away) all non-dpkg-managed files
  and only those
- which files exactly these are supposed to be
- whether these former files will then be automatically replaced with some symlinks or so (not so important though)

Thanks for some very nice work! (15 years and counting on this box)

Andreas Mohr



Reply to: