XZ and XZLibs

Hi Everyone,

I just did sth stupid … I removed via “sudo dnf remove xz*” in Rawhide.

Because it is only test system for me, there is no risk of losing data.

But after removing xz* … system started to be irresponsible.
I tried to reinstall/install xz* but … dnf stopped working.
So I tried to install xz* as compilation (configure and then make). Not possible (no gcc and g++ compiler in system)
I tried to install any *.rpm … not working because decompression/compression libraries were not working.
System is not starting now … probably because there is no way to decompress sth at the start.

So I stacked in this point.

I started to think what to do in such situation?

  1. I do not want to do fresh install :wink: [easy way]
  2. I would like to fix this installation and restore links/config files… on direct partition where this rawhide is installed.

What is the best way to deal in such situations.
System is not starting :wink: [there is no stress I have time, no important data]
Yeah, but how to fix it when nothing works and nothing starts … Just Fedora Start Screen and that’s all.

T.

LiveCD? Then something like dnf --installroot=/mnt/sysroot --releasever=rawhide install xz.

2 Likes

I will test in next 2 hours :wink: Thx Gregory.

So in my case it is the solution:
not XZ* because dnf wrote the info: xz* is installed.

But what failed is: lzma* libs.

liveuser@localhost-live:~$ sudo dnf --installroot /mnt/aea32c25-71dc-4a5e-a37a-cecffdd5e97d/root --releasever=rawhide install lzma*
Last metadata expiration check: 0:02:23 ago on Fri 05 Apr 2024 02:57:44 PM EDT.
Dependencies resolved.

Package Architecture Version Repository Size

Installing:
lzma-sdk x86_64 22.01-3.fc40 fedora 172 k
lzma-sdk-devel x86_64 22.01-3.fc40 fedora 213 k
lzma-sdk457 x86_64 4.57-29.fc40 fedora 102 k
lzma-sdk457-devel x86_64 4.57-29.fc40 fedora 127 k

Transaction Summary

Install 4 Packages

Total download size: 615 k
Installed size: 1.6 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): lzma-sdk457-4.57-29.fc40.x86_64.rpm 320 kB/s | 102 kB 00:00
(2/4): lzma-sdk-22.01-3.fc40.x86_64.rpm 476 kB/s | 172 kB 00:00
(3/4): lzma-sdk-devel-22.01-3.fc40.x86_64.rpm 517 kB/s | 213 kB 00:00
(4/4): lzma-sdk457-devel-4.57-29.fc40.x86_64.rp 1.1 MB/s | 127 kB 00:00

Total 646 kB/s | 615 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : lzma-sdk457-4.57-29.fc40.x86_64 1/4
Installing : lzma-sdk-22.01-3.fc40.x86_64 2/4
Installing : lzma-sdk-devel-22.01-3.fc40.x86_64 3/4
Installing : lzma-sdk457-devel-4.57-29.fc40.x86_64 4/4
Running scriptlet: lzma-sdk457-devel-4.57-29.fc40.x86_64 4/4

Installed:
lzma-sdk-22.01-3.fc40.x86_64 lzma-sdk-devel-22.01-3.fc40.x86_64
lzma-sdk457-4.57-29.fc40.x86_64 lzma-sdk457-devel-4.57-29.fc40.x86_64

Complete!
liveuser@localhost-live:~$

After this system boots and starts normally.

I thought that “xz” contains all “lzma”.
Surprise.

Thanks Gregory for hint.

1 Like

Disconnect from network (especially if your network has direct internet connection) and make notes of post-install configuration steps. Wipe and reinstall (with new secrets).

If your system was directly connected to the internet while one of the “bad” xz versions was installed you should assume any secrets are now known by others.

The “bad” version of xzcreate an amazingly scary backdoor in sshd, so just reinstalling an older version of xz may not be enough to restore proper operation.

3 Likes