Description of the issue (screenshots if relevant):
Message after running:
sudo dnf clean all ; sudo dnf --allowerasing distro-sync
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing ‘dnf clean packages’.
Error: Transaction test error:
file /usr/lib64/liblxc.so.1 from install of lib64lxc-6.0.4-3.znver1 conflicts with file from package lib64lxc1-1:4.0.6-2.znver1
Relevant informations (hardware involved, software version, logs or output…):
Operating System: OpenMandriva ROME 25.06
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.14.2-desktop-3omv2590 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics
Memory: 125.1 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: ASUS
Updated today.
Have not encountered any problems yet, was interested in resolving issue(s).
I copied and pasted this CL string directly from your note.
Result:
Total 2.8 MB/s | 2.9 GB 17:33
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing ‘dnf clean packages’.
Error: Transaction test error:
file /usr/lib64/liblxc.so.1 from install of lib64lxc-6.0.4-3.znver1 conflicts with file from package lib64lxc1-1:4.0.6-2.znver1
[michael@AsusX570CreatorWiFi ~]$
[michael@AsusX570CreatorWiFi ~]$ sudo dnf clean all ; sudo dnf repolist ; sudo dnf dsync –refresh –allowerasing 2>&1 | tee dsync-log.txt
[sudo] password for michael:
1814 files removed
repo id repo name
rolling-znver1 OpenMandriva Rolling - znver1
rolling-znver1-extra OpenMandriva Rolling - Extra - znver1
rolling-znver1-non-free OpenMandriva Rolling - Non-free - znver1
rolling-znver1-restricted OpenMandriva Rolling - Restricted - znver1
OpenMandriva Rolling - znver1 2.5 MB/s | 5.8 MB 00:02
OpenMandriva Rolling - Extra - znver1 932 kB/s | 1.5 MB 00:01
OpenMandriva Rolling - Restricted - znver1 40 kB/s | 36 kB 00:00
OpenMandriva Rolling - Non-free - znver1 35 kB/s | 31 kB 00:00
No match for argument: –refresh
No match for argument: –allowerasing
Error: No packages marked for distribution synchronization.
[michael@AsusX570CreatorWiFi ~]$
It should be –-refresh and –-allowerasing. This “rich text” editor screwed up @zeroability’s post, as it almost screwed up mine (I had to go back and add the extra dash).
Remove the --refresh option from the dsync parameter as it is not a defined parameter for distro-sync in dnf5 - which should be refreshing/checking for updated repo/package data when it runs by definition:
The distro-sync command in DNF5 serves to synchronize the installed packages with their latest available version from any enabled repository.
With dnf4 I dont recall dnf being as strict and would run regardless by accepting parameters it uses and ignoring those it did not use with no feedback about it either way, I guess that behaviour changed.
With DNF5 this should be all that is required: sudo dnf clean all ; sudo dnf repolist ; sudo dnf dsync -–allowerasing
Explanation: The first command is sudo dnf clean all this makes command sudo dnf repolist and option --refresh redundant. sudo dnf repolist is not an action command it is a list command. Since you have already run sudo dnf clean all the repos will be listed when you run sudo dnf dsync --allowerasing. So sudo dnf repolist is a redundant command in this string.
Since you have already run sudo dnf clean all the sudo dnf dsync --allowerasing command has to refresh repository metadata so --refresh is also redundant.
sudo rpm -e --nodeps lib64lxc1 sudo dnf in lib64lxc
That is not something that would be installed by default. Unless you know you need it you might try:
sudo rpm -e --nodeps lib64lxc1 sudo dnf clean all ; sudo dnf dsync --allowerasing 2>&1 | tee dsync.log.txt
and see if the package is really needed. You can always install it later. The purpose of that particular dsync command is to create the log dsync.log.txt, use that log, post it here if there is any problem along with the exact command you used.
Also do this when there is code in your forum posts:
I copied and pasted the second option you posted (under “Unless you know you need it you might try:”) and ran the update:
sudo rpm -e --nodeps lib64lxc1 sudo dnf clean all ; sudo dnf dsync --allowerasing 2>&1 | tee dsync.log.txt
When I returned, the screen was dark and no response to keyboard or mouse.
I powered down the system and restarted. and it will not reboot to the GUI, only boots to CLI and asks for sign on and password, which will get me to a command line.
What do you recommend to restore the system to its previous state?