Bug 35131 - failure during glibc-debuginfo installation, dangling links in /usr/lib/debug/
Summary: failure during glibc-debuginfo installation, dangling links in /usr/lib/debug/
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Base system maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-12 15:28 CET by Giuseppe Ghibò
Modified: 2026-02-17 14:12 CET (History)
1 user (show)

See Also:
Source RPM: filesystem-2.1.9-38.mag10
CVE:
Status comment:


Attachments

Description Giuseppe Ghibò 2026-02-12 15:28:44 CET
I add this as a reminder to fix.

While installing glibc-debuginfo, I noticed there are problems with broken links.

E.g. enabling the debuginfo repository and running:

$ urpmi glibc-debuginfo

To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "Core Release Debug")
  glibc-debuginfo                2.42         5.mga10       x86_64  
  glibc-debugsource              2.42         5.mga10       x86_64  (recommended)

will end with error:

installing glibc-debuginfo-2.42-5.mga10.x86_64.rpm glibc-debugsource-2.42-5.mga10.x86_64.rpm from /var/cache/urpmi/rpms                          
Preparing...                     ################################################################################################################
      1/2: glibc-debugsource     ################################################################################################################
      2/2: glibc-debuginfo       #############################error: failed to open dir lib64 of /usr/lib/debug/lib64/: cpio: mkdir failed - File
#################################################################################################################################################
error: unpacking of archive failed on file /usr/lib/debug/lib64/ld-linux-x86-64.so.2.debug;698db9f7: cpio: mkdir failed - No such file or directory
ERROR: 'unpack' failed for glibc-debuginfo-6:2.42-5.mga10.x86_64
error: glibc-debuginfo-6:2.42-5.mga10.x86_64: install failed

the error is in dir /usr/lib/debug, which contains the following dangling links:

ls -l /usr/lib/debug/

total 0
drwxr-xr-x 1 root root  60 Feb 12 06:31 ./
drwxr-xr-x 1 root root 860 Feb 12 05:47 ../
lrwxrwxrwx 1 root root   7 Feb 11 14:45 bin -> usr/bin
lrwxrwxrwx 1 root root   9 Feb 11 14:45 lib64 -> usr/lib64
lrwxrwxrwx 1 root root   8 Feb 11 14:45 sbin -> usr/sbin

which should be problably pointing to /usr/bin, /usr/lib64, /usr/sbin, not to usr/bin in that local dir. Removing them manually unlocks the installation, but probably they should be revised for the proper link path.
Comment 1 Lewis Smith 2026-02-12 20:48:17 CET
Assigning to basesystem.

Summary: failure during glibc-debuginfo installation => failure during glibc-debuginfo installation, dangling links in /usr/lib/debug/
Assignee: bugsquad => basesystem

Comment 2 Jani Välimaa 2026-02-13 16:18:07 CET
Should be fixed with upcoming filesystem-2.1.9-40.mga10.

CC: (none) => jani.valimaa
Source RPM: glibc-2.42-5.mga10 => filesystem-2.1.9-38.mag10

Comment 3 Giuseppe Ghibò 2026-02-14 11:20:53 CET
Seems there are still some small problem:

$ urpmi glibc-debuginfo

To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "Core Release Debug")
  glibc-debuginfo                2.42         5.mga10       x86_64  
  glibc-debugsource              2.42         5.mga10       x86_64  (recommended)
137MB of additional disk space will be used.
23MB of packages will be retrieved.
Proceed with the installation of the 2 packages? (Y/n) y
...
installing glibc-debugsource-2.42-5.mga10.x86_64.rpm glibc-debuginfo-2.42-5.mga10.x86_64.rpm from /var/cache/urpmi/rpms                                    
Preparing...                     #########################################################################################################################
Installation failed:    file /usr/lib/debug/lib from install of glibc-debuginfo-6:2.42-5.mga10.x86_64 conflicts with file from package filesystem-2.1.9-40.mga10.x86_64
Comment 4 Jani Välimaa 2026-02-14 14:18:05 CET
Should be fixed with glibc-2.42-6.mga10.

As a side note we have also other pkgs to fix that ships /usr/lib/debug/{lib{,64},bin,sbin} as directory. Those pkgs install files to /lib, /lib64, /bin or /sbin instead of their counterparts in /usr.
Comment 5 Giuseppe Ghibò 2026-02-15 18:44:27 CET
(In reply to Jani Välimaa from comment #4)
> Should be fixed with glibc-2.42-6.mga10.

quickly installing glibc-debuginfo works and no longer returns the error abobe.

> 
> As a side note we have also other pkgs to fix that ships
> /usr/lib/debug/{lib{,64},bin,sbin} as directory. Those pkgs install files to
> /lib, /lib64, /bin or /sbin instead of their counterparts in /usr.

Is that meaning to rewiew the whole distro for that path /usr/bin, /usr/sbin/ path?
Comment 6 Jani Välimaa 2026-02-15 19:16:04 CET
(In reply to Giuseppe Ghibò from comment #5)
> (In reply to Jani Välimaa from comment #4)
> > 
> > As a side note we have also other pkgs to fix that ships
> > /usr/lib/debug/{lib{,64},bin,sbin} as directory. Those pkgs install files to
> > /lib, /lib64, /bin or /sbin instead of their counterparts in /usr.
> 
> Is that meaning to rewiew the whole distro for that path /usr/bin,
> /usr/sbin/ path?

No, it's fixed with filesystem-2.1.9-41.mga10.
Comment 7 Jani Välimaa 2026-02-17 14:12:24 CET
Closing as FIXED.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.