Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xz: /lib64/liblzma.so.5: version `XZ_5.6.0' not found
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Lovot
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2015
Posts: 86

PostPosted: Thu Jan 09, 2025 7:02 am    Post subject: xz: /lib64/liblzma.so.5: version `XZ_5.6.0' not found Reply with quote

Code:
~# xz
xz: /lib64/liblzma.so.5: version `XZ_5.6.0' not found (required by xz)


XZ somehow broke, tried removing. and reinstalling it, no joy, can't update anything because Portage packages are all XZ archives (aside from XZ itself, which is a GZ archive for obvious reasons), any idea what's causing this?
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2076

PostPosted: Thu Jan 09, 2025 8:01 am    Post subject: Reply with quote

Please share emerge --info.

What happens when you reinstall xz? Does it build and install fine, just still doesn't work?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22965

PostPosted: Thu Jan 09, 2025 2:55 pm    Post subject: Reply with quote

Also show the output of emerge --pretend --verbose app-arch/xz-utils, so we can see exactly which xz you are using and its options. I ask since some people applied local masks in the wake of the xz backdoor, and may still have those masks active now.
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2889

PostPosted: Thu Jan 09, 2025 3:09 pm    Post subject: Reply with quote

Code:
/lib64/liblzma.so.5
Considering that current xz-utils installs to /usr/lib64 (not /lib64 regardless of split or merged-usr), this sounds like either a old version or potentially orphaned library assuming that this is not a merged-usr system (haven't seen emerge --info yet)
Back to top
View user's profile Send private message
Lovot
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2015
Posts: 86

PostPosted: Fri Jan 10, 2025 3:07 am    Post subject: Reply with quote

Ionen: I didn't catch that it was looking in /lib64/ at all, renaming the liblzma.so.5 instance located there so XZ can't find it immediately fixed XZ

Would it be fine to replace /lib64 with a softlink to /usr/lib64 like /lib32 is a softlink to /lib so programs stop trying to use massively outdated libraries?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22965

PostPosted: Fri Jan 10, 2025 3:52 pm    Post subject: Reply with quote

No, because there should not be any massively outdated libraries in /lib64. Portage manages that directory, so if you have stale files in that directory, something is very wrong and needs to be fixed.

On my current amd64 system, /lib32 does not exist at all. It is not a symlink to anything. Therefore, it is strange to me that you have it as a symlink to /lib. Is this a very old system? What is the output of namei -l /{,usr/}{lib,lib32,lib64}; emerge --info?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum