Find the answer to your Linux question:
Results 1 to 3 of 3
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 ...
  1. #1
    Linux Newbie
    Join Date
    Nov 2007
    Posts
    127

    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.

  2. #2
    Linux Newbie JosePF's Avatar
    Join Date
    Jun 2010
    Posts
    225
    Hello,
    Please chroot and report:
    ls /boot

    Regards

  3. #3
    Linux Newbie
    Join Date
    Nov 2007
    Posts
    127
    Thanks, but when chrooted, there is no /boot since those files are on the CD while squashfs contains the root filesystem that is uncompressed in RAM.

    I think I found the cause: The underlying host is running Ubuntu 10.04 while the ISO is based on Ubuntu 9.10. I think I ran "apt-get update/upgrade/dist-upgrade" before chrooting, and the latest kernel that 10.04 offers has a higher version number than what's available for 9.10, which would explain the error I got above.

    I guess the solution, is to only run "apt-get update", and manually download vmlinuz/initrd.gl and copy them into the ISO file.

    Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...