This is a simple one but I found out that there are people out there that don’t know about it, so here we go.
sudo apt-get install linux-headers-$(uname -r)
This will install kernel headers for your current active kernel on Debian/Ubuntu.
This is a simple one but I found out that there are people out there that don’t know about it, so here we go.
sudo apt-get install linux-headers-$(uname -r)
This will install kernel headers for your current active kernel on Debian/Ubuntu.
The command below no longer works, for an updated version that does work and should continue to work (until you upgrade to a new distro version e.g. 10.04 -> 12.04) please see `here`_.
Really simple, should work for most cases, I’ve not found anything wrong with it.
sudo aptitude update && sudo aptitude install '?and(~U,~Asecurity)'