Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! probe's Avatar
    Join Date
    Oct 2009
    Belgrade, Serbia

    Problem to install Linux headers

    Hi all,

    I have ubuntu 9.04

    I have compiled kernel 2.6.32 and I compiled it from some directory other than /usr/src,
    for example /home/user/active_kernel/

    I run these commands to compile kernel >(after setting .config file with make menuconfig)

    make modules_install
    make install

    Everything worked fine, system boots. Now I wanted to install nvidia drivers and it wants kernel headers, so I looked how to install kernel headers and I found this:

    sudo apt-get install linux-headers-$(uname -r)

    But when I run this I get:

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Couldn't find package linux-headers-2.6.32

    When I run 'uname -r' I get

    I know that linux headers contain definitions for linux kernel files, so what is the procedure to install them for specific kernel version ? Can it be done off line, download headers and install manually ??


  2. #2
    Linux Newbie ursusca's Avatar
    Join Date
    Dec 2008
    The header files define structures and constants that are needed for building most standard programs. The header files are also needed for rebuilding the kernel. So if you already compiled and installed your new kernel it means your header is /home/user/active_kernel/. Try to move/copy it to /usr/src or to create a symlink.

  3. #3
    Just Joined! probe's Avatar
    Join Date
    Oct 2009
    Belgrade, Serbia
    You are 100% right, I came to same conclusion today

    regards !

  4. $spacer_open

Posting Permissions

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