我在 centos 8 服务器上执行时收到以下错误dnf update
。我已经尝试了以下操作:
dnf clean all dnf distro-sync dnf update --best --allowerasing
Last metadata expiration check: 0:02:15 ago on Sun 27 Dec 2020 09:00:12 AM EST.
Error:
Problem: cannot install the best update candidate for package libgs-9.25-7.el8.x86_64
- problem with installed package libgs-9.25-7.el8.x86_64
- package libgs-9.25-7.el8.x86_64 requires libidn.so.11()(64bit), but none of the providers can be installed
- package libgs-9.25-7.el8.x86_64 requires libidn.so.11(LIBIDN_1.0)(64bit), but none of the providers can be installed
- cannot install the best update candidate for package libidn-1.34-5.el8.x86_64
- cannot install both libidn-1.36-1.0.el8.x86_64 and libidn-1.34-5.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages)
编辑:
我不得不禁用它,city-fan
因为它试图更新较新的软件包。我只需要 city-fan repo 来使用 curl
答案1
我最终启用了 city-fan repo 但允许它仅更新 curl。/etc/yum.repos.d/city-fan.repo
应该如下所示:
[CityFan]
name=City Fan Repo
baseurl=http://www.city-fan.org/ftp/contrib/yum-repo/rhel$releasever/$basearch/
enabled=1
gpgcheck=0
includepkgs=curl*
exclude=*
我希望这可以帮助别人。