Announcement

Collapse
No announcement yet.

linux-headers (SOLVED)

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    linux-headers (SOLVED)

    Dear All,

    Yesterday I had notification from Adept Updater about new headers. I applied them, and after restart - just problems.
    I was installing from SVN and when I tried to

    make

    that's what came up:

    Code:
    rich@a:~/usb-rndis-lite$ make
    make -C /lib/modules/2.6.24-19-generic/build SUBDIRS=/home/rich/usb-rndis-lite modules
    make: *** /lib/modules/2.6.24-19-generic/build: No such file or directory. Stop.
    make: *** [default] Error 2
    I was sure problem is with SVN... so tried on anther program, and this came up:

    Code:
    rich@a:~/usb-rndis-lite$ make
    cd: 1: can't cd to /lib/modules/2.6.24-19-generic/build
    Makefile.inc:66: *** /lib/modules/2.6.24-19-generic/build is missing, please set KERNELPATH. Stop.
    Aptitude and apt-get was insisting on running 'autoremove' and removing previous headers, so I gave it a go... probably mistake

    I have build-essential to to newest version, so problem needs to be somewhere else. Maybe new headers are not linked in system? I mean old one are deleted, and system "doesn't know where new one's are"

    How+where to check it ?

    Can you advise what to do now ?

    Kubuntu Karmic Koala AMD64bit Acer Aspire 7520

    #2
    Re: linux-headers

    Is your system bootable?

    If not, try to reinstall GRUB or run a
    Code:
    sudo aptitude dist-upgrade
    What is exactly your problem?
    Check out my Ⓥegan youtube channel PlantSugar
    CV and gallery at grn.dk
    Please add [SOLVED] to topic subject when topic is solved.

    Comment


      #3
      Re: linux-headers

      Originally posted by gnowak
      What is exactly your problem?
      System is bootable, and most programs works OK.

      Problem is - I can't compile now programs because as soon as I hit MAKE this error comes up. I assume there is more complication, that I haven't found yet. I don't know how to restore old headers or check in system if new ones are correctly fit in.
      Kubuntu Karmic Koala AMD64bit Acer Aspire 7520

      Comment


        #4
        Re: linux-headers

        Why don't you install the headers from the repository - have you cooked your own kernel?
        Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

        Comment


          #5
          Re: linux-headers

          Originally posted by toad
          Why don't you install the headers from the repository - have you cooked your own kernel?
          I didn't make kernel.

          Gentlemans! I am total confused newbie - please spare me ;-)

          I just clicked OK when Adept wanted to upgrade headers... innocent thing.
          Now I don't know how to fix it. Can you guide ?
          Kubuntu Karmic Koala AMD64bit Acer Aspire 7520

          Comment


            #6
            Re: linux-headers

            No problem I am at least as confused as you are, but what the heck!

            You need to find out your current kernel by typing:

            Code:
            uname -r
            I've also got 8.04, so here is my output - yours may differ depending on your CPU:

            ingo@dicker:~/.scripts/python$ uname -r
            2.6.24-21-generic
            Now you have that info you can install the correct headers.

            If you want to have a look as to which headers are available in the repositories simply type "apt-cache search header|grep kernel". Of the output select those "linux-headers-..." which match your kernel exactly. In my case it would be linux-headers-2.6.24-21-generic

            To install I'd type

            Code:
            sudo apt-get install linux-headers-2.6.24-21-generic
            And there you are.

            I hope that helps - if you have any further questions just shout
            Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

            Comment


              #7
              Re: linux-headers

              Originally posted by toad
              I've also got 8.04, so here is my output - yours may differ depending on your CPU:
              ingo@dicker:~/.scripts/python$ uname -r
              2.6.24-21-generic
              That Rock's 8)

              At the moment my problem is gone. It seems that Adept "updated" headers, but not all of them or during update there was some problem, but now - like you told me - I have installed same headers, and make command works plus some of the rest problems are gone. Seems that I have overwritten old ones and filled up gaps.

              Thank you very much !
              Kubuntu Karmic Koala AMD64bit Acer Aspire 7520

              Comment


                #8
                Re: linux-headers

                You're welcome, keep on rocking
                Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

                Comment

                Working...
                X