Instalando o postfix do repositório centosplus “Não foi possível resolver host: mirrors.linode.com; Erro desconhecido"

1

Estou seguindo um tutorial na instalação do Postfix com suporte ao MariaDB. Como o /etc/yum.repos.d/CentOS-Base.repo repo padrão não suporta Postfix com MariaDB, modifiquei o arquivo com exclude=postfix e enabled=1 lines

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=http://mirrors.linode.com/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
exclude=postfix

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
baseurl=http://mirrors.linode.com/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
exclude=postfix

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
baseurl=http://mirrors.linode.com/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
baseurl=http://mirrors.linode.com/centos/$releasever/centosplus/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1

Eu corro yum --enablerepo=centosplus install postfix , mas recebi um erro:

Loaded plugins: fastestmirror
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
http://mirrors.linode.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.linode.com; Unknown error"
Trying other mirror.
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=centosplus&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
    http://mirrors.linode.com/centos/7/centosplus/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.linode.com; Unknown error"
    Trying other mirror.


failure: repodata/repomd.xml from centosplus: [Errno 256] No more mirrors to try.
http://mirrors.linode.com/centos/7/centosplus/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.linode.com; Unknown error"

Alguma ideia do que posso fazer para resolver isso?

    
por sanjihan 10.02.2017 / 11:18

1 resposta

1

"Could not resolve host: mirrors.linode.com; Unknown error"

Edite seu /etc/resolv.conf adicionando a seguinte linha:

nameserver 8.8.8.8 nameserver 8.8.4.4 nameserver 127.0.0.1

A adição de servidores de nomes do DNS do Google na parte superior do seu resolv.conf fornecerá yum de servidores DNS válidos para resolver endereços IP e hosts

    
por 10.02.2017 / 12:19