Jun
18
2009




Remote Upgrades on Fedora based Systems

I’m doing a remote upgrade on a test server at work(VoiceIP Solutions). So today’s article will cover upgrading from Fedora 6 to Fedora 10. Before you start, backup any important data! Every once in a while some dependency issue will crop up that blows up your server.  Also upgrading from Fedora 6 to Fedora 11 is not as easy as say, upgrading from Fedora 10 to Fedora 11.  So be careful and upgrade on a regular basis!

The Goals of this Post:

– remote upgrade from Fedora 6 to Fedora 10

Go to the Fedora 10 Public Mirror home page: http://mirrors.fedoraproject.org/publiclist/Fedora/10/ , then select the mirror that is geographically close to you for the best possible connection.

After you find the closest server.  Navigate to ‘*fedora/linux/releases/10/Fedora/i386/os/Packages/’.  Now we install  the two required release packages.  The release package contains a list of software and the servers they are located on.

login to the server that will be upgraded and install the release-notes package first.  You must install both at the same time. Or you will

[root@localhost ~]# rpm -hiv http://mirror.uoregon.edu/fedora/linux/releases/10/Fedora/i386/os/Packages/fedora-release-notes-10.0.0-1.noarch.rpm
Retrieving http://mirror.uoregon.edu/fedora/linux/releases/10/Fedora/i386/os/Packages/fedora-release-notes-10.0.0-1.noarch.rpm
warning: /var/tmp/rpm-xfer.5daQLu: Header V3 DSA signature: NOKEY, key ID 4ebfc273
Preparing…                ########################################### [100%]
file /usr/share/applications/about-fedora.desktop from install of fedora-release-notes-10.0.0-1 conflicts with file from package fedora-release-5-5
[root@localhost ~]#

[root@localhost ~]# rpm -hiv http://mirror.uoregon.edu/fedora/linux/releases/10/Fedora/i386/os/Packages/fedora-release-notes-10.0.0-1.noarch.rpm
Retrieving http://mirror.uoregon.edu/fedora/linux/releases/10/Fedora/i386/os/Packages/fedora-release-notes-10.0.0-1.noarch.rpm
warning: /var/tmp/rpm-xfer.5daQLu: Header V3 DSA signature: NOKEY, key ID 4ebfc273
Preparing…                ########################################### [100%]
file /usr/share/applications/about-fedora.desktop from install of fedora-release-notes-10.0.0-1 conflicts with file from package fedora-release-5-5
[root@localhost ~]# rpm -Uhv http://mirror.uoregon.edu/fedora/linux/releases/10/Fedora/i386/os/Packages/fedora-release-notes-10.0.0-1.noarch.rpm http://mirror.uoregon.edu/fedora/linux/releases/10/Fedora/i386/os/Packages/fedora-release-10-1.noarch.rpm
Retrieving http://mirror.uoregon.edu/fedora/linux/releases/10/Fedora/i386/os/Packages/fedora-release-notes-10.0.0-1.noarch.rpm
Retrieving http://mirror.uoregon.edu/fedora/linux/releases/10/Fedora/i386/os/Packages/fedora-release-10-1.noarch.rpm
warning: /var/tmp/rpm-xfer.JFh3UM: Header V3 DSA signature: NOKEY, key ID 4ebfc273
Preparing…                ########################################### [100%]
1:fedora-release-notes   ########################################### [ 50%]
2:fedora-release         warning: /etc/yum.repos.d/fedora-updates.repo created as /etc/yum.repos.d/fedora-updates.repo.rpmnew
########################################### [100%]
warning: /etc/yum.repos.d/fedora-extras.repo saved as /etc/yum.repos.d/fedora-extras.repo.rpmsave
warning: /etc/yum.repos.d/fedora-core.repo saved as /etc/yum.repos.d/fedora-core.repo.rpmsave
[root@localhost ~]#

If you get a message like this below,

[root@localhost yum.repos.d]# yum upgrade
Loading “installonlyn” plugin
Setting up Upgrade Process
Setting up repositories
fedora                                                               [1/2]
fedora                    100% |=========================| 2.8 kB    00:00
updates                                                              [2/2]
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/10/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Date: Wed, 17 Jun 2009 21:19:50 GMT
Server: Apache
Content-Length: 255
Content-Type: text/html; charset=iso-8859-1
Trying other mirror.
Cannot open/read repomd.xml file for repository: updates
failure: repodata/repomd.xml from updates: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from updates: [Errno 256] No more mirrors to try.

rename the old updates repo … For instance if you look at the ‘/etc/yum/repos.d’ folder you will notice many *.repos files.  These files point to many repositories like RPM Fusion, Livna, or Fedora updates.  If yum doesn’t have the latest repos for Fedora 10(or whatever distro being upgraded then you need to remove them or rename them so yum does not try to resolve dependencies for those packages.  After the distro is upgraded we can go back to those sites and get the latest releases for the packages in question.  after that a ‘yum update’ should take care of them.

You might also see a HAL(Hardware Abstraction Layer daemon) error.  This is because newer Fedora systems use a Linux kernel that does not support HAL.  See error below.

Error: Unable to satisfy dependencies
Error: Package hal conflicts with kernel < 2.6.17

This means we still have some older kernel is installed.

use the ‘rpm -qa | grep kernel’ to locate the problem package.  In my case I had a ‘kernel-smp-2.6.15’ installed, but not in use.  So I removed that kernel with yum, but got the same error.  So I used ‘rpm -e kernel-smp-2.6.15’ to erase that package and continued on my merry way.

At this point you should see your package dependencies resolve.  The new packages will download and with a little luck the upgrade process will continue smoothly ending with a reboot.  I hope this helps someone.  If you have any additional errors please leave a comment and I will try to help.

If you like this article tell Google!!









Written by mattb in: Linux | Tags: , , , , , , , , , , , , , , , , , ,

No Comments »

RSS feed for comments on this post. TrackBack URL

Leave a comment