can't update from 4.4 to 4.8

General support questions including new installations
Post Reply
jomaweb
Posts: 1
Joined: 2010/03/06 18:04:18

can't update from 4.4 to 4.8

Post by jomaweb » 2010/03/06 18:35:00

Hello everybody

No X started, I use the following commands to update to 4.8

yum -y update
yum -y upgrade
reboot

and all I got is a list of packets "set to be updated", but Centos is still in 4.4

If I start X, then clicking on the Red Balloon an assistant begins (update agent). Ask me for the root pass, notices me the channel

yum channel centos4-Base from http://mirror.centos.org/centos/4/os/i386/

and start updating. After a few moments i got this error:

URL: http://mirror.centos.org/centos/4/os/i386//headers/centos4-Base-obsoletes.1000
Status Code: 404
Error Message: Not Found

Internet connection is fine.

any help will be appreciated

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

can't update from 4.4 to 4.8

Post by pschaff » 2010/03/06 19:50:46

Things do tend to get problematic with such a [b]long[/b] time without an update. The missing file does not exist. Don't remember when mirrorlist came in, but you seem to be using an old repo config without it. I'd try this[code]
yum clean all
yum update glibc\*
yum update centos-release yum\* rpm\* python\*
[/code]
If that works, check /etc/yum.repos.d/ and make sure CentOS-Base.repo looks like[code]
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# 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
[/code]
There may be a CentOS-Base.repo.rpmnew or similar that has the correct version. If that works, then try[code]
yum update kernel
yum update
[/code]

Post Reply

Return to “CentOS 4 - General Support”