/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once

Bug #1790020 reported by Demon
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

libc6:
  Installed: 2.23-0ubuntu10
  Candidate: 2.23-0ubuntu10
  Version table:
 *** 2.23-0ubuntu10 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2.23-0ubuntu3 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

This package is installing a x86_64-linux-gnu.conf file in /etc/ld.so.conf.d that triggers an error with ldconfig.real:

/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once

This is because the conf file includes those directories for ldconfig to search when ldconfig already indexes those directories by default.

After deleting the conf file created by libc6 package, the error ceases.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: libc6 2.23-0ubuntu10
Uname: Linux 4.16.0-041600-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
CurrentDesktop: GNOME-Flashback:Unity
Date: Thu Aug 30 20:19:37 2018
Dependencies:
 gcc-6-base 6.0.1-0ubuntu1
 libc6 2.23-0ubuntu10
 libgcc1 1:6.0.1-0ubuntu1
InstallationDate: Installed on 2018-05-18 (104 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: glibc
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Demon (demonrx) wrote :
Revision history for this message
Adam Conrad (adconrad) wrote :

I don't get any error output here. Do you have any mention of x86_64-linux-gnu in /etc/ld.so.conf or in any other snippets in /etc/ld.so.conf.d?

(xenial-amd64)root@nosferatu:~# dpkg -S /etc/ld.so.conf.d/x86_64-linux-gnu.conf
libc6:amd64: /etc/ld.so.conf.d/x86_64-linux-gnu.conf
(xenial-amd64)root@nosferatu:~# cat /etc/ld.so.conf.d/x86_64-linux-gnu.conf
# Multiarch support
/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu
(xenial-amd64)root@nosferatu:~# ldconfig
(xenial-amd64)root@nosferatu:~# ldconfig.real
(xenial-amd64)root@nosferatu:~#

Changed in glibc (Ubuntu):
status: New → Incomplete
Revision history for this message
Demon (demonrx) wrote :

Only files and any mention of such paths are as follows in /etc/ld.so.conf.d:

10-amdgpu-pro.conf:/opt/amdgpu-pro/lib/x86_64-linux-gnu

20-amdgpu.conf:/opt/amdgpu/lib/x86_64-linux-gnu

fakeroot-x86_64-linux-gnu.conf:/usr/lib/x86_64-linux-gnu/libfakeroot

x86_64-linux-gnu.conf:/lib/x86_64-linux-gnu |
                                                    | < Error occurs cause of this file
x86_64-linux-gnu.conf:/usr/lib/x86_64-linux-gnu |

x86_64-linux-gnu_EGL.conf:/usr/lib/x86_64-linux-gnu/mesa-egl

x86_64-linux-gnu_GL.conf:/usr/lib/x86_64-linux-gnu/mesa

You're not seeing the error because you didn't run the command as:

# ldconfig -v

I just ran it and the error is back again since there has been a recent update to libc6:

demon@UbuntuHP:/etc/ld.so.conf.d$ sudo ldconfig -v
/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
[..]

After deleting/renaming the afflicted file(s): /etc/ld.so.conf.d/x86_64-linux-gnu.conf

The error disappears, and the directory is still indexed as normal that is in that .conf

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for glibc (Ubuntu) because there has been no activity for 60 days.]

Changed in glibc (Ubuntu):
status: Incomplete → Expired
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.