rpm-software-management / dnf

Package manager based on libdnf and libsolv. Replaces YUM.
GNU General Public License v2.0
1.23k stars 409 forks source link

when I use sudo dnf install yum #2094

Closed ooing closed 4 months ago

ooing commented 4 months ago

the error is CentOS-8 - AppStream 185 kB/s | 4.3 kB 00:00
CentOS-8 - Base 144 kB/s | 3.9 kB 00:00
CentOS-8 - Extras 70 kB/s | 1.5 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 451 kB/s | 4.4 kB 00:00
platform-python: /builddir/build/BUILD/libdnf-0.39.1/libdnf/dnf-sack.cpp:755: gboolean load_yum_repo(DnfSack*, HyRepo, GError**): Assertion `fp_primary' failed. Aborted

ppisar commented 4 months ago

You need to compile libsolv with Zstandard support. See https://issues.redhat.com/browse/RHEL-36078 for an explanation. Or wait a little bit. EPEL reverted the Zstandard compression back to xz.

ppisar commented 4 months ago

By the way, try using the latest libdnf. It properly reports this libsolv error instead of aborting. And the error message will be even more precise after merging this https://github.com/openSUSE/libsolv/pull/563 libsolv patch.