Announcement

Collapse
No announcement yet.

ENVY asking for linux headers

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

    ENVY asking for linux headers

    Hi all,
    I'm trying to my 7950's running with the proprietary drivers using ENVY. However ENVY says:

    Bad luck, the kernel headers for the target kernel version could not be found and you did not specify other kernel headers to use.

    I tried using:

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

    ...but that returns...

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


    What am I doing wrong? I've used Envy under Feisty with no problems before, Gutsy just won't play ball.

    Thanks.

    #2
    Re: ENVY asking for linux headers

    If this is an exact replica of your command:

    Code:
    sudo apt-get install linux-headers-$(uname -r)
    then it is not "well formed". It needs to be like this:
    Code:
    sudo apt-get install linux-headers-`uname -r`
    Are you using the latest version of Envy? I'm surprised that Envy didn't take care of this by itself.

    Try it the way I recommended -- let's see what happens.

    Comment


      #3
      Re: ENVY asking for linux headers

      'cause I'm curious, so ...

      If sudo apt-get install linux-headers-$(uname -r) is wrong, then how come it ultimately returned the error: E: Couldn't find package linux-headers-2.6.20-16-386 Apparently $(uname -r) in the package name is equivalent to `uname -r` or am I missing something here?
      Using Kubuntu Linux since March 23, 2007
      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

      Comment


        #4
        Re: ENVY asking for linux headers

        Well, that is odd, and I can't explain it, for sure. It appears that the system attempted to interpret the command, rather than simply reject it as invalid. Maybe the characters "$( )" are not illegal, and it went looking for such a kernel-headers package, and of course it didn't find one.

        If his kernel version is actually 2.6.20-16-386, and it actually can't be found by the package manager, then there's a whole different problem involved. But first I'd like to see the command issued correctly.

        Comment


          #5
          Re: ENVY asking for linux headers

          Just conducted a little test:
          Code:
          echo $(uname -r)
          Which returns:
          paul@paul-toshiba-laptop:~$ echo $(uname -r)
          2.6.20-16-generic
          Using Kubuntu Linux since March 23, 2007
          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

          Comment


            #6
            Re: ENVY asking for linux headers

            Hmmmmmmmmmmmmm.

            Well, perhaps (as in so many things Linux) that is another legal format for the command. It's not one I've seen recommended anywhere, but if if it works ......

            On the other hand, there's a keystroke to be saved by using `uname -r`, isn't there?

            Comment


              #7
              Re: ENVY asking for linux headers

              $(foo) is intercepted by the shell and expanded.
              `foo` is equivalent to $(foo) (and the `foo` form is deprecated and should be avoided).

              The problem is that the package just isn't there. The 2.6.20 kernel packages have been removed from the repositories. The solution is to install a newer kernel.
              (In fact, the only kernel header packages available are 2.6.22-13-* and 2.6.22-14-* (and some miscellaneous Xen kernel headers).)
              For external use only.

              Comment


                #8
                Re: ENVY asking for linux headers

                Aha!

                Well, thank you SheeEttin -- I learned something tonight!

                Comment


                  #9
                  Re: ENVY asking for linux headers

                  Originally posted by SheeEttin
                  The solution is to install a newer kernel.
                  Is this analogous to installing a 'newer version' of *ubuntu - i.e., Gutsy? Running Feisty, the kernel version (which is up to date) is 2.6.20-16-generic
                  Using Kubuntu Linux since March 23, 2007
                  "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                  Comment


                    #10
                    Re: ENVY asking for linux headers

                    Originally posted by dibl
                    If this is an exact replica of your command:

                    Code:
                    sudo apt-get install linux-headers-$(uname -r)
                    then it is not "well formed". It needs to be like this:
                    Code:
                    sudo apt-get install linux-headers-`uname -r`
                    Are you using the latest version of Envy? I'm surprised that Envy didn't take care of this by itself.

                    Try it the way I recommended -- let's see what happens.
                    Thank you for the pointer.

                    Comment


                      #11
                      Re: ENVY asking for linux headers

                      Originally posted by SheeEttin

                      The problem is that the package just isn't there. The 2.6.20 kernel packages have been removed from the repositories. The solution is to install a newer kernel.
                      (In fact, the only kernel header packages available are 2.6.22-13-* and 2.6.22-14-* (and some miscellaneous Xen kernel headers).)
                      Ah okay. I'm not going mad then. I do have a newer kernel (2.6.22-14-386) installed but it's completely broken. See here:

                      http://kubuntuforums.net/forums/inde...opic=3088720.0

                      I used the slightly older kernel so I could get my GUI again. I guess I have to wait for an even newer kernel to appear in Adept?

                      Thanks all for the help.

                      Comment


                        #12
                        Re: ENVY asking for linux headers

                        Addressing that problem in that thread.
                        For external use only.

                        Comment


                          #13
                          Re: ENVY asking for linux headers

                          Originally posted by SheeEttin
                          Addressing that problem in that thread.
                          Thanks dude.

                          Comment


                            #14
                            Re: ENVY asking for linux headers

                            Thank you for the help. Ran Envy under the newer kernel after following your advise on the other thread and I'm now back up and running with the Nvidia drivers.

                            Comment

                            Working...
                            X