[Linux] How to install Linux headers

  • To install the Linux headers needed by the system (linux-headers-$(uname -r)), you can try to install linux-headers-generic or use the command dpkg -l | grep linux-headers- to list the linux-headers and install the most updated for the system.