已加載插件:fastestmirror
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#52 - "Empty reply from server"
One of the configured repositories failed (未知),
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. Run the command with the repository temporarily disabled
yum --disablerepo=<repoid> ...
4. Disable the repository permanently, 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 <repoid>
or
subscription-manager repos --disable=<repoid>
5. 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=<repoid>.skip_if_unavailable=true
Cannot find a valid baseurl for repo: base/7/x86_64
[root@localhost ~]#
網上的解決方法不是很詳細,希望有清晰的解釋。
uj5u.com熱心網友回復:
先檢查主機訪問外網是否暢通,如果訪問外網沒有問題,可以換源試試,實在不行本地源uj5u.com熱心網友回復:
源的問題或者網路問題,國內的可以試試阿里的鏡像。uj5u.com熱心網友回復:
查看下 ifconfig是不是 也找不到, 如果網路服務找不到,ping 也ping不通, 應該是網路問題, centos 7 之后 好像網路命令變了。 要修改ifcfg 網卡檔案, ONBOOT 開啟為yes 之后可以聯網,但是有的會找不到包, 修改源, 就OK 了
uj5u.com熱心網友回復:
有沒有解決辦法,我今天換了版本也遇到了!uj5u.com熱心網友回復:
一樣的問題,誰知道感徑訓復一下uj5u.com熱心網友回復:
鏡像地址不對吧,看下 /etc/yum.repos.d/轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/61852.html
標籤:專題技術討論區
上一篇:觸摸屏操作
下一篇:centos7的es分片如何做
