Yum upgrade from FC4 to FC5
From MyWiki
It seems to accomplish this upgrade you need to take two steps. First, upgrade FC4 to FC5. Then upgrade from FC5 to FC6.
Contents |
Prerequisites
- Before upgrading update your kernel.
$ yum install kernel
- Make sure you have the latest kernel ABOVE 2.6.14 and uninstall all kernel versions before it; otherwise initscripts and a few other packages will conflict and prevent the upgrade. Use something like the command below
$ yum list installed | grep kernel $ yum remove kernel-2.6.14*
Procedure
- Clear the yum cache:
$ yum clean all
- Install fedora-release in the Fedora Core 5 version. Check our mirror sites for a faster download.
$ rpm -Uhv http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/os/Fedora/RPMS/fedora-release-5-5.noarch.rpm
- Update your system
$ yum upgrade
- Check /etc/grub.conf to make sure the system will reboot to the new FC5 kernel. The first kernel listed is the kernel to be booted, if default is set to 0. The default setting is an index for the entry to boot (starting at 0).
- Note: I had bad things happen when booting into the smp kernel. Doctor, doctor, it hurts when I do that.
title Fedora Core (2.6.20-1.2320.fc5)
root (hd0,0)
kernel /vmlinuz-2.6.20-1.2320.fc5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.20-1.2320.fc5.img
- Reboot.
$ reboot
- After the reboot, remove the fc4 kernel
rpm -e `rpm -qa|grep kernel|grep fc4` <-- or something similar rpm -e `rpm -qa|grep kernel|grep smp` <-- or something similar
- Check /etc/grub.conf again to make sure it's still ok
- And clean up the yum cache
$ yum clean all
- Update mywiki page VM_Servers
Troubleshooting
Possible problem with the Fedora repository.
- During any part of interacting with the Fedora repository, you might see messages like the following:
filelists.xml.gz 100% |=========================| 2.8 MB 00:54 updates : ################################################## 1292/1292 Added 1292 new packages, deleted 0 old in 28.32 seconds filelists.xml.gz 100% |=========================| 4.7 MB 00:00 http://mirror.steadfast.net/fedora/extras/6/i386/repodata/ filelists.xml.gz: [Errno -1] Metadata file does not match checksum Trying other mirror. http://www.gtlib.cc.gatech.edu/pub/fedora.redhat/linux/extras/6/i386/ repodata/filelists.xml.gz: [Errno 12] Timeout: <urlopen error timed out> Trying other mirror. filelists.xml.gz 100% |=========================| 4.7 MB 00:03 http://redhat.download.fedoraproject.org/pub/fedora/linux/extras/6/ i386/repodata/filelists.xml.gz: [Errno -1] Metadata file does not match checksum Trying other mirror. filelists.xml.gz 100% |=========================| 4.7 MB 00:03 http://download.fedora.redhat.com/pub/fedora/linux/extras/6/i386/ repodata/filelists.xml.gz: [Errno -1] Metadata file does not match checksum Trying other mirror. filelists.xml.gz 100% |=========================| 4.7 MB 03:05 http://mirror.linux.duke.edu/pub/fedora/linux/extras/6/i386/repodata/ filelists.xml.gz: [Errno -1] Metadata file does not match checksum Trying other mirror. filelists.xml.gz 100% |=========================| 4.7 MB 00:38 ftp://mirror.newnanutilities.org/pub/fedora/linux/extras/6/i386/ repodata/filelists.xml.gz: [Errno -1] Metadata file does not match checksum Trying other mirror. Error: failure: repodata/filelists.xml.gz from extras: [Errno 256] No more mirrors to try.
- This seems to be an intermittent problem with the repository itself. If the process completely stops, just try rerunning the command.
Possible driver problems with FC5:
- On reboot to FC5 there have been some problems with the kernel complaining about disk drivers. This was a problem also seen when doing an install of FC5 on a new VM. For some reason, it seems that FC5 has trouble recognizing the VMware disk driver. During the normal install (i.e. using a bootdisk and the install script) one would simply add the driver that VMware emulates. This can’t be done simply when doing the yum upgrade. However, it seems that if you just ignore this complaint and continue with the upgrade to FC6 things work fine. This problem does not seem to occur with FC6.
Yum problems after upgrade
I got:
# yum clean all There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: /usr/lib/python2.4/site-packages/libxml2mod.so: undefined symbol: xmlTextReaderSchemaValidateCtxt Please install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is: 2.4.3 (#1, Oct 23 2006, 14:19:47) [GCC 4.1.1 20060525 (Red Hat 4.1.1-1)] If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq
Installing libxml by hand (can't use yum to install it!) per this message fixed the problem.
