[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 603
  • Last Modified:

Upgrade Fedora Core 4 to 5 ...

I followed the steps from http://www.brandonhutchinson.com/Upgrading_Red_Hat_Linux_with_yum.html and I got stuck.

1. download...
# rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/os/Fedora/RPMS/fedora-release-5-5.noarch.rpm 

2. Upgrade to Fedora Core 5.
# yum -y upgrade

Then failed ...
=========================================================================
The following is the suggestion if the yum failed to upgrade.

If this step fails, I recommend running the following command to capture all screen output to /tmp/yum_upgrade.

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

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

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.
======================================================================
But I don't know what to do :(

The following is the output for the yum_upgrade:

[root@localhost tmp]# perl -ne 'print "$1\n" if ((/Error: Missing Dependency:.*i s needed by package (.*)$/) || (/Error: Package (.*?) needs.*, this is not avail able./))' /tmp/yum_upgrade | sort | uniq
evolution
evolution-connector
evolution-webcal
gnome-panel
hpoj-devel
iiimf-le-sun-thai
iiimf-qt
initscripts
kudzu
lvm2-cluster
perl-RPM2

Thanks for reading ...
Please help!
0
htam2000
Asked:
htam2000
  • 5
  • 4
  • 3
2 Solutions
 
rindiCommented:
You can try removing those apps above using yum, then try the upgrade again. After that try reinstalling them. Make sure you have a backup, particularly if you actively use those apps.

yum remove evolution

etc etc etc
0
 
nedvisCommented:
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.
And that's why I choose clean Fedora 5 install , not an upgrade path.
You have to spent insane number of hours trying to analyse what FC 4 packages are deprecated, unsupported etc.
just to uninstall them and ( eventually) have clean FC4 system upgradeable to FC5. Just to much hassle !
Remember it's Fedora (test-bed distro) and not RedHat ( thoroughly tested and enterprise grade linux ).
I would just download first two Fedora Core 5 CD and install it while removing FC4   /   (root) partition and preserving  existing   /home partition.

nedvis
0
 
htam2000Author Commented:
After yum remove ... I cannot reboot the system.

It showed
/bin/sh: ro: No such file or directory
Kernel panic - not syncing: Attempted to kill init!

What should I do now?
0
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 
rindiCommented:
Restore the backup and then only remove one app at a time, until we know which app is responsible when removed for the system not booting. Or follow nedvis' advice doing a clean install.
0
 
htam2000Author Commented:
Hi rindi.

Would you mind telling how to restore the backup?

Thanks
0
 
rindiCommented:
It depends what you used to backup. I usually use partimage to make an image of all the partitions. Then I just replay those images. To do that I use a liveCD like knoppix which includes partimage.
0
 
htam2000Author Commented:
But I can even boot up the box, how can I do the back up?
0
 
rindiCommented:
As I mentioned in my first post, You should have done the backup before. And with a LiveCD you can allways boot the box. I do the backup using partimage (by booting knoppix), too.
0
 
nedvisCommented:
I'm affraid you'll have to  elect CLEAN INSTALL PATH ( not upgrade from FC4 to FC5).
The reason I'm telling that is  If you failed to UNINSTALL Fedora Core 4 kernel ( number less than  2.6.14 ) before running yum -y upgrade initscripts  and other packages will conflict and prevent upgrade .
Kernel panic - not syncing: Attempted to kill init!  error message is sign that something vent really bad and I would say it has something to do with initscripts and LVM2 ( cluster extenstions for userland logical volume management tools ) What your error message really means you might wish to decypher by using grep /usr/src/linux-2.x. but
you wont be able to REPAIR your Fedora Core 4 installation - unfortunately.

As I said before you would be better installing Fedora Core 5 over existing FC installation.
Or if you really want to preserve your data ( usually stored in /home ) you can reinstall  FC4 .
Delete all partitions and only save  /home . Even that can be very questionable solution since I don't know what
installation type you choose before ( server , workstation, personal computer, development system etc.  )   since different installation methods create different partition layout in FC 4 so your data are at risk if you don't really know whether your /home  is on separate partition or just subfolder within   /   ( system root partition) .


nedvis
0
 
htam2000Author Commented:
Hi nedvis,

I am afraid after having a fresh intallaltion of FC5, I would not able to boot the WinXP. Because my box has two OSs installed and used grub bootloader to boot the system. If I reinstall the FC5 now, then I will lose this file (/boot/grub/grub.conf). I don't have this backup file :(
0
 
rindiCommented:
Use knoppix or another livecd to copy this file to some other place.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 5
  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now