- Get the following files from https://kernel.ubuntu.com/mainline/v6.6.65/ and copy them into the /root directory.
- linux-headers-6.6.65-060665-generic_6.6.65-060665.202412111549_amd64.deb
- linux-headers-6.6.65-060665_6.6.65-060665.202412111549_all.deb
- linux-image-unsigned-6.6.65-060665-generic_6.6.65-060665.202412111549_amd64.deb
- linux-modules-6.6.65-060665-generic_6.6.65-060665.202412111549_amd64.deb
- Run the following command to install the kernel package.
$ sudo dpkg -i linux-*.deb
- Run the following commands to update the bootloader and reboot
the machine to load the new kernel version.
$ sudo update-grub
$ sudo reboot
- If the system does not boot up Ubuntu with kernel v6.6.65, set
the GRUB_DEFAULT as shown below in /etc/default/grub:
GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 6.6.65-060665-generic"
- Update the bootloader and reboot by running the following
commands:
$ sudo update-grub
$ sudo reboot
- Run the following commands to check the kernel version:
$ sudo uname -r
Expected output: 6.6.65-060665-generic
- Check the gcc version using the command below:
$ gcc --version
- If the gcc version is not installed, gcc-13 can be installed using these
commands:
$ sudo apt-get update
$ sudo apt install gcc-13
- To switch between the installed gcc versions, use the update-alternatives tool
and select gcc-13.
$ sudo update-alternatives --config gcc
Ubuntu 24.04.2 runs on kernel v6.8 while the supported kernel version is up to
v6.6. If the current kernel version is not v6.6 (can be checked with the uname -r command), then follow the steps below to install
kernel v6.6.