[HOWTO] Install Linux Kernel 2.6.36 or 2.6.37 in Debian Squeeze Testing or Ubuntu or any Debian based distribution without compiling

I have recently installed Debian Squeeze Testing and since I recently moved from Ubuntu 10.10 Maverick Meerkat (which has 2.6.35), I wanted to install it in my Debian Squeeze (which has 2.6.32). However, compiling kernel is time consuming and tiresome, I decided to use the Ubuntu Kernel Mainline PPA like I always do. I navigated to the latest 2.6.37 directory (which is v2.6.37-rc1-maverick as of today) and downloaded the following files:
linux-headers-XXXXXX_all.deb
linux-headers-XXXXXX_i386.deb (if you have 64bit, choose amd64 version)
linux-image-XXXXXX_i386.deb (if you have 64bit, choose amd64 version)
Also, if you are not using Ubuntu, you may need to download wireless crda package from maverick packages.
After downloading, install in the following order (using dpkg or gdebi):
wireless-crda
linux-headers-XXXXXX_all.deb
linux-headers-XXXXXX_i386.deb (if you have 64bit, choose amd64 version)
linux-image-XXXXXX_i386.deb (if you have 64bit, choose amd64 version)

Now, reboot and you should get booted into a new kernel. If you have problems booting into the new kernel, simply boot into the old kernel and remove it via package manager.

  • herbie643

    Great instructions. I too am running Squeeze. Following your instructions, perfect. No errors.

  • buba

    yea great. thanks for this tutorial I was serching about this 😉

  • Notice that this is not officialy supported kernel therefore you might run into issues with Virtualization and Hardware Acceleration …

    • Just anecdotal thing here: Virtualbox worked fine with new kernel and so did my Intel graphics. I don’t know about other virtualization environments or Nvidia/ATI cards.

  • Deb

    What you are doing is a little weird and generally a bad idea / unnecessarily complicated and error prone

    so the easy way would be to add the experimental repository and let your package manager do the work. see the following link
    http://jaqque.sbih.org/kplug/apt-pinning.html

    then you can simply do
    aptitude install -t experimental linux-image-2.6.37-rc5-amd64

  • Masoud

    hi. can you help me with this error?!!

    $ sudo dpkg -i linux-headers-2.6.37-020637-generic_2.6.37-020637.201101050908_amd64.deb
    Selecting previously unselected package linux-headers-2.6.37-020637-generic.
    (Reading database … 201627 files and directories currently installed.)
    Unpacking linux-headers-2.6.37-020637-generic (from linux-headers-2.6.37-020637-generic_2.6.37-020637.201101050908_amd64.deb) …
    Setting up linux-headers-2.6.37-020637-generic (2.6.37-020637.201101050908) …
    Examining /etc/kernel/header_postinst.d.
    run-parts: executing /etc/kernel/header_postinst.d/dkms 2.6.37-020637-generic /boot/vmlinuz-2.6.37-020637-generic
    dkms.conf: Error! No ‘BUILT_MODULE_NAME’ directive specified for record #0.
    Error! Bad conf file.
    File:
    does not represent a valid dkms.conf file.