Skip to the content.

Important Notes

This script will attempt to install Linux Kernel 4.9.324 on this machine. Typically, your current version will be kept, and you will be able to utilize it again later if Linux Kernel 4.9.324 does not work. However, it is possible, if unlikely, that this script will render your system inoperable on with certain software installed, or with certain hardware configurations. How to Ubuntu does not offer any guarantees whatsoever, but it worked for us. Use with care (especially around UEFI).

Also, note that your system will be running a package that it is unlikely to receive updates for, and that you will have to manually check for subsequent versions on How to Ubuntu.

Finally, it should be noted that this script will NOT automatically determine your system architecture, utilising only the amd64 packages for a 64bit system. ARM-type processors are not supported.

The Script

echo " " &&
echo "This script will attempt to install Linux Kernel 4.9.324 on this machine." &&
echo "Typically, your current version will be kept, and you will be able to ustilise it again later if Kernel 4.9 does not work." &&
echo " " &&
read -p "Press Enter to continue, or abort by pressing CTRL+C" nothing &&
echo " " &&
echo "Downloading Kernel 4.9.324 Packages" &&
echo "3 Files, ~78 MB to Download" &&
echo " " &&
echo "Creating Kernel Directory in Home folder" &&
echo " " &&
mkdir -p $HOME/howtoubuntu-kernel-4-9-324 &&
cd $HOME/howtoubuntu-kernel-4-9-324 &&
echo " " &&
echo "Downloading File 1 of 3, 14 MB" &&
echo " " &&
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.324/amd64/linux-headers-4.9.324-0409324_4.9.324-0409324.202207211944_all.deb &&
echo " " &&
echo "Downloading File 2 of 3, 1.0 MB" &&
echo " " &&
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.324/amd64/linux-headers-4.9.324-0409324-generic_4.9.324-0409324.202207211944_amd64.deb &&
echo " " &&
echo "Downloading File 3 of 3, 63 MB" &&
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.324/amd64/linux-image-4.9.324-0409324-generic_4.9.324-0409324.202207211944_amd64.deb &&
echo " " &&
echo "Installing Kernel" &&
echo "This step will require you password." &&
echo "This is the last step you can safely cancel at." &&
echo "Use Ctrl+C to cancel." &&
echo " " &&
sudo dpkg -i *.deb &&
echo " " &&
echo "Installation Complete" &&
echo " " &&
read -p "Press Enter to Delete the Downloads, or CTRL+C to keep them." nothing &&
echo " " &&
sudo rm -rf $HOME/howtoubuntu-kernel-4-9-324