ld.so.conf prevents libc6 from upgrading in a 32-bit chroot on amd64

Bug #12815 reported by Alexandra Kossovsky
8
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)
Invalid
Low
Unassigned

Bug Description

When I upgrade libc6 on my amd64 host, I get following message:
These libraries were found in /var/chroot/sarge-ia32/lib/:
libc.so.6
libdl.so.2
libm.so.6
libpthread.so.0
librt.so.1

Another copy of the C library was found via /etc/ld.so.conf.
It is not safe to upgrade the C library in this situation;
please remove the directory from /etc/ld.so.conf and try again.

I need /var/chroot/sarge-ia32/lib/ in my ld.so.conf because I need to develop
and run ia32 applications. Every libc6 upgrade I have to remove this path from
ld.so.conf and add it back when upgrade is finished. Could you add a dialog "Are
you sure that it is OK to go on?" with default answer "No!" when you find
another copy of libc6?
May be, you can check that this "another copy of the C library" is not amd64
library?

Revision history for this message
Chris Jones (cmsj-bugz-ubu) wrote :

That error is produced by the libc6 preinst script
(/var/lib/dpkg/info/libc6.preinst) around line 135.
It does actually check to see if the ld.so.conf paths begin with /emul/ which
appears to be related to ia64.
So, you could symlink /emul/ to your chroot and change the ld.so.conf paths.
libc upgrades will then work.

Revision history for this message
Jeff Bailey (jbailey) wrote :

The problem with giving folks on option on this kind of sanity check is that
people are likely to just say 'proceed' without reading the message, potentially
rendering their system completely useless. The decision to do this, however,
was made before amd64 game on the scene.

I'm not as familiar with the amd64 setup. Is having these in your ld.so really
the right thing? Do you install and run 32 bit apps on your main system, or
only in your chroot? If everything is inside that chroot, I don't see why it
would need to be listed in the main ld.so.conf file.

Revision history for this message
Alexandra Kossovsky (alexandra-kossovsky) wrote :

I really run ia32 applications outside the chroot. I'd prefer to use ia32-libs,
but I need some libraries which are not present in ia32-libs. Including chroot
into ld.so.conf is an easiest and common way to solve this problem.
Is it difficult to check architecture of libc that was found? It may be done,
for example, with "file" utility if it is installed.

Revision history for this message
Chris Jones (cmsj-bugz-ubu) wrote :

If you don't want to make the problem go away by using the /emul/ method above
it could make sense to make the script aware of dchroot's config file. That is
the only way I know of for "registering" a chroot install somehow, so it's the
only predictable way to find them other than if they are all mounted in /emul/
(which is handled now, so this is perhaps just a documentation issue?)
Probing each one to try and find out what it is is the wrong behaviour imo, it
would imply that suitable architectures would be worth paying attention to in
some way. Ignoring them outright would certainly be quicker :)

Revision history for this message
Alexandra Kossovsky (alexandra-kossovsky) wrote :

I do not understand the last comment. I can solve _my_ problems (using the
/emul/ method above or by other ways). I supposed that _you_, Ubuntu team, are
interested in bug reports. If it is not true -- OK, I will not report the
problems which I have to solve with Ubuntu.
Many Debian amd64-related documentation tells about /var/chroot/, not about
/emul/. Average user will use the place described in documentation. Average user
will install dchroot (from Universe) and use it with /var/chroot/ or /chroot/,
as described in /usr/share/doc/dchroot/README. By the way, I believe that libc
scripts should not parse dchroot config while dchroot is in universe :-).

Revision history for this message
Matt Zimmerman (mdz) wrote :

(In reply to comment #5)
> I do not understand the last comment. I can solve _my_ problems (using the
> /emul/ method above or by other ways). I supposed that _you_, Ubuntu team, are
> interested in bug reports. If it is not true -- OK, I will not report the
> problems which I have to solve with Ubuntu.

Please take a breath; your bug report is not being rejected. It is open and
assigned to an Ubuntu developer for analysis.

Revision history for this message
Jonathan Anderson (jonathan-anderson) wrote :

This bug sounds pretty Confirmed to me...

Changed in glibc:
status: Unconfirmed → Rejected
status: Rejected → Confirmed
Jeff Bailey (jbailey)
Changed in glibc:
assignee: jbailey → nobody
Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

Thank you for posting this bug.

Does this occur in Lucid?

Changed in glibc (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

Closing because if no response.

Changed in glibc (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.