dns - 百胜错误 - centos 7.1 x86_64

标签 dns centos yum

我在专用服务器(由 OVH 托管)上遇到 yum 命令问题:

[root@mail-server ~]# yum clean all
[root@mail-server ~]# yum update
Modules complémentaires chargés : fastestmirror


 One of the configured repositories failed (Inconnu),
 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 <repoid>

     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=<repoid>.skip_if_unavailable=true

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

经过调查,我发现错误如下(从专用服务器返回的url不正确):

KO 来自专用服务器:

[root@mail-server ~]# curl "http://mirrorlist.centos.org/?release=7.1.1503&arch=x86_64&repo=os"
Invalid release
[root@mail-server ~]#

OK 从家里 (ADSL)

MacBook-Air-de-John:~ jjohn$ curl "http://mirrorlist.centos.org/?release=7.1.1503&arch=x86_64&repo=os"
http://mirror.ate.info/ftp.centos.org/7.1.1503/os/x86_64/
http://ftp.rezopole.net/centos/7.1.1503/os/x86_64/
http://distrib-coffee.ipsl.jussieu.fr/pub/linux/centos/7.1.1503/os/x86_64/
http://mirror0.babylon.network/centos/7.1.1503/os/x86_64/
http://centos.crazyfrogs.org/7.1.1503/os/x86_64/
http://centos.mirrors.ovh.net/ftp.centos.org/7.1.1503/os/x86_64/
http://mirrors.ircam.fr/pub/CentOS/7.1.1503/os/x86_64/
ftp://ftp.free.fr/mirrors/ftp.centos.org/7.1.1503/os/x86_64/
http://mirror.ibcp.fr/pub/Centos/7.1.1503/os/x86_64/
http://ftp.ciril.fr/pub/linux/centos/7.1.1503/os/x86_64/
MacBook-Air-de-John:~ jjohn$

全新安装后,我在 friend 的专用服务器(也由 OVH 托管)上遇到了同样的问题。

我不知道错误是来自 OVH 网络(DNS,...)还是 mirrorlist.centos.org 服务器。

最佳答案

我通过输入解决了这个问题

# dhclient 

关于dns - 百胜错误 - centos 7.1 x86_64,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30424860/

相关文章:

Azure RedHat vm yum 更新失败并显示 "SSL peer rejected your certificate as expired."

yum - 如何将 pkg-config 名称映射到 yum/apt-get

linux - 为什么我不能在 Linux 上 ping 带有前导或尾随下划线的地址

amazon-web-services - 按国家/地区限制网站访问

node.js - DigitalOcean : Domain works with www. 但不是没有?

linux - CentOS 6.4 只显示标志

heroku - 如何将 GoDaddy 子域指向 Heroku 应用程序?

linux - 关闭窗口产生的信号?

centos - Centos 7上两个版本的libcurl导致CRYPTO_num_locks错误

installation - RPM+百胜 : install two packages with the same name and different versions simultaneously