LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-19-2004, 11:05 PM   #1
rajoo_sh
LQ Newbie
 
Registered: Feb 2004
Location: New Delhi, India
Distribution: Redhat
Posts: 2

Rep: Reputation: 0
Kernel Upgrade and RPM Hell


-----------------------------------------------------------
HI!
I WANTED 2 UPGRADE MY KERNEL FROM 2.4.7-10 TO 2.6.0-1.104.
I GOT THE KERNEL IN A MAGZINE'S CD (PCQuest Feb. Edition)
I PUT THE CD, MOUNT THE DRIVE AND ISSUED THE COMMAND:
rpm -ivh kernel-2.6.0-1.104.i686.rpm
-----------------------------------------------------------



[root@linuxserver kernel]# rpm -ivh kernel-2.6.0-1.104.i686.rpm
error: failed dependencies:
module-init-tools is needed by kernel-2.6.0-1.104
mkinitrd >= 3.5.5 is needed by kernel-2.6.0-1.104
nfs-utils < 1.0.3 conflicts with kernel-2.6.0-1.104
e2fsprogs < 1.29 conflicts with kernel-2.6.0-1.104
procps < 2.0.9 conflicts with kernel-2.6.0-1.104
initscripts < 7.23 conflicts with kernel-2.6.0-1.104
dev < 3.2-7 conflicts with kernel-2.6.0-1.104
iptables < 1.2.5-3 conflicts with kernel-2.6.0-1.104
bcm5820 < 1.81 conflicts with kernel-2.6.0-1.104
SysVinit < 2.84-13 conflicts with kernel-2.6.0-1.104
pam < 0.75-48 conflicts with kernel-2.6.0-1.104
vixie-cron < 3.0.1-73 conflicts with kernel-2.6.0-1.104




------------------------------------------------------------------
I IMMEDIATELY CAME 2 KNOW THAT I'M IN THE HELL OF RPM.
NewAYs, SINCE I WANTED TO UPGARDE I DECIDED TO DOWNLOAD EVERYTHING
IT NEEDED AND CONFLICTED WITH. I DOWNLOADED ABOVE MENTIONED RPMS &
INSTALLED THEM EXCEPT bc5820 >= 1.81 WHICH I COULDN'T FIND ON NET.
I'M GIVING U WHATEVER I DID ON KONSOLE, I TRIED TO INSTALL
modutils-2.4.25-10.i386.rpm IT RAISED AN ERROR: failed dependencies:
GLIBC_2.3 is needed by modutils-2.4.25-10, THEN I INSTALLED
glibc-common-2.3.2-4.80.8.i386.rpm AND glibc-2.3.2-4.80.8.i386.rpm
BOTH. I EVEN INSTALLED mount-2.11y-9.i386.rpm,
AFTER INSTALLING EVERYTHING EXCEPT bc5820 >= 1.81; I INSTALLED
THE kernel: rpm -ivh --nodeps --force kernel-2.6.0-1.104.i686.rpm
REBOOTED MY MACHINE AND GOT STUCK:
------------------------------------------------------------------

VFS: Cannot open root device "LABEL=/" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic: VFS: unable to mount root fs on unknown-block(0,0)

-------------------------------------------
I RESTARTED MY COMP WITH KERNEL 2.4.7-10
FOUND /etc/grub.conf AS:
-------------------------------------------

#grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/hda5
# initrd /initrd-version.img

#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz
password --md5 $1$BYSt$OlwsEfYfByGY7eJgzAcgY/
title Red Hat Linux (2.6.0-1.104)
root (hd0,2)
kernel /vmlinuz-2.6.0-1.104 ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.6.0-1.104.img
title Red Hat Linux (2.4.7-10)
root (hd0,2)
kernel /vmlinuz-2.4.7-10 ro root=/dev/hda5 hdd=ide-scsi
initrd /initrd-2.4.7-10.img
title Windows 2000 Server
rootnoverify (hd0,0)
chainloader +1

------------------------
THEN I CHANGED IT AS:
------------------------

#grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/hda5
# initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz
password --md5 $1$BYSt$OlwsEfYfByGY7eJgzAcgY/
title Red Hat Linux (2.6.0-1.104)
root (hd0,2)
kernel /vmlinuz-2.6.0-1.104 ro root=/dev/hda5 hdd=ide-scsi
initrd /initrd-2.6.0-1.104.img
title Red Hat Linux (2.4.7-10)
root (hd0,2)
kernel /vmlinuz-2.4.7-10 ro root=/dev/hda5 hdd=ide-scsi
initrd /initrd-2.4.7-10.img
title Windows 2000 Server
rootnoverify (hd0,0)
chainloader +1

-------------------------------------------------------------------
RESTARTED THE COMP WITH KERNEL 2.6 AND GOT FEW ERRORS BUT SUCCESSED
-------------------------------------------------------------------

Unmounting initrd: umount: /initrd: device is busy
[FAILED]

Initializing USB controller (usb_uhci): FATAL: MODULE usb_uhci not found
[FAILED]

Initializing USB keyboard: Module keybdev not found
[FAILED]

Initializing USB mouse: FATAL: Module mousedev not found
[FAILED]


----------------------------------------------------------------
TRIED TO START Xwindow (KDE), startx, got this message while
initializing peripherals:
----------------------------------------------------------------

Xwindow:
Sound server informational message:
Error while initializing the sound driver.
device /dev/dsp can't be opened (No such device)
The sound server will continue, using the null output device.

----------------------------------------------------------
TRIED TO RUN sndconfig GOT THIS MESSAGE:
----------------------------------------------------------

sndConfig:
you don't seem to be running a kernel with modular sound enabled. (soundcore.o was not found in the module search path).
To use sndconfig, you must be running a kernel with modular sound, such as the kernel shepped with Red Hat Linux or a 2.2 or greater kernel




------------------------------------------------------
FOLLOWING IS WHAT I DID TO INSTALL IT:
------------------------------------------------------
[root@linuxserver kernel]# rpm -q modutils
modutils-2.4.6-4
[root@linuxserver kernel]# rpm -ivh modutils-2.4.25-10.i386.rpm
error: failed dependencies:
libc.so.6(GLIBC_2.3) is needed by modutils-2.4.25-10
[root@linuxserver glibc-2.3]# rpm -q glibc-common
glibc-common-2.2.4-13

[root@linuxserver glibc-2.3]# rpm -q glibc-common
glibc-common-2.2.4-13
[root@linuxserver glibc-2.3]# rpm -ivh glibc-common-2.3.2-4.80.8.i386.rpm
error: failed dependencies:
rpmlib(PartialHardlinkSets) <= 4.0.4-1 is needed by glibc-common-2.3.2-4.80.8
glibc < 2.3.2 conflicts with glibc-common-2.3.2-4.80.8
[root@linuxserver glibc-2.3]# rpm -Uvh glibc-common-2.3.2-4.80.8.i386.rpm
error: failed dependencies:
rpmlib(PartialHardlinkSets) <= 4.0.4-1 is needed by glibc-common-2.3.2-4.80.8
glibc < 2.3.2 conflicts with glibc-common-2.3.2-4.80.8
glibc-common = 2.2.4-13 is needed by glibc-2.2.4-13
[root@linuxserver glibc-2.3]# rpm -Uvh --nodeps --force glibc-common-2.3.2-4.80.8.i386.rpm
Preparing... ########################################### [100%]
1:glibc-common ########################################### [100%]
[root@linuxserver glibc-2.3]# rpm -q glibc
glibc-2.2.4-13
[root@linuxserver glibc-2.3]# rpm -Uvh glibc-2.3.2-4.80.8.i386.rpm

[root@linuxserver glibc-2.3]# rpm -ivh glibc-2.3.2-4.80.8.i386.rpm
error: failed dependencies:
glibc < 2.3.2 conflicts with glibc-common-2.3.2-4.80.8
[root@linuxserver glibc-2.3]# rpm -Uvh glibc-2.3.2-4.80.8.i386.rpm
error: failed dependencies:
glibc = 2.2.4 is needed by glibc-devel-2.2.4-13
[root@linuxserver glibc-2.3]# rpm -Uvh --nodeps --force glibc-2.3.2-4.80.8.i386.rpm
Preparing... ########################################### [100%]
1:glibc ########################################### [100%]
warning: /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnew
Stopping sshd:[ OK ]
Starting sshd:[ OK ]

[root@linuxserver kernel]# rpm -q modutils
modutils-2.4.6-4
[root@linuxserver kernel]# rpm -Uvh modutils-2.4.25-10.i386.rpm
Preparing... ########################################### [100%]
1:modutils ########################################### [100%]

[root@linuxserver kernel]# rpm -q mkinitrd
mkinitrd-3.2.6-1

[root@linuxserver kernel]# rpm -ivh mkinitrd-3.5.16.1-1.i386.rpm
error: failed dependencies:
lvm is needed by mkinitrd-3.5.16.1-1
lvm2 is needed by mkinitrd-3.5.16.1-1

[root@linuxserver kernel]# rpm -q lvm
package lvm is not installed
[root@linuxserver kernel]# rpm -q lvm2
package lvm2 is not installed
[root@linuxserver kernel]# rpm -ivh lvm-1.0.3-17.i386.rpm
error: failed dependencies:
rpmlib(PartialHardlinkSets) <= 4.0.4-1 is needed by lvm-1.0.3-17
[root@linuxserver kernel]# rpm -ivh --nodeps --force lvm-1.0.3-17.i386.rpm
Preparing... ########################################### [100%]
1:lvm ########################################### [100%]

[root@linuxserver kernel]# rpm -ivh lvm2-2.00.08-2.i386.rpm
error: failed dependencies:
libdevmapper.so.1.00 is needed by lvm2-2.00.08-2
libdevmapper.so.1.00(Base) is needed by lvm2-2.00.08-2
[root@linuxserver kernel]# rpm -ivh --nodeps --force lvm2-2.00.08-2.i386.rpm
Preparing... ########################################### [100%]
1:lvm2 ########################################### [100%]

[root@linuxserver kernel]# rpm -Uvh mkinitrd-3.5.16.1-1.i386.rpm
Preparing... ########################################### [100%]
1:mkinitrd ########################################### [100%]
[root@linuxserver kernel]# rpm -ivh kernel-2.6.0-1.104.i686.rpm
error: failed dependencies:
nfs-utils < 1.0.3 conflicts with kernel-2.6.0-1.104
e2fsprogs < 1.29 conflicts with kernel-2.6.0-1.104
procps < 2.0.9 conflicts with kernel-2.6.0-1.104
initscripts < 7.23 conflicts with kernel-2.6.0-1.104
dev < 3.2-7 conflicts with kernel-2.6.0-1.104
iptables < 1.2.5-3 conflicts with kernel-2.6.0-1.104
bcm5820 < 1.81 conflicts with kernel-2.6.0-1.104
SysVinit < 2.84-13 conflicts with kernel-2.6.0-1.104
pam < 0.75-48 conflicts with kernel-2.6.0-1.104
vixie-cron < 3.0.1-73 conflicts with kernel-2.6.0-1.104

[root@linuxserver kernel]# rpm -q nfs-utils
nfs-utils-0.3.1-13
[root@linuxserver kernel]# rpm -Uvh nfs-utils-1.0.5-1.i386.rpm
Preparing... ########################################### [100%]
1:nfs-utils ########################################### [100%]

error: failed dependencies:
e2fsprogs < 1.29 conflicts with kernel-2.6.0-1.104
procps < 2.0.9 conflicts with kernel-2.6.0-1.104
initscripts < 7.23 conflicts with kernel-2.6.0-1.104
dev < 3.2-7 conflicts with kernel-2.6.0-1.104
iptables < 1.2.5-3 conflicts with kernel-2.6.0-1.104
bcm5820 < 1.81 conflicts with kernel-2.6.0-1.104
SysVinit < 2.84-13 conflicts with kernel-2.6.0-1.104
pam < 0.75-48 conflicts with kernel-2.6.0-1.104
vixie-cron < 3.0.1-73 conflicts with kernel-2.6.0-1.104


------------------------------
I INSTALLED EVERYTHING IT REQUIRED/CONFLICTED AND FINALLY:
------------------------------
[root@linuxserver kernel]# rpm -ivh --nodeps --force kernel-2.6.0-1.104.i686.rpm
 
Old 02-19-2004, 11:11 PM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Could've just download the source from kernel.org, do a little research on how to get 2.6 to work perfectly in redhat, then compile and install it manually.
 
Old 02-20-2004, 11:07 PM   #3
rajoo_sh
LQ Newbie
 
Registered: Feb 2004
Location: New Delhi, India
Distribution: Redhat
Posts: 2

Original Poster
Rep: Reputation: 0
Hi Demonbane!
I've never done this job earlier of downloading the source code and compiling it. finding and downloading the code is not a problem but compiling.
kindly tell me how can i do that so it should work on my distro (RHL 7.2, kernel 2.4.7-10)
 
Old 02-20-2004, 11:37 PM   #4
weng
Member
 
Registered: Dec 2003
Distribution: RedHat 9.0 & XP Pro
Posts: 30

Rep: Reputation: 15
Hi, I got a new hard disk and now dualbooting Redhat 9 with Windows XP. I thought of updating my RH w/o downloading the stuff via my 56k modem at home, so I went to a cybercafe and grab all those stuff so I could rpm -Fvh the rest. I then came across an article, not sure where, but damn sure it's from RedHat themselves, and it said that upgrading the kernel is a bit more tricky than upgrading the other packages as doing rpm -ivh (or -Fvh) would not only accomplish anything but cause problems. So the safe way is either compile your own kernel, or upgrade your kernel via RedHat's Upgrade shortcut on your menu.

Goodluck
 
Old 02-21-2004, 02:27 AM   #5
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
here's a good guide:
http://thomer.com/linux/migrate-to-2.6.html

I'll give you a rundown on compiling, the way I do it anyway.

1. get the tarball from kernel.org

2. untar it in /usr/src (so its in some like /usr/src/linux-2.6.3)

3. cd to /usr/src/linux-2.6.3 and do a "make menuconfig" to configure it ( i dont like other
methods) If you're unsure whether or not to include certain options, then make it a module, only deselect the ones you're absolutely sure you don't need.

4. After its done edit Makefile and add something to "EXTRAVERSION =", so if you add "EXTRAVERSION = -mykernel", your kernel version wil become 2.6.3-mykernel, its optional.

5.make && make modules_install

6. copy arch/i386/boot/bzImage to /boot, rename it something meaningful like /boot/vmlinuz-2.6.3-mykernel

7. copy System.map and .config to /boot and append kernel version, eg /boot/System.map-2.6.3-mykernel /boot/config-2.6.3-mykernel (remove the dot in .config)

8. mkinitrd (make sure you have the latest version) if you havent compiled filesystem/ide chipset support into the kernel.

9. update grub/lilo.conf and reboot

10. if everything's fine link the source directory to /usr/src/linux and do a "make clean". If not boot back to your old kernel and, reconfigure the source and try again, it'll recompile a lot quicker before you do "make clean".

Last edited by Demonbane; 02-21-2004 at 02:30 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
core 3, where the hell is the kernel source rpm ? Biased turkey Fedora - Installation 2 02-18-2005 08:39 AM
RPM database after kernel upgrade maenho Linux - Software 0 05-13-2004 02:05 AM
Newbie Kernel upgrade ? & up2date rpm hell lsgko Linux - Newbie 2 08-06-2003 06:59 PM
Kernel Upgrade via RPM jvreeland Linux - Software 5 04-03-2003 01:27 AM
kernel upgrade - which rpm? burningodzilla Linux - General 2 04-05-2002 01:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration