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

2023-07-31 0 475

维护更新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 libpcap-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命令更新系统啦

1. 本站所有资源来源于用户上传和网络,因此不包含技术服务请大家谅解!如有侵权请邮件联系客服!cheeksyu@vip.qq.com
2. 本站不保证所提供下载的资源的准确性、安全性和完整性,资源仅供下载学习之用!如有链接无法下载、失效或广告,请联系客服处理!
3. 您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容资源!如用于商业或者非法用途,与本站无关,一切后果请用户自负!
4. 如果您也有好的资源或教程,您可以投稿发布,成功分享后有积分奖励和额外收入!
5.严禁将资源用于任何违法犯罪行为,不得违反国家法律,否则责任自负,一切法律责任与本站无关

源码下载

发表评论
暂无评论