LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 02-14-2005, 11:41 AM   #1
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
urpmi updated kernel source but not the kernel itself(??)


Hello,

I just ran urpmi --auto-select on my mandrake 10.1 official system. It updated a load of packages, including, I noticed, the kernel source.

After a reboot, I was surprised to find the nvidia drivers still working (I didn't think they'd like a kernel upgrade).

My kernel was 2.6.8.1-12mdk. I used to have a directory in /usr/src called linux-2.6.8.1-12mdk but that has now been replaced by linux-2.6.8.1-24mdk.
uname still reports my kernel as 2.6.8.1-12mdk. This seems to me to be a potentially serious inconsistency.

Should I be worried?
What should I do?
Why did urpmi do this to me?

Thanks.
 
Old 02-14-2005, 11:48 AM   #2
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
That's a feature not a bug.
"urpmi --auto-select" replaces installed rpm's and with something as important as the kernel you don't
want that to happen. If the replaced kernel is buggy for some reason (or doesn't have the NVIDIA module *grin*) you're in dire straits.

I think the agreed upon way is to download the kernel manually and do a 'rpm -i kernel....rpm'
This way if the new kernel doesn't work you still have the old one intact.

- Peder
 
Old 02-14-2005, 12:09 PM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Original Poster
Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Peder,

Thank you for your fast response!

It may be a "feature" but I wish I had had the opportunity to tell urpmi NOT to update the kernel!

So I suppose I'll have to find the rpm for mandrake kernel 2.6.8.1-24 and install that manually? My heart is sinking. Or perhaps I should bite the bullet and compile it myself? Now I am having a minor panic. I wish I had not got into this mess!

Can i just resinstall the 2.6.8.1-12 sources, so there is consistency between what is running and the sources? I have no complaints about 2.6.8.1-12.
 
Old 02-14-2005, 12:56 PM   #4
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
just go to the command line and enter "urpmi kernel". It will display a list of available kernels to install. Just pick the "linux-2.6.8.1-24.mdk" kernel, and let it install. After a reboot, you will be in the new kernel. You will find your old kernel is still there to use, as well, if the new one doesn't work for you (although it should be fine - it's what I'm running).
 
Old 02-15-2005, 01:01 AM   #5
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
You don't need the sources unless you want to compile your own kernel or compile an external module
(NVIDIA, ivtv et.al.) to that kernel.

- Peder
 
Old 02-15-2005, 02:27 AM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Original Poster
Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Thank you both.

The problem is solved:

Between posts I took your advice and installed the rpm of the 2.6.8.1-24 kernel. When it finished downloading and "installing" I was pleased to find I was still running the old 2.6.8.1-12 kernel, so I had a chance to look at the changes the installation made to /boot and /etc/lilo.conf.

In times past, I have found myself almost locked-out of my computer when I have introduced a new kernel, so I was highly suspicious. Anyway I rebooted to the new kernel. To my surprise, it all worked. Except the NVIDIA driver, but I do not see that as a problem, I just need to reinstall it. I have also automatically been given the option in lilo of returning to my old kernel. Thanks to someone.

In conclusion: It was not difficult. I feared things going wrong, but the linux distributions have improved enormously over the past few years, and I have to admit that I am impressed.
 
  


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
Don't want kernel-source in urpmi updates toes Mandriva 6 03-09-2005 08:03 PM
urpmi installs wrong kernel-source edgjerp Mandriva 4 02-14-2005 03:40 PM
where to download the mandrake kernel 2.6 source without urpmi msalimane Mandriva 1 12-25-2004 08:56 AM
Updated kernel-source but no kernel? craigl Mandriva 2 05-01-2004 11:32 AM
kernel-update, a success... BUT... couldn't boot from the updated-kernel Pisces107 Red Hat 7 12-17-2003 02:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:20 AM.

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
Open Source Consulting | Domain Registration