CentOS解决cannot install both libpcap-14:1.9.1-5.el8.x86_64 and libpcap-14:1.9.1-4.el8.x86_64的方法

维护更新CentOS 8 Linux系统运行命令报错如下:

[root@iZwz92jeancylpcm6qlws1Z yum.repos.d]# yum upgrade


Repository extras is listed more than once in the configuration
Repository epel is listed more than once in the configuration
Last metadata expiration check: 0:00:14 ago on Thu 28 Oct 2021 02:02:47 PM CST.
Error:
Problem: cannot install both <a href="https://www.nzw6.com/tag/libpcap" title="查看所有文章关于 libpcap"target="_blank">libpcap</a>-14:1.9.1-5.el8.x86_64 and libpcap-14:1.9.1-4.el8.x86_64
- package libpcap-devel-14:1.9.1-4.el8.x86_64 requires libpcap = 14:1.9.1-4.el8, but none of the providers can be installed
- cannot install the best update candidate for package libpcap-14:1.9.1-4.el8.x86_64
- problem with installed package libpcap-devel-14:1.9.1-4.el8.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

出现上述–skip-broken的原因并不在于缓存问题,而是libpcap软件包没有卸载完导致,我们可以通过查询相关的rpm包删除干净,再进行系统的更新。

[root@iZwz92jeancylpcm6qlws1Z yum.repos.d]# rpm -qa | grep libpcap |xargs rpm -e --nodeps

现在可以使用yum upgrade命令更新系统啦

文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/114187.html<

(0)
运维的头像运维
上一篇2025-02-17 19:08
下一篇 2025-02-17 19:10

相关推荐

发表回复

您的邮箱地址不会被公开。必填项已用 * 标注