維護(hù)更新CentOS 8 Linux系統(tǒng)運(yùn)行命令報(bào)錯(cuò)如下:
[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)
出現(xiàn)上述--skip-broken的原因并不在于緩存問題,而是libpcap軟件包沒有卸載完導(dǎo)致,我們可以通過查詢相關(guān)的rpm包刪除干凈,再進(jìn)行系統(tǒng)的更新。
[root@iZwz92jeancylpcm6qlws1Z yum.repos.d]# rpm -qa | grep libpcap |xargs rpm -e --nodeps
現(xiàn)在可以使用yum upgrade命令更新系統(tǒng)啦,風(fēng)信網(wǎng)絡(luò)建站專業(yè)的技術(shù)服務(wù)為您提供互聯(lián)網(wǎng)全技術(shù)棧的解決方案,針對(duì)一套管理后臺(tái),可同時(shí)管理PC端、移動(dòng)端、APP端、各種小程序端互聯(lián)網(wǎng)應(yīng)用,實(shí)現(xiàn)多端跨平臺(tái)運(yùn)行,服務(wù)熱線:189-8648-0214。