0

I recently updated/upgraded 22.04, and it broke my nvidia driver. It took me a couple of days to get an nvidia driver working. And that is using 5.15.0-69-generic. The newest kernels (6 . . .) don't even have header files. I think I can download them using sudo apt install linux-headers-$(uname-r) but the nvidia driver I was using no longer worked in the two 6... kernels.

So, I would like to specify the 5.15 ... kernel, rather than manually choosing it from grub.

Any suggestions would be welcome.

Thanks, Tim

DrTSPC
  • 67

1 Answers1

-1

You can follow this asnwer

Installing 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

https://askubuntu.com/a/1388117/236992 The solution posted by Always Available is the best