Two ways to upgrade kernel in Ubuntu/Linux
Method 1: Via command line
Kernel is the core of Linux OS and is responsible for interfacing between computer hardware and Software.
FYI: Kernels corresponding to Ubuntu releases https://en.wikipedia.org/wiki/Ubuntu_version_history#Table_of_versions
i) Check current version of kernel
$ uname -r
ii) Check the latest stabel version if any available in official link https://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=D
iii) Download the latest or required kernel files
Example:
linux-headers-<version-number >-all.deb
linux-image-unsigned-<version-number>-amd64.deb
linux-modules-<version-number>-amd64.deb
Other way to download files is to use the "wget" command by copying the link of the file and passing it as argument to the command.
iv) Installing the kernel
$ sudo dpkg -i *.deb
Note: If the command doesn't work type it manually.
v) Reboot and verify the kernel.
Method 2: GUI method
i) Using mainline tool which is not availble in official Ubuntu repositories.
Add the repository
$ sudo apt-add-repository -y ppa:cappelikan/ppa
ii) Update the system repository index
$ sudo apt update
iii) Install the mainline tool
$ sudo apt install mainline
iv) Launch the mainline tool and install required version of your choice.
v) Reboot and verify the kernel
vi) If required uninstall the old kernels from UI option.
Note: If uninstall fails in GUI, try commands
$ sudo apt remove linux-image-5.4.0-96-generic
$ apt --fix-broken install
***