錯誤一、安裝很多軟件提示No match for argument Unable to find a match
????開始遇到報錯后更新了一下源,但發(fā)現(xiàn)依然是提示No match for argument Unable to find a match。如下:肯定和Centos8有點關(guān)系。
[root@test test]# yum install iftop
No match for argument: iftop
centos8 Error: Unable to find a match: iftop
????有些資料說是Centos8上的yum源里面沒有epel,而iftop等一些軟件被遷移到了epel源,需要先使用yum install epel-release來安裝epel源。但我安裝之后依然未成功,最后我通過下載文件編譯安裝的。過程如下:
cd /usr/local/src wget http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz tar zxvf iftop-0.17.tar.gz cd iftop-0.17 ./configure --prefix=/usr/local/iftop make && make install ln -s /usr/local/iftop/sbin/iftop /usr/sbin/iftop
期間還碰到的一些?configure?報錯,整理如下:
報錯:configure: error: no acceptable C compiler found in $PATH
問題:缺少gcc編譯環(huán)境
解決:安裝gcc編譯環(huán)境:yum install -y gcc
報錯:configure: error: can't find pcap.h You're not going to get very far without libpcap.
問題:系統(tǒng)缺少libpcap-devel包。
解決:安裝libpcap-devel包
wget htps://repo.almalinux.org/almalinux/8/PowerTools/x86_64/os/Packages/libpcap-devel-1.9.1-5.el8.x86_64.rpm
rpm -ivh libpcap-devel-1.9.1-5.el8.x86_64.rpm --force --nodeps
報錯:make: yacc: Command not found? ?make: *** [grammar.c] Error 127?
問題:缺少byacc包
解決:yum install byacc?
報錯:Can't find a curses library supporting mvchgat. Consider installing ncurses.?
問題:系統(tǒng)缺少ncurses-devel包
解決:yum? install ncurses-devel
錯誤二、Error: Cannot prepare internal mirrorlist: No URLs in mirrorlist
????剛剛做的系統(tǒng)Centos8.0使用yum update好幾十分鐘之后,使用yum install來安裝工具,上來就報錯了:Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
????悲哀??!CentOS,Community Enterprise Operating System, 基本和RHEL(紅帽企業(yè) Linux)一樣的產(chǎn)品,一個好用又免費的社區(qū)企業(yè)操作系統(tǒng)。CentOS 8操作系統(tǒng)版本于2022年1月31日壽終正寢,其生命結(jié)束了。更加凄涼的是,目前CentOS 8已經(jīng)停止維護一年多,但仍然還沒看到有一個穩(wěn)定能替代centos生態(tài)位的發(fā)行版出現(xiàn)。,以后再也不會有免費的RHEL了。文章來源:http://www.zghlxwxcb.cn/news/detail-861299.html
????如果目前有業(yè)務(wù)仍需要使用CentOS 8中的一些安裝包,建議切換至CentOS-Vault源,當(dāng)然也可以使用其它的源。執(zhí)行下面兩行代碼文章來源地址http://www.zghlxwxcb.cn/news/detail-861299.html
sudo sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-*
sudo sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
到了這里,關(guān)于Centos8服務(wù)器中yum安裝時的錯誤Unable to find a match、No URLs in mirrorlist解決的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!