Linux Headers?

Qinsp

2[H]4U
Joined
Jan 7, 2011
Messages
2,154
What are they?

I'm trying to compile k10Temp (8300/8400 temperature sensors), and the instruction at Ubuntu say:

sudo apt-get install linux-headers

But then it gives me a HUGE list:

Code:
quad8389@quad8389-H8QM3:~/k10temp$ sudo apt-get install linux-headers
[sudo] password for quad8389: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package linux-headers is a virtual package provided by:
  linux-headers-3.5.0-26-lowlatency 3.5.0-26.28
  linux-headers-3.5.0-25-lowlatency 3.5.0-25.25
  linux-headers-3.5.0-24-lowlatency 3.5.0-24.23
  linux-headers-3.5.0-23-lowlatency 3.5.0-23.22
  linux-headers-3.5.0-22-lowlatency 3.5.0-22.21
  linux-headers-3.5.0-21-lowlatency 3.5.0-21.19
  linux-headers-3.5.0-18-lowlatency 3.5.0-18.18
  linux-headers-3.5.0-26-generic 3.5.0-26.42
  linux-headers-3.5.0-26 3.5.0-26.42
  linux-headers-3.5.0-25-generic 3.5.0-25.39
  linux-headers-3.5.0-25 3.5.0-25.39
  linux-headers-3.5.0-24-generic 3.5.0-24.37
  linux-headers-3.5.0-24 3.5.0-24.37
  linux-headers-3.5.0-23-generic 3.5.0-23.35
  linux-headers-3.5.0-23 3.5.0-23.35
  linux-headers-3.5.0-22-generic 3.5.0-22.34
  linux-headers-3.5.0-22 3.5.0-22.34
  linux-headers-3.5.0-21-generic 3.5.0-21.32
  linux-headers-3.5.0-21 3.5.0-21.32
  linux-headers-3.5.0-19-generic 3.5.0-19.30
  linux-headers-3.5.0-19 3.5.0-19.30
  linux-headers-3.5.0-18-generic 3.5.0-18.29
  linux-headers-3.5.0-18 3.5.0-18.29
  linux-headers-3.5.0-17-lowlatency 3.5.0-17.18
  linux-headers-3.5.0-17-generic 3.5.0-17.28
  linux-headers-3.5.0-17 3.5.0-17.28
You should explicitly select one to install.

E: Package 'linux-headers' has no installation candidate
quad8389@quad8389-H8QM3:~/k10temp$ sudo make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
make: *** /lib/modules/3.5.0-17-generic/build: No such file or directory.  Stop.
quad8389@quad8389-H8QM3:~/k10temp$

I really need to learn Linux CLI if I'm going to dink with BigAdv, but it's going to take awhile.

PS - TPC won't install. lm-sensors doesn't work. So k10temp is the next effort.
 
The temp is critical for this machine, because I must either lower the fan speed or turn it off.
 
Hoss, if you've installed a Linux...you already should already have the kernel-headers.
 
That's what I thought, but as you see, it choked at that step. Look at the bottom 3 lines.
 
That's what I thought, but as you see, it choked at that step. Look at the bottom 3 lines.

Ooops. Needed some coffee...still surprised you're lacking the headers, then again I haven't used Ubuntu in years.

Code:
$ apt-cache search linux-headers-$(uname -r)

Will tell you the kernel version.... And then

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

Will get you the headers for said kernel.
 
Thanks! When my ears stop ringing, I'll go back into the garage and try that.
 
I can probably turn the fans way down, but without knowing the temps, I'm reluctant to burn a machine.
 
Why not use TPC?

What are your issues with TPC?
 
Also, what does lm-sensors show? Did you run sensors-detect?
 
^^ +1

k10temp has been part of mainline kernel for VERY long time; you should never need to compile it

Though I just recalled that Socket F K10 CPUs may be blacklisted due to on-chip sensor being unreliable/incorrectly calibrated, there was AMD erratum on that.

IIRC blacklisting can be overridden by a module parameter.
 
Ah, here we go:

Code:
MODULE_DESCRIPTION("AMD Family 10h/11h/12h/14h CPU core temperature monitor");
MODULE_AUTHOR("Clemens Ladisch <clemens@ladisch.de>");
MODULE_LICENSE("GPL");

static bool force;
module_param(force, bool, 0444);
MODULE_PARM_DESC(force, "force loading on processors with erratum 319");

So, just do:
Code:
sudo -s
echo options k10temp force=true > /etc/modprobe.d/k10temp.conf
exit

Then unload and reload the module:
Code:
sudo modprobe -r k10temp
sudo modprobe k10temp

Then check if it loaded:
Code:
lsmod | grep k10temp

TPC is my personal preference, though.
 
Man. That freakin' machine is driving me nuts. :D

Firefox stopped running for no reason. Did updates and rebooted.

I can't wait until I get this mofo, err... I mean mobo running stable.
 
Back
Top