How to upgrade your linux kernel, Debian/Ubuntu
Ubuntu
- Download the ubuntu-mainline-kernel.sh Bash script utility. Open up your terminal and enter:
wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh
- install the previously downloaded script into our executable path:
sudo install ubuntu-mainline-kernel.sh /usr/local/bin/
- All is ready to upgrade the Ubuntu kernel to the latest version. To do so run do following command:
ubuntu-mainline-kernel.sh -i
The above command will search for the latest kernel version available. To continue with the kernel installation answer y.
- Finally, reboot your system
reboot
Debian
- Update the system - apt update && apt full-upgrade -y- apt install lsb-release
- Add the repo to the sources list 
| 1 | cat > /etc/apt/sources.list << EOF | 
- Do the update again - apt update
- upgrade your kernel - apt install -t $(lsb_release -sc)-backports linux-image-$(dpkg --print-architecture) linux-headers-$(dpkg --print-architecture) --install-recommends -y- update-grub- reboot