Installing the latest kernel.
The title says that you want to install the latest kernel, you can use an automated script to install the latest kernel:
-
Install the shell script which automatically checks and install the latest kernel:
wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh sudo install ubuntu-mainline-kernel.sh /usr/local/bin/ -
Run the shell script:
sudo ubuntu-mainline-kernel.sh -c -
Install the latest stable kernel:
sudo ubuntu-mainline-kernel.sh -i -
Press Y to accept the installation.
-
Reboot to boot into the latest kernel:
sudo reboot
for the future, if you'd like to recheck and reinstall the latest stable kernel, you can simply run:
sudo ubuntu-mainline-kernel.sh -i