發(fā)現(xiàn)問(wèn)題
今天在使用Yum install命令安裝軟件的時(shí)候一直提示一個(gè)錯(cuò)誤,錯(cuò)誤提示如下面:
# yum install mysqlLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfileYumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. </HTML>/removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/$releasever/base/mirrorlist.txtError: Cannot find a valid baseurl for repo: base

解決思路:
出現(xiàn)該問(wèn)題說(shuō)明沒(méi)有找到相應(yīng)的Yum 源,這種情況很可能時(shí)網(wǎng)絡(luò)連接出了問(wèn)題,打開(kāi)虛擬機(jī)的網(wǎng)絡(luò)配置發(fā)現(xiàn)現(xiàn)在處于的是host-only模式,接下來(lái)將模式更改為了橋接模式,最終解決該問(wèn)題。(橋接模式的特點(diǎn)是虛擬機(jī)和本機(jī)處于同一個(gè)局域網(wǎng)段,可以實(shí)現(xiàn)互訪(fǎng)。)
更改過(guò)程:
1、依次點(diǎn)擊菜單欄中的 虛擬機(jī)-->設(shè)置-->網(wǎng)絡(luò)適配器->橋接模式;

2、設(shè)置完成后,在終端輸入ifup eth0 ,重新啟用網(wǎng)絡(luò)連接;
3、測(cè)試yum命令,若出現(xiàn)下面的進(jìn)度條則表示成功。

總結(jié)
以上就是利用Yum安裝中出現(xiàn)錯(cuò)誤mirrorlist.txt的解決方法,希望能對(duì)大家有所幫助,如果有疑問(wèn)大家可以留言交流,謝謝大家對(duì)VEVB武林網(wǎng)的支持。
新聞熱點(diǎn)
疑難解答
圖片精選