Centos使用yum报错---网络问题
生活随笔
收集整理的這篇文章主要介紹了
Centos使用yum报错---网络问题
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
提示報錯信息:
Could not retrieve mirrorlisthttp://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 - “Couldn’t resolvehost ‘mirrorlist.centos.org’”
Could not retrieve mirrorlisthttp://mirrorlist.centos.org/?release=6&arch=x86_64&repo=extras errorwas
14: PYCURL ERROR 6 - “Couldn’t resolvehost ‘mirrorlist.centos.org’”
Could not retrieve mirrorlisthttp://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates errorwas
解決辦法:
修改一下dns,找到/etc/sysconfig/network-scripts/ifcfg-eno33(后面的數(shù)字是隨機產(chǎn)生的)
將ONBOOT=no改成yes
然后重啟網(wǎng)絡(luò) service network restart
總結(jié)
以上是生活随笔為你收集整理的Centos使用yum报错---网络问题的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java.sql.SQLNonTrans
- 下一篇: python conda无法安装包 报错