Debian / Ubuntu linux install kernel headers package

Q. I need kernel headers to compile module and vmware tools. How do I install kernel headers under Debian / Ubuntu Linux.?

A. To install cLinux kernel headers for currently running version, type the following commands at shell prompt (open terminal and type the command):
Make sure you have updated version

$ sudo apt-get update
Search for kernel version (optional)

$ apt-cache search linux-headers-$(uname -r)
Install linux-header package

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

猜你喜欢

转载自wyk525.iteye.com/blog/1217993