Yum update error

Issues related to software problems.
Post Reply
skywallkee.
Posts: 3
Joined: 2014/08/07 11:07:56

Yum update error

Post by skywallkee. » 2014/08/07 11:11:22

Hi, when i tipe yum update or any other yum .... it say:

Code: Select all

yum update
Setting up Update Process
Setting up repositories
not using ftp, http[s], or file for repos, skipping - 4 is not a valid release or hasnt been released yet
Cannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update
What can I do? I make it with ssh to a vps. It have nothing installed. Sorry for my bad english.

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

Re: Yum update error

Post by TrevorH » 2014/08/07 11:21:50

Post the contents of your /etc/yum.repos.d/CentOS-Base.repo file
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

skywallkee.
Posts: 3
Joined: 2014/08/07 11:07:56

Re: Yum update error

Post by skywallkee. » 2014/08/07 11:25:41

Code: Select all

# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by the CentOS Team.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the 
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=1
protect=1

#released updates 
[update]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=1
protect=1

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=1
protect=1

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=1
protect=1

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=2
protect=1

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=2
protect=1

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

Re: Yum update error

Post by TrevorH » 2014/08/07 12:25:44

You're really running CentOS 4? That release has been end of life since February 2012 and it looks like the mirrorlist is no longer sending out a list of mirrors containing websites containing that release. You can see more about it in the announcement section viewtopic.php?f=12&t=32514 though it doesn't say much more than that it's dead.

You really need to migrate to something with support. CentOS 4 has been without any updates for about 2.5 years and in that time there have been many security updates that could potentially affect the packages in el4 and those updates are not available.

You can adapt your baseurl= lines to point to the archived el4 yum repositories on vault.centos.org but this is not a long term solution as you will still be running code that has had no maintenance for more than 2.5 years.
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

skywallkee.
Posts: 3
Joined: 2014/08/07 11:07:56

Re: Yum update error

Post by skywallkee. » 2014/08/07 12:56:11

I have centos 5. That it's on my hosting writed. How could I find exactly the OS?

drk
Posts: 405
Joined: 2014/01/30 20:38:28

Re: Yum update error

Post by drk » 2014/08/07 17:05:48

Post your output of the following:

Code: Select all

$ cat /etc/redhat-release
CentOS release 6.5 (Final)

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

Re: Yum update error

Post by TrevorH » 2014/08/07 18:48:46

I'm pretty sure you do not have CentOS 5 since the gpg key file in all those repo definitions is the one for CentOS 4. Also yum itself produces the $releasever that it substitutes in the mirrorlist URL and that is resolving to 4. Since a text file like /etc/centos-release can easily be edited by a text editor, a more reliable indicator of what version you have is to run rpm -q centos-release
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