This happened to me on a brand new 24.04 installation. I did not have
build-essential or the kernel headers installed. I did an update and the
nvidia drivers tried to compile modules but can't (no gcc and no
headers). After a reboot the running kernel changed (because it was
updated) and the older drivers won't work. To fix:

- Install headers matching the running kernel
$ sudo apt install linux-headers-$(uname -r)

- Install build-essential
$ sudo apt install build-essential

- Check the recommended drivers
$ ubuntu-drivers devices

- Install recommended driver
$ ubuntu-drivers autoinstall

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2115148

Title:
  nvidia driver error: cannot open linker script file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-restricted-modules/+bug/2115148/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to