Trying to upgrade to 5.11 from 5.2
I keep getting this message:
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
Error: Cannot find a valid baseurl for repo: base
[
Can anyone give a clean .repo file which will work for what I want to do?
Thanks.
Mark
problems upgrading from 5.2 to 5.11
Re: problems upgrading from 5.2 to 5.11
Here is the default CentOS-Base.repo:
Code: Select all
# CentOS-Base.repo
#
# 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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
Re: problems upgrading from 5.2 to 5.11
Please note that there's this tidbit in the release notes of CentOS 5.3:
CentOS 5.4
CentOS 5.5
CentOS 5.6
CentOS 5.7
CentOS 5.8
CentOS 5.9
CentOS 5.10
CentOS 5.11
It might be a good idea to look through all the other release notes to see if there's anything that affects your system:When updating from 5.2 to 5.3 you can run into a problem with rpm: "rpmdb: unable to lock mutex: Invalid argument". To avoid this please update glibc before updating the rest of the installation with
yum clean all && yum update glibc\* && yum update
Recommended procedure:
yum clean all
yum update glibc\*
yum update yum\* rpm\* python\*
yum clean all
yum update kernel\*
yum update
shutdown -r now
CentOS 5.4
CentOS 5.5
CentOS 5.6
CentOS 5.7
CentOS 5.8
CentOS 5.9
CentOS 5.10
CentOS 5.11