LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-23-2010, 05:34 PM   #1
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Rep: Reputation: 35
Question [9.10] Kernel upgraded, but won't install headers?


Hello

I'd like to upgrade a live ISO file before burning a new CD.

So, following the instructions in "How to Customise the Ubuntu Desktop CD", I chrooted to the squashfs and ran "apt-get update/upgrade/dist-upgrade", expecting apt-get to upgrade the chroot kernel... only to find out that apparently, even when being chrooted, this command upgrades the actual kernel. I guess it makes sense, but I was under the - wrong - impression that chroot would build a filesystem totally isolated from the underneath host.

So I rebooted to use this new kernel:

Code:
# uname -r
2.6.32-24-generic
Next, since the Nouveau video driver requires the kernel header files, I ran the following:

Code:
# apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package linux-headers-2.6.32-24-generic
According to this link, 2.6.32-24 is apparenty only available for Ubuntu 10.04, ie. Lucid.

I don't understand why apt-get upgrades the kernel but won't install its header files. Can an expert shed some light?

Thank you.
 
Old 08-23-2010, 05:53 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
What's in /etc/apt/sources.list?
 
Old 08-24-2010, 05:07 AM   #3
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Original Poster
Rep: Reputation: 35
Here it is: http://pastebin.com/gC9CU9Ct

Incidently, the host is running 10.04, while the ISO image to which I chrooted is 9.10, so I guess I should update the local "etc/apt/sources.list" so that it can find packages for both versions?

Thank you.
 
Old 08-24-2010, 06:50 AM   #4
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Original Poster
Rep: Reputation: 35
I got it:

1. The underlying host is running Ubuntu 10.04, while the ISO image is running 9.10

2. I'm not sure when I ran "apt-get update/upgrade/dist-upgrade", but logically, it was before chrooting to the ISO, which means that I got the latest kernel for 10.04, which looks like it has a higher version number than what's available for 9.10

3. After chrooting, /etc/apt/sources.list lists depots for 9.10

4. When I ran "apt-get install linux-headers-$(uname -r)", it couldn't find it because it's trying to connect to the 9.10 depot instead of the 10.04

I'm surprised that Ubuntu would provide different versions of the Linux kernel depending on the distribution number. Is it because of some dependencies?

Is it OK to edit 9.10's /etc/atp/sources.list so that it would include the 10.04 depots, or is it asking for trouble? If the latter, is the right way to download the latest kernel + initrd manually for 9.10 and manually add it to the chroot tree before creating a new ISO?

Thank you.
 
  


Reply



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
Upgraded to Athlon 64 X2. Which kernel should I install? MegaSvensk Ubuntu 2 10-24-2007 06:05 PM
install new kernel headers cyb0rg777 Slackware 4 04-04-2007 11:21 AM
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 09:17 AM
How to install upgraded/fixed kernel? FlyingMoose Debian 5 01-07-2004 01:16 PM
How do I install kernel headers jsurgeson Linux - Newbie 4 03-27-2002 05:01 AM

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

All times are GMT -5. The time now is 05:19 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