linux headers not found

22,118

You could try downloading the relevant .deb file from https://launchpad.net/ubuntu/lucid/i386/linux-headers-2.6.32-34-generic-pae/2.6.32-34.77 and https://launchpad.net/ubuntu/lucid/i386/linux-headers-2.6.32-34/2.6.32-34.77:

wget http://launchpadlibrarian.net/79829520/linux-headers-2.6.32-34-generic-pae_2.6.32-34.77_i386.deb
wget http://launchpadlibrarian.net/79829514/linux-headers-2.6.32-34_2.6.32-34.77_all.deb

And then install using:

sudo dpkg --install linux-headers-2.6.32-34-generic-pae_2.6.32-34.77_i386.deb linux-headers-2.6.32-34_2.6.32-34.77_all.deb

But unless there's a specific reason you're still using an old PAE kernel on 12.04, I think you would be better off using a kernel that is packaged in 12.04. The upgrade to 12.04 should have installed a newer kernel. Perhaps you need to update your grub default, or manually select a different kernel during boot?

Share:
22,118

Related videos on Youtube

han
Author by

han

Updated on September 18, 2022

Comments

  • han
    han about 1 year

    I upgraded to ubuntu 12.04 and the x server is not running anymore.

    It turned out to be the nvidia driver, so I installed nvidia-current.

    Doing this I got an error message telling me that linux sources are not available.

    uname -r reports: 2.6.32-34-generic-pae

    So I tried: sudo apt-get install linux-headers-2.6.32.34-generic-pae

    But this package does not exist (anymore?)

    Can anybody help me to get the required sources?

  • Eliah Kagan
    Eliah Kagan over 11 years
    That package is also not available in Ubuntu 12.04 LTS. (Furthermore, installing the kernel headers with -generic-pae at the end is the right way to do it, since that will automatically pull in everything you need for building modules against the generic-pae kernel. The problem here is that this kernel version is not provided with Ubuntu 12.04 LTS at all -- it's from a previous Ubuntu release.)
  • han
    han over 11 years
    Thanks for your help. I upgraded 10.04 LTS to 12.04 LTS and landed in this situation. I have no idea why I am not running the new kernel. sudo apt-get install linux-image-generic-pae tells me that the package is already the newest version. So I need something to force that kernel to be used during boot. I'll dig into GRUB2 as you suggested. No idea yet what that is. So if you can point me to a clue ...
  • Eliah Kagan
    Eliah Kagan over 11 years
    @han What options do you have currently in your GRUB2 menu? (If the menu doesn't come up, press and hold the shift key while your machine boots.)
  • han
    han over 11 years
    As I cannot spare the time to dig into this, I created a backup of the essential information on the disk. Format and reinstall 10.04 LTS. At a later time I will retry upgrading to 12.04. Probably more luck then. Thanks for being helpful!