Operating System - Linux
1752632 Members
6007 Online
108788 Solutions
New Discussion юеВ

Re: Fedora core 4 to core 5 upgrade blues

 
Mel Burslan
Honored Contributor

Fedora core 4 to core 5 upgrade blues

I have recently decided to upgrade my old Fedora core 3 machine to core 5. Of course there was no straight transition, so I did the intermediary core 3 to 4 upgrade and it went fine. System booted without any hiccups.

uname -a
Linux host1.domain.com 2.6.16-1.2069_FC4 #1 Tue Mar 28 12:19:10 EST 2006 i686 i686 i386 GNU/Linux

when I wanted to upgrade from core 4 to 5, I followed the instructions on the same page that I followed for core 3 to 4 upgrade. But I am having problems.

The procedure I followed :

Download and install the Fedora Core 5
Example:
# rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/os/Fedora/RPMS/fedora-release-5-5.noarch.rpm

(which I did exactly)

yum upgrade 2>&1 | tee /tmp/yum_upgrade

at this point it bums out. And the troubleshootings says:

Failures generally indicate that a currently-installed RPM has a dependency that cannot be satisfied with packages from the new Fedora Core release. Deprecated packages and packages from third party repositories may cause this problem.

The following generates a list of packages that may need to be removed prior to a successful yum upgrade.
$ perl -ne 'print "$1\n" if ((/Error: Missing Dependency:.*is needed by package (.*)$/) || (/Error: Package (.*?) needs.*, this is not available./))' /tmp/yum_upgrade | sort | uniq


command above gives the following output:

hal
initscripts
kudzu

and troubleshooting text continues as follows:

If the initscripts package is returned, I recommend booting into the latest Fedora Core 4 kernel, removing all previous kernels, and running yum upgrade again.

I have included a reboot between old kernel removal and running yum upgrade. Here is my boot filesystem contents:

# ll /boot
total 5763
-rw-r--r-- 1 root root 63029 Mar 28 09:43 config-2.6.16-1.2069_FC4
-rw-r--r-- 1 root root 50929 Nov 2 2004 config-2.6.9-1.667
drwxr-xr-x 2 root root 1024 May 19 2005 grub
-rw-r--r-- 1 root root 1661220 Apr 12 18:05 initrd-2.6.16-1.2069_FC4.img
-rw-r--r-- 1 root root 968908 Dec 29 2004 initrd-2.6.9-1.667.img
drwx------ 2 root root 12288 Dec 29 2004 lost+found
-rw-r--r-- 1 root root 786855 Mar 28 09:43 System.map-2.6.16-1.2069_FC4
-rw-r--r-- 1 root root 714266 Nov 2 2004 System.map-2.6.9-1.667
-rw-r--r-- 1 root root 1598219 Mar 28 09:43 vmlinuz-2.6.16-1.2069_FC4


as you can see, there is only one kernel. Yet the yum upgrade fails with the same exact package names and I looked them up in the log file and this is what I got:

grep Error /tmp/yum_upgrade
Error: Bad repository file ///etc/yum.repos.d/dries.repo.
--> Processing Conflict: kudzu conflicts keError: Unable to satisfy dependenciesError: Package hal needs kernel < 2.6.11, this is not available.
Error: Package initscripts needs kernel < 2.6.12, this is not available.
Error: Package kudzu needs kernel < 2.6.13, this is not available.

do I need to downgrade my kernel version ? If so, how do I do it ? Or any other suggestions ??

As always, thanks in advance.
________________________________
UNIX because I majored in cryptology...
11 REPLIES 11
Stuart Browne
Honored Contributor

Re: Fedora core 4 to core 5 upgrade blues

What does 'rpm -qa "kernel*"' return?
One long-haired git at your service...
Huc_1
Honored Contributor

Re: Fedora core 4 to core 5 upgrade blues

I have now done 3 upgrade ... but I used the 5 cd from fedora to do this even so I had to clean /etc/yum.repos.d/
from all none "default fedora repo" *.repo
copy somewhere else atrpms.repo_keep
keep fedora-core.repo
keep fedora-development.repo
keep fedora-extras-development.repo
keep fedora-extras.repo
keep fedora-legacy.repo
keep fedora-updates.repo
keep fedora-updates-testing.repo
copy somewhere elselivna-devel.repo
copy somewhere elselivna.repo
copy somewhere else livna-testing.repo
copy somewhere else dries.repo

make sure that all that is left point to fedora core 5 not fedora core 4

then

# yum -y update


If this fails it may also be less painfull to apply upgrade from the 5 fedora core 5 cd

Keep us informed on progress.

Jean-Pierre
Smile I will feel the difference
Andrew Cowan
Honored Contributor

Re: Fedora core 4 to core 5 upgrade blues

FC5 has started to replace YUM and SYSTEM-UPGRADE-PACKAGES with PUP and PIRUP, and this causes problems when you first do any install from the base CD.

I have tried doing online updates in the way you describe and have found that, almost without exception you have to run the rpm -U several imes in order for it to resolve all the dependancies, and also that using the extra "--aid" flag can help.

I would still recommend that you download the ISO's to CD/DVD, and boot from it to do the upgrade, as this is must cleaner and easier.
Mel Burslan
Honored Contributor

Re: Fedora core 4 to core 5 upgrade blues

Stuart, here is the output you requested:

# rpm -qa "kernel*"
kernel-2.6.9-1.667
kernel-2.6.16-1.2069_FC4
#

Jean-Pierre, here is the screen capture from repos directory manipulations and subsequent attempt of yum -y update:

#cd /etc/yum.repos.d/
# ll
total 36
-rw-r--r-- 1 root root 10 Apr 12 17:58 dries.repo
-rw-r--r-- 1 root root 840 Mar 14 15:20 fedora-core.repo
-rw-r--r-- 1 root root 1549 Mar 14 15:20 fedora-development.repo
-rw-r--r-- 1 root root 780 Mar 14 15:20 fedora-extras-development.repo
-rw-r--r-- 1 root root 763 Mar 14 15:20 fedora-extras.repo
-rw-r--r-- 1 root root 486 Mar 14 15:20 fedora-legacy.repo
-rw-r--r-- 1 root root 790 Mar 14 15:20 fedora-updates.repo
-rw-r--r-- 1 root root 865 Mar 14 15:20 fedora-updates-testing.repo
# mv dries.repo ~mburslan
# ll
total 28
-rw-r--r-- 1 root root 840 Mar 14 15:20 fedora-core.repo
-rw-r--r-- 1 root root 1549 Mar 14 15:20 fedora-development.repo
-rw-r--r-- 1 root root 780 Mar 14 15:20 fedora-extras-development.repo
-rw-r--r-- 1 root root 763 Mar 14 15:20 fedora-extras.repo
-rw-r--r-- 1 root root 486 Mar 14 15:20 fedora-legacy.repo
-rw-r--r-- 1 root root 790 Mar 14 15:20 fedora-updates.repo
-rw-r--r-- 1 root root 865 Mar 14 15:20 fedora-updates-testing.repo
#yum -y update
Setting up Update Process
Setting up repositories
core 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 249 kB 00:07
updates : ################################################## 805/805
Added 284 new packages, deleted 0 old in 6.61 seconds
primary.xml.gz 100% |=========================| 1.0 MB 00:02
extras : ################################################## 2966/2966
Added 467 new packages, deleted 121 old in 14.78 seconds
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package expat.i386 0:1.95.8-8.2 set to be updated
---> Package tux.i386 0:3.2.18-4.2.1 set to be updated
...
...
long list of similar output lines deleted for space saving
...
...

and the process got hung for longer than 2 hours and I killed it.

Andrew, downloading ISO's and burning them to CDs to upgrade is always on my mind as a last resort. Right now, I am trying all possible non-hard-media involving ways.


Thanks all but I am still at a stand still. Any further advice is greatly appreciated.



________________________________
UNIX because I majored in cryptology...
Vitaly Karasik_1
Honored Contributor

Re: Fedora core 4 to core 5 upgrade blues

I'd like to suggest a "third way" - download all RPMs into some local directory and playing with "rpm -U" & "rpm -F" commands.
Steven E. Protter
Exalted Contributor

Re: Fedora core 4 to core 5 upgrade blues

Shalom,

I just did an upgrade within RH 4 from update2 to update3 with Vitaly's method.

It worked out relatively well.

I'd kind of back up my custom configuration at this point, install FC 5 and then reinstall applications and customizations.

Would you trust a system to do any serious work after what this one has been through? I would not.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Huc_1
Honored Contributor

Re: Fedora core 4 to core 5 upgrade blues

It will take a long time to do this Using yum, that is the way I did it I had to use ^C once or twice "this does no kill yum just make it look at next mirror... a rought way to make it skippe slow system', but got there in the end.

As I mention in previous note, I still thing that if this fails for you the best is to down load cd to do this, mind you you still have to yum -y update after that and that also will take a very long time !.

Downloading rpm localy has that advantage that you can use a system "nearby/fast" to do downloads, then install.. then a very last yum update for the very latest.

...SEP is also right that having had all theses hardship during upgrade , you should be carefull when you use this after that... probably lots of monitoring and tweaking will be needed.

my less then 2 Euro cent "advices/comment"

Jean-Pierre

Smile I will feel the difference
Mel Burslan
Honored Contributor

Re: Fedora core 4 to core 5 upgrade blues

Allright, I am willing to try Vitaly's suggestion but despite my googling, I could not find any details about how to proceed that way, i.e., how will I know what RPMs I need to download to a local directory and where to download them from ?
________________________________
UNIX because I majored in cryptology...
Vitaly Karasik_1
Honored Contributor

Re: Fedora core 4 to core 5 upgrade blues

You should download all RPMs from one of FC mirrors, for example http://mirrors.kernel.org/fedora/core/5/i386/os/Fedora/RPMS/