centos系統(tǒng)中yum出現(xiàn)“Could not retrieve mirrorlist ”的處理方法

    問題通常是在使用yum時候出現(xiàn)如下類似的錯誤內(nèi)容?

    Loaded plugins: fastestmirror, langpacks

    Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was

    12: Timeout on http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock: (28, 'Resolving timed out after 30383 milliseconds')

    ?

    ?

    ?One of the configured repositories failed (Unknown),

    ?and yum doesn't have enough cached data to continue. At this point the only

    ?safe thing yum can do is fail. There are a few ways to work "fix" this:

    ?

    ? ? ?1. Contact the upstream for the repository and get them to fix the problem.

    ?

    ? ? ?2. Reconfigure the baseurl/etc. for the repository, to point to a working

    ? ? ? ? upstream. This is most often useful if you are using a newer

    ? ? ? ? distribution release than is supported by the repository (and the

    ? ? ? ? packages for the previous distribution release still work).

    ?

    ? ? ?3. Disable the repository, so yum won't use it by default. Yum will then

    ? ? ? ? just ignore the repository until you permanently enable it again or use

    ? ? ? ? --enablerepo for temporary usage:

    ?

    ? ? ? ? ? ? yum-config-manager --disable

    ?

    ? ? ?4. Configure the failing repository to be skipped, if it is unavailable.

    ? ? ? ? Note that yum will try to contact the repo. when it runs most commands,

    ? ? ? ? so will have to try and fail each time (and thus. yum will be be much

    ? ? ? ? slower). If it is a very temporary problem though, this is often a nice

    ? ? ? ? compromise:

    ?

    ? ? ? ? ? ? yum-config-manager --save --setopt=.skip_if_unavailable=true

    ?

    Cannot find a valid baseurl for repo: base/7/x86_64

    這種情況通常是,是因為沒有配置DNS服務器。愛掏網(wǎng) - it200.com

    解決方法:用VI編輯resolv.conf文件

    命令

    vi /etc/resolv.conf

    添加:

    nameserver 114.114.114.114 ? ?國內(nèi)的

    wq

    保存退出即可





    聲明:所有內(nèi)容來自互聯(lián)網(wǎng)搜索結果,不保證100%準確性,僅供參考。如若本站內(nèi)容侵犯了原著者的合法權益,可聯(lián)系我們進行處理。
    發(fā)表評論
    更多 網(wǎng)友評論0 條評論)
    暫無評論

    返回頂部

    主站蜘蛛池模板: 国精无码欧精品亚洲一区| 99精品久久精品一区二区| 国语对白一区二区三区| 亚洲欧美国产国产综合一区 | 91一区二区在线观看精品| 亚洲一区二区中文| 国语对白一区二区三区| 麻豆一区二区免费播放网站| 国产一区二区在线观看app| 色一情一乱一伦一区二区三欧美| 日韩视频在线观看一区二区| 日本片免费观看一区二区 | 国产一区二区三区免费观在线 | 亚洲AV无码一区二区三区网址| 亚洲av成人一区二区三区在线观看| 精品亚洲A∨无码一区二区三区| 国产99精品一区二区三区免费| 精品黑人一区二区三区| 亚洲Av无码一区二区二三区| 国产裸体歌舞一区二区| 国产高清精品一区| 精彩视频一区二区三区| 亚洲日韩国产一区二区三区| 精品一区狼人国产在线| 韩国美女vip福利一区| 无码精品视频一区二区三区 | 人妻体内射精一区二区三四| 亚洲AV午夜福利精品一区二区| 国产精品一区二区av| 国产成人无码一区二区三区| 亚洲AV无码一区二区三区DV| 午夜影视日本亚洲欧洲精品一区| 精品福利一区二区三区免费视频 | 成人无码AV一区二区| 色偷偷av一区二区三区| 国产一区二区好的精华液 | 少妇人妻精品一区二区三区| 亚洲国产成人久久综合一区| 亚洲乱码av中文一区二区| 国产主播一区二区三区在线观看| 美女免费视频一区二区|