Short: The switch to dnf5 does not work OOB: Fehler: Transaktionstest fehlerhaft: Datei /etc/dnf/dnf.conf aus der Installation von libdnf5-5.1.1-20230816004332.15.gfb835033.fc37.x86_64 kollidiert mit der Datei aus dem Paket dnf-data-4.16.2-1.fc37.noarch "a collides with b" PROBLEM: dnf-data is bound to a protected package and can't be erased (without enforcing it) : python3-dnf Log: Letzte Prüfung auf abgelaufene Metadaten: vor 1:19:52 am Mi 16 Aug 2023 09:37:31 CEST. Abhängigkeiten sind aufgelöst. ======================================================================================================================== Paket Arch. Version Paketquelle Größe ======================================================================================================================== Installieren: dnf5 x86_64 5.1.1-20230816004332.15.gfb835033.fc37 copr:copr.fedorainfracloud.org:rpmsoftwaremanagement:dnf5-unstable 447 k Ersetzen dnf.noarch 4.16.2-1.fc37 Ersetzen yum.noarch 4.16.2-1.fc37 Aktualisieren: ... JAVA and ghostscript .... Abhängigkeiten werden installiert: libdnf5 x86_64 5.1.1-20230816004332.15.gfb835033.fc37 copr:copr.fedorainfracloud.org:rpmsoftwaremanagement:dnf5-unstable 854 k libdnf5-cli x86_64 5.1.1-20230816004332.15.gfb835033.fc37 copr:copr.fedorainfracloud.org:rpmsoftwaremanagement:dnf5-unstable 192 k Transaktionszusammenfassung ======================================================================================================================== Installieren 3 Pakete Aktualisieren 9 Pakete Gesamtgröße: 49 M Ist dies in Ordnung? [j/N]: j Pakete werden heruntergeladen: [SKIPPED] dnf5-5.1.1-20230816004332.15.gfb835033.fc37.x86_64.rpm: Already downloaded [SKIPPED] libdnf5-5.1.1-20230816004332.15.gfb835033.fc37.x86_64.rpm: Already downloaded [SKIPPED] libdnf5-cli-5.1.1-20230816004332.15.gfb835033.fc37.x86_64.rpm: Already downloaded [SKIPPED] ghostscript-9.56.1-9.fc37.x86_64.rpm: Already downloaded [SKIPPED] ghostscript-tools-fonts-9.56.1-9.fc37.x86_64.rpm: Already downloaded [SKIPPED] ghostscript-tools-printing-9.56.1-9.fc37.x86_64.rpm: Already downloaded [SKIPPED] ghostscript-x11-9.56.1-9.fc37.x86_64.rpm: Already downloaded [SKIPPED] java-11-openjdk-11.0.20.0.8-1.fc37.x86_64.rpm: Already downloaded [SKIPPED] java-11-openjdk-devel-11.0.20.0.8-1.fc37.x86_64.rpm: Already downloaded [SKIPPED] java-11-openjdk-headless-11.0.20.0.8-1.fc37.x86_64.rpm: Already downloaded [SKIPPED] libgs-9.56.1-9.fc37.x86_64.rpm: Already downloaded [SKIPPED] python3-productmd-1.36-1.fc37.noarch.rpm: Already downloaded Transaktionsüberprüfung wird ausgeführt Transaktionsüberprüfung war erfolgreich. Transaktion wird getestet Die heruntergeladenen Pakete wurden bis zur nächsten erfolgreichen Transaktion im Zwischenspeicher abgelegt. Sie können zwischengespeicherte Pakete mit dem Befehl »dnf clean packages« entfernen. Fehler: Transaktionstest fehlerhaft: Datei /etc/dnf/dnf.conf aus der Installation von libdnf5-5.1.1-20230816004332.15.gfb835033.fc37.x86_64 kollidiert mit der Datei aus dem Paket dnf-data-4.16.2-1.fc37.noarch Reproducible: Always Actual Results: collision Expected Results: better dereference before a swap?
Hi, thanks for reporting. The nightly you were trying to install (2023-08-16) was built around the time we were making some packaging changes that could have caused this error. Would you mind checking again now to see whether you get the same result? ``` sudo dnf-3 copr disable rpmsoftwaremanagement/dnf5-unstable # disable our nightly COPR sudo dnf-3 upgrade --refresh sudo dnf-3 copr enable rpmsoftwaremanagement/dnf5-unstable # enable it again sudo dnf-3 upgrade --refresh ```
strange: now dnf does not offer any update for dnf or wants to swap this at all, with or with out the copr repo enabled. The get dnf5 i need to install it: Paket Architektur Version Paketquelle Größe ================================================================================================================================================================================================================================================================================ Installieren: dnf5 x86_64 5.1.2-20230825004455.30.ge2aa5eea.fc37 copr:copr.fedorainfracloud.org:rpmsoftwaremanagement:dnf5-unstable 463 k Abhängigkeiten werden installiert: libdnf5 x86_64 5.1.2-20230825004455.30.ge2aa5eea.fc37 copr:copr.fedorainfracloud.org:rpmsoftwaremanagement:dnf5-unstable 858 k libdnf5-cli x86_64 5.1.2-20230825004455.30.ge2aa5eea.fc37 copr:copr.fedorainfracloud.org:rpmsoftwaremanagement:dnf5-unstable 195 k Transaktionszusammenfassung ================================================================================================================================================================================================================================================================================ Installieren 3 Pakete CONCLUSION: solved.. no issue anymore.
OK, good, that is the expected behavior now. The DNF 5 package in our dnf5-unstable COPR no longer obsoletes DNF 4, and both can be installed simultaneously. We also have a separate COPR called dnf5-testing: https://copr.fedorainfracloud.org/coprs/rpmsoftwaremanagement/dnf5-testing/ that has builds of DNF 5 that _do_ obsolete DNF 4 and provide /usr/bin/dnf, so you can test what it will be like when DNF 5 becomes the default package manager in a future version of Fedora (likely Fedora 41).