CentOS 6.8 Yum cannot connect?

General support questions
User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 6.8 Yum cannot connect?

Post by TrevorH » 2017/08/25 09:50:43

baseurl= is meant to be commented as it uses the mirrorlist= list instead. The proxy line is weird and probably shouldn't be there.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

sancho85
Posts: 12
Joined: 2017/08/19 01:36:36

Re: CentOS 6.8 Yum cannot connect?

Post by sancho85 » 2017/08/29 03:28:06

yum.repos.d]# telnet mirrorlist.centos.org 80
Trying 85.236.43.108...
Connected to mirrorlist.centos.org.
I can reach the destination on port 80 actually...

commented all baseurl and uncommented mirrorlist ones. still no difference

sancho85
Posts: 12
Joined: 2017/08/19 01:36:36

Re: CentOS 6.8 Yum cannot connect?

Post by sancho85 » 2017/08/29 03:46:13

Yum points me to some error with base repo. cannot find valid baseurl
yum update
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... nfra=stock error was
14: PYCURL ERROR 56 - "Failure when receiving data from the peer"
Error: Cannot find a valid baseurl for repo: Base
[root@NDCPRFIRPLB01N1 yum.repos.d]#

and this is my Base repo file.
[Base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

can someone suggest is anything wrong?
Last edited by sancho85 on 2017/08/29 04:23:33, edited 3 times in total.


sancho85
Posts: 12
Joined: 2017/08/19 01:36:36

Re: CentOS 6.8 Yum cannot connect?

Post by sancho85 » 2017/08/29 04:28:45

yum repolist
Loaded plugins: fastestmirror
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... nfra=stock error was
14: PYCURL ERROR 56 - "Failure when receiving data from the peer"
Could not retrieve mirrorlist http://mirrors.elrepo.org/mirrors-elrepo.el6 error was
14: PYCURL ERROR 56 - "Failure when receiving data from the peer"
http://elrepo.org/linux/elrepo/el6/x86_ ... repomd.xml: [Errno 14] PYCURL ERROR 56 - "Failure when receiving data from the peer"
Trying other mirror.
http://mirrors.coreix.net/elrepo/elrepo ... repomd.xml: [Errno 14] PYCURL ERROR 56 - "Failure when receiving data from the peer"
Trying other mirror.
http://jur-linux.org/download/elrepo/el ... repomd.xml: [Errno 14] PYCURL ERROR 56 - "Failure when receiving data from the peer"
Trying other mirror.
http://repos.lax-noc.com/elrepo/elrepo/ ... repomd.xml: [Errno 14] PYCURL ERROR 56 - "Failure when receiving data from the peer"
Trying other mirror.
http://mirror.ventraip.net.au/elrepo/el ... repomd.xml: [Errno 14] PYCURL ERROR 56 - "Failure when receiving data from the peer"
Trying other mirror.
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... nfra=stock error was
14: PYCURL ERROR 56 - "Failure when receiving data from the peer"
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... nfra=stock error was
14: PYCURL ERROR 56 - "Failure when receiving data from the peer"
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
[root@NDCPRFIRPLB01N1 ~]#
Output of yum repolist says i have problems in epel and elrepo.... but these repo files are identical to other servers that work fine

sancho85
Posts: 12
Joined: 2017/08/19 01:36:36

Re: CentOS 6.8 Yum cannot connect?

Post by sancho85 » 2017/08/30 00:04:14

The Problem is solved.

1. we had problems on firewall that was blocking access to repo.
2. something was wrong with links inside the repo files. Solved it via copying these file from identical servers.

Post Reply