yum update time out problem

Issues related to applications and software problems
Post Reply
adi52980
Posts: 2
Joined: 2017/03/21 07:59:21

yum update time out problem

Post by adi52980 » 2017/03/21 08:26:24

I use centos 6.3
I want to update yum but cause some problem

[root@localhost ~]#yum clean all
Loaded plugins: fastestmirror, security
Cleaning repos: base c5-iso c6-iso c67-iso epel extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors

and then

[root@localhost ~]#yum update
Loaded plugins: fastestmirror, security
Setting up Update Process
Determining fastest mirrors
http://10.144.166.34:443/centos54/repodata/repomd.xml: [Errno 12] Timeout on http://10.144.166.34:443/centos54/repodata/repomd.xml: (28, 'connect() timed out!')
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: c5-iso. Please verify its path and try again

How can i solve the problem?
I change the the baseurl or mirrorlist in CentOS-Baserepo but still not work.The url are always 10.144.166.34:433.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum update time out problem

Post by TrevorH » 2017/03/21 09:32:37

Try yum --disablerepo=\* --enablerepo=base,updates update
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

adi52980
Posts: 2
Joined: 2017/03/21 07:59:21

Re: yum update time out problem

Post by adi52980 » 2017/03/22 08:00:10

Thanks! It works!

This is my repo file.

But why it happen? Is there any mistake in the file?

Code: Select all

[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra&cc=tw
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://ftp.isu.edu.tw/pub/Linux/CentOS/$releasever/os/$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=$releasever&arch=$basearch&repo=updates&infra=$infra&cc=tw
baseurl=http://ftp.isu.edu.tw/pub/Linux/CentOS/$releasever/os/$basearch
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$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=$releasever&arch=$basearch&repo=extras&infra=$infra&cc=tw
baseurl=http://ftp.isu.edu.tw/pub/Linux/CentOS/$releasever/os/$basearch
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$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=$releasever&arch=$basearch&repo=centosplus&infra=$infra&cc=tw
baseurl=http://ftp.isu.edu.tw/pub/Linux/CentOS/$releasever/os/$basearch
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib&infra=$infra&cc=tw
baseurl=http://ftp.isu.edu.tw/pub/Linux/CentOS/$releasever/os/$basearch
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum update time out problem

Post by TrevorH » 2017/03/22 08:35:11

Look in the other files in /etc/yum.repos.d/ for mentions of these 'c5-iso c6-iso c67-iso' as they are non-standard repo names and are likely to be in one of the other files. Someone added them and they point to a server that isn't responding any more. Disable or delete them.
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

Post Reply