nvidia driver error: cannot open linker script file

Bug #2115148 reported by Igor Pustovit
This bug affects 506 people
Affects Status Importance Assigned to Milestone
linux-restricted-modules (Ubuntu)
Confirmed
Undecided
Kuba Pawlak
linux-restricted-modules-hwe-6.14 (Ubuntu)
Confirmed
Undecided
Kuba Pawlak

Bug Description

-----------------------------------------------------------------------------
*** If you've come here from a duplicate bug ***

Please make sure you have the headers relevant to your kernel installed
For most people,
sudo apt install linux-headers-generic-hwe-24.04
-----------------------------------------------------------------------------

package linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22 failed to install/upgrade: installed linux-modules-nvidia-570-6.14.0-22-generic package post-installation script subprocess returned error exit status 1

ProblemType: Package
DistroRelease: Ubuntu 25.04
Package: linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22
ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
Uname: Linux 6.14.0-15-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.32.0-0ubuntu5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: igor 2732 F.... wireplumber
 /dev/snd/controlC0: igor 2732 F.... wireplumber
 /dev/snd/seq: igor 2728 F.... pipewire
CasperMD5CheckResult: pass
Date: Sun Jun 22 10:04:44 2025
ErrorMessage: installed linux-modules-nvidia-570-6.14.0-22-generic package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2025-06-20 (2 days ago)
InstallationMedia: Ubuntu 25.04 "Plucky Puffin" - Release amd64 (20250415.3)
MachineType: ASUSTeK COMPUTER INC. TUF Gaming FX505DT_FX505DT
ProcFB: 0 amdgpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.14.0-15-generic root=UUID=92995c6d-7c20-4f2d-b1e5-a9117a4827ea ro quiet splash crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M vt.handoff=7
Python3Details: /usr/bin/python3.13, Python 3.13.3, python3-minimal, 3.13.3-1
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions: grub-pc N/A
SourcePackage: linux-restricted-modules
Title: package linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22 failed to install/upgrade: installed linux-modules-nvidia-570-6.14.0-22-generic package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 01/28/2021
dmi.bios.release: 5.14
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: FX505DT.316
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: FX505DT
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK COMPUTER INC.
dmi.chassis.version: 1.0
dmi.ec.firmware.release: 16.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrFX505DT.316:bd01/28/2021:br5.14:efr16.0:svnASUSTeKCOMPUTERINC.:pnTUFGamingFX505DT_FX505DT:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnFX505DT:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:sku:
dmi.product.family: TUF Gaming
dmi.product.name: TUF Gaming FX505DT_FX505DT
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.

Revision history for this message
Igor Pustovit (qvbnd) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-restricted-modules (Ubuntu):
status: New → Confirmed
Changed in linux-restricted-modules (Ubuntu):
assignee: nobody → Kuba Pawlak (kuba-t-pawlak)
Revision history for this message
Kuba Pawlak (kuba-t-pawlak) wrote (last edit ):

A workaround for now is to install kernel headers with:
sudo apt install linux-headers-generic

summary: - nvidia driver erorr
+ nvidia driver error: cannot open linker script file
Revision history for this message
Daniel Blanchard (dan-blanchard) wrote :

Installing the generic headers does not seem to fix the issue for me when installing the drivers with:

`sudo ubuntu-drivers install --gpgpu nvidia:570-server` which still yields:

```
/usr/bin/ld.bfd: cannot open linker script file /usr/src/linux-headers-6.14.0-1010-aws/scripts/module.lds: No such file or directory
/usr/bin/ld.bfd: cannot open linker script file /usr/src/linux-headers-6.14.0-1010-aws/scripts/module.lds: No such file or directory
/usr/bin/ld.bfd: cannot open linker script file /usr/src/linux-headers-6.14.0-1010-aws/scripts/module.lds: No such file or directory
/usr/bin/ld.bfd: cannot open linker script file /usr/src/linux-headers-6.14.0-1010-aws/scripts/module.lds: No such file or directory
/usr/bin/ld.bfd: cannot open linker script file /usr/src/linux-headers-6.14.0-1010-aws/scripts/module.lds: No such file or directory
sha256sum: nvidia-drm.ko: No such file or directory
nvidia-drm.ko: FAILED open or read
sha256sum: nvidia-modeset.ko: No such file or directory
nvidia-modeset.ko: FAILED open or read
sha256sum: nvidia-peermem.ko: No such file or directory
nvidia-peermem.ko: FAILED open or read
sha256sum: nvidia-uvm.ko: No such file or directory
nvidia-uvm.ko: FAILED open or read
sha256sum: nvidia.ko: No such file or directory
nvidia.ko: FAILED open or read
sha256sum: WARNING: 5 listed files could not be read
```

Revision history for this message
Daniel Letzeisen (dtl131) wrote (last edit ):

@dan-blanchard: You are not using the generic kernel, so install the headers for your kernel.
sudo apt install linux-headers-aws

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-restricted-modules-hwe-6.14 (Ubuntu):
status: New → Confirmed
Revision history for this message
Graeme Evans (snaveemearg01) wrote :

Not affacting everyday operations. Just an error message after a software update.

tags: added: kernel-daily-bug
Revision history for this message
Vedran Rafaelic (croraf) wrote (last edit ):

Trying to install nvidia-drivers-575 from nvidia-drivers-535 gave this same error, but also caused pretty severe consequences on my Ubuntu.

It corrupted the entire kernel so to say: no external keyboard, no internet, no bluetooth, defaluted to Nouveau. While debugging why I cannot do usb tethering any more I noticed that

`/lib/modules/6.14.0-27-generic/kernel/drivers/net/usb` folder has been completely deleted by the update.

Luckily I was able to boot into older kernel which used Nouveau and recover from there.

NOTE: I have mobile Nvidia RTX 2080. Was previously on nvidia-driver-535
Kernel: 6.14.0-27-generic

Revision history for this message
Daniel Letzeisen (dtl131) wrote :

Do all these people really not have the kernel headers installed or is there something else going on here?

Revision history for this message
Aswin Payyampally (aswinp610) wrote :

how to recover

Revision history for this message
Vedran Rafaelic (croraf) wrote (last edit ):

Update to nvidia-drivers-575 corrupted my kernel completely, no usb tethering, no keyboard, no bluetooth, probably many more things. I managed to recover luckily by booting the old kernel. And reinstalling the 6.14.0-27 kernel again. But I still have issues, after installing nvidia-drivers-550.

I particular I have this kernel now (uname -a): 6.14.0-27-generic #27~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC

But apt list --upgradable suggests: linux-image-generic-hwe-24.04/noble-updates,noble-security 6.14.0-27.27~24.04.1 amd64 [upgradable from: 6.14.0-24.24~24.04.3]

Trying to install the new kernel gives following warning: (check attachment)

Revision history for this message
Vedran Rafaelic (croraf) wrote :

Also on starting of Software Updater application it shows: "Not all updates can be installed" and am unable to select any linux package (check attachment)

Revision history for this message
Serge (sspapilin) wrote :

This happened for my desktop (Ubuntu 24.04, HWE generic kernel, nvidia drivers 570). It broke after an unattended upgrade.

I suspect it happened because the unattended upgrade tried to upgrade linux-modules-nvidia-570-generic-hwe-24.04 from 6.14.0-24 to 6.14.0-27 before linux-generic-hwe-24.04 was upgraded to the same version; so the required apt header files were not installed yet.

Why don't these nvidia-module packages depend on the corresponding version of kernel header packages?

Revision history for this message
Francisco José Parente Ferreira (chicojpferreira) wrote : Re: [Bug 2115148] Re: nvidia driver error: cannot open linker script file
Download full text (4.2 KiB)

That's probably what happened.
I updated the packages and rebooted. The problem didn't recur.
I usually report bugs through Ubuntu, but they did change the format and
open the web page. So I reported the bug through the website. However, it
didn't persist. It just reported it twice in a row.

Em sex., 1 de ago. de 2025 às 09:20, Serge <email address hidden>
escreveu:

> This happened for my desktop (Ubuntu 24.04, HWE generic kernel, nvidia
> drivers 570). It broke after an unattended upgrade.
>
> I suspect it happened because the unattended upgrade tried to upgrade
> linux-modules-nvidia-570-generic-hwe-24.04 from 6.14.0-24 to 6.14.0-27
> before linux-generic-hwe-24.04 was upgraded to the same version; so the
> required apt header files were not installed yet.
>
> Why don't these nvidia-module packages depend on the corresponding
> version of kernel header packages?
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (2117257).
> https://bugs.launchpad.net/bugs/2115148
>
> Title:
> nvidia driver error: cannot open linker script file
>
> Status in linux-restricted-modules package in Ubuntu:
> Confirmed
> Status in linux-restricted-modules-hwe-6.14 package in Ubuntu:
> Confirmed
>
> Bug description:
> package linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22 failed
> to install/upgrade: installed linux-modules-
> nvidia-570-6.14.0-22-generic package post-installation script
> subprocess returned error exit status 1
>
> ProblemType: Package
> DistroRelease: Ubuntu 25.04
> Package: linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22
> ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
> Uname: Linux 6.14.0-15-generic x86_64
> NonfreeKernelModules: nvidia_modeset nvidia
> ApportVersion: 2.32.0-0ubuntu5
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC1: igor 2732 F.... wireplumber
> /dev/snd/controlC0: igor 2732 F.... wireplumber
> /dev/snd/seq: igor 2728 F.... pipewire
> CasperMD5CheckResult: pass
> Date: Sun Jun 22 10:04:44 2025
> ErrorMessage: installed linux-modules-nvidia-570-6.14.0-22-generic
> package post-installation script subprocess returned error exit status 1
> InstallationDate: Installed on 2025-06-20 (2 days ago)
> InstallationMedia: Ubuntu 25.04 "Plucky Puffin" - Release amd64
> (20250415.3)
> MachineType: ASUSTeK COMPUTER INC. TUF Gaming FX505DT_FX505DT
> ProcFB: 0 amdgpudrmfb
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.14.0-15-generic
> root=UUID=92995c6d-7c20-4f2d-b1e5-a9117a4827ea ro quiet splash
> crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M
> vt.handoff=7
> Python3Details: /usr/bin/python3.13, Python 3.13.3, python3-minimal,
> 3.13.3-1
> PythonDetails: N/A
> RebootRequiredPkgs: Error: path contained symlinks.
> RelatedPackageVersions: grub-pc N/A
> SourcePackage: linux-restricted-modules
> Title: package linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22
> failed to install/upgrade: installed
> linux-modules-nvidia-570-6.14.0-22-generic package post-installation script
> subpr...

Read more...

Revision history for this message
Vedran Rafaelic (croraf) wrote (last edit ):

Adding to my previous comments.

I don't know how I got this linux-image-unsigned-6.14.0-27-generic installed on my machine (without headers I think, and I guess I installed linux-headers-6.14.0-27-generic later separately)?

Could it be the attempt of installation of nvidia-driver-575 installed this? Because I guess I didn't have linux-image-6.14.0-27 installed (but am not sure).

Now I deleted it and installed linux-image-6.14.0-27-generic and linux-headers-6.14.0-27-generic through Software Updater UI.

Now from the linux-image-6.14.0-27-generic I try to upgrade nvidia-drivers from nvidia-drivers-550 to nvidia-drivers-570 (propriatery) through Additional Drivers. And I get the gray popup with just X icon.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

I don't know why term.log and history shows only 535, when I selected 570.

History log here

Start-Date: 2025-08-02 13:01:17
Commandline: packagekit role='remove-packages'
Requested-By: croraf (1000)
Install: libnvidia-compute-535:amd64 (535.247.01-0ubuntu0.24.04.1, automatic)
Remove: libnvidia-common-550:amd64 (550.163.01-0ubuntu0.24.04.1), libnvidia-fbc1-550:amd64 (550.163.01-0ubuntu0.24.04.1), libnvidia-fbc1-550:i386 (550.163.01-0ubuntu0.24.04.1), libnvidia-gl-550:amd64 (550.163.01-0ubuntu0.24.04.1), libnvidia-gl-550:i386 (550.163.01-0ubuntu0.24.04.1), libnvidia-extra-550:amd64 (550.163.01-0ubuntu0.24.04.1), nvidia-compute-utils-550:amd64 (550.163.01-0ubuntu0.24.04.1), nvidia-dkms-550:amd64 (550.163.01-0ubuntu0.24.04.1), nvidia-driver-550:amd64 (550.163.01-0ubuntu0.24.04.1), libnvidia-encode-550:amd64 (550.163.01-0ubuntu0.24.04.1), libnvidia-encode-550:i386 (550.163.01-0ubuntu0.24.04.1), nvidia-utils-550:amd64 (550.163.01-0ubuntu0.24.04.1), xserver-xorg-video-nvidia-550:amd64 (550.163.01-0ubuntu0.24.04.1), libnvidia-decode-550:amd64 (550.163.01-0ubuntu0.24.04.1), libnvidia-decode-550:i386 (550.163.01-0ubuntu0.24.04.1), libnvidia-egl-wayland1:amd64 (1:1.1.13-1build1), libnvidia-egl-wayland1:i386 (1:1.1.13-1build1), nvidia-kernel-common-550:amd64 (550.163.01-0ubuntu0.24.04.1), nvidia-prime:amd64 (0.8.17.2), screen-resolution-extra:amd64 (0.18.3), nvidia-settings:amd64 (510.47.03-0ubuntu4), libnvidia-cfg1-550:amd64 (550.163.01-0ubuntu0.24.04.1), nvidia-kernel-source-550:amd64 (550.163.01-0ubuntu0.24.04.1), libnvidia-compute-550:amd64 (550.163.01-0ubuntu0.24.04.1), libnvidia-compute-550:i386 (550.163.01-0ubuntu0.24.04.1), nvidia-firmware-550-550.163.01:amd64 (550.163.01-0ubuntu0.24.04.1), dkms:amd64 (3.0.11-1ubuntu13)
End-Date: 2025-08-02 13:01:38

term.log in attachment.

Revision history for this message
Vedran Rafaelic (croraf) wrote (last edit ):

Ok, now I again (with the clean linux-image-6.14.0-27-generic and linux-headers-6.14.0-27-generic) tried to install nvidia-driver-575 (propriatery, tested) through Additional Drivers and the new driver is working correctly now.

Note, if worth, let me also say that now after all this upgrade the `apt list --upgradable` shows this line:
ubuntu-drivers-common/noble-updates 1:0.9.7.6ubuntu3.2 amd64 [upgradable from: 1:0.9.7.6ubuntu3.1

(Perhaps this appeared after migrating to the 27 kernel.)

But trying to upgrade shows: The following upgrades have been deferred due to phasing:
  ubuntu-drivers-common

Revision history for this message
Nestor Caffa (nestorcaffa-m) wrote :
Download full text (4.0 KiB)

Dear Vedram
Unfortunately I couldn't solve it and I had to reinstall the operating
system.
As a fact I tell you that the machine worked in 640 x 480 (it could not be
changed) nor did the network board work, I guess it must have been the
chipset driver of the motherboard.
Thank you for your concern.
Best regards
Nestor

El sáb, 2 de ago de 2025, 08:30, Vedran Rafaelic <email address hidden>
escribió:

> Ok, now I again (with the clean linux-image-6.14.0-27-generic and linux-
> headers-6.14.0-27-generic) tried to install nvidia-driver-575
> (propriatery, tested) through Additional Drivers and the new driver is
> working correctly now.
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (2119307).
> https://bugs.launchpad.net/bugs/2115148
>
> Title:
> nvidia driver error: cannot open linker script file
>
> Status in linux-restricted-modules package in Ubuntu:
> Confirmed
> Status in linux-restricted-modules-hwe-6.14 package in Ubuntu:
> Confirmed
>
> Bug description:
> package linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22 failed
> to install/upgrade: installed linux-modules-
> nvidia-570-6.14.0-22-generic package post-installation script
> subprocess returned error exit status 1
>
> ProblemType: Package
> DistroRelease: Ubuntu 25.04
> Package: linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22
> ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
> Uname: Linux 6.14.0-15-generic x86_64
> NonfreeKernelModules: nvidia_modeset nvidia
> ApportVersion: 2.32.0-0ubuntu5
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC1: igor 2732 F.... wireplumber
> /dev/snd/controlC0: igor 2732 F.... wireplumber
> /dev/snd/seq: igor 2728 F.... pipewire
> CasperMD5CheckResult: pass
> Date: Sun Jun 22 10:04:44 2025
> ErrorMessage: installed linux-modules-nvidia-570-6.14.0-22-generic
> package post-installation script subprocess returned error exit status 1
> InstallationDate: Installed on 2025-06-20 (2 days ago)
> InstallationMedia: Ubuntu 25.04 "Plucky Puffin" - Release amd64
> (20250415.3)
> MachineType: ASUSTeK COMPUTER INC. TUF Gaming FX505DT_FX505DT
> ProcFB: 0 amdgpudrmfb
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.14.0-15-generic
> root=UUID=92995c6d-7c20-4f2d-b1e5-a9117a4827ea ro quiet splash
> crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M
> vt.handoff=7
> Python3Details: /usr/bin/python3.13, Python 3.13.3, python3-minimal,
> 3.13.3-1
> PythonDetails: N/A
> RebootRequiredPkgs: Error: path contained symlinks.
> RelatedPackageVersions: grub-pc N/A
> SourcePackage: linux-restricted-modules
> Title: package linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22
> failed to install/upgrade: installed
> linux-modules-nvidia-570-6.14.0-22-generic package post-installation script
> subprocess returned error exit status 1
> UpgradeStatus: No upgrade log present (probably fresh install)
> dmi.bios.date: 01/28/2021
> dmi.bios.release: 5.14
> dmi.bios.vendor: American Megatrends Inc.
> dmi.bios.version: FX505DT.316...

Read more...

Revision history for this message
Vedran Rafaelic (croraf) wrote (last edit ):

Hi Nestor.
I'm just a regular user, so I cannot provide proper assistance.

I'm pretty sure that trying to install nvidia-driver-575 corrupted my entire kernel with similar issues (no network, no external keyboard, no bluetooth). But I was able to boot into the old kernel (just without nvidia driver but with nouveau driver only).

Were you able to boot the old kernel?

Revision history for this message
Nestor Caffa (nestorcaffa-m) wrote :
Download full text (3.9 KiB)

I couldn't do it, I was in a hurry to work with the team again and I
reinstalled a copy of ubuntu.
I'm sorry I can't give you more help.

El sáb, 2 de ago de 2025, 17:30, Vedran Rafaelic <email address hidden>
escribió:

> Hi Nestor.
> I'm just a regular user, so I cannot provide proper assistance.
>
> I'm pretty sure that trying to install nvidia-driver-575 corrupted my
> entire kernel with similar issues (no network, no external keyboard, no
> bluetooth). But I was able to boot into the old kernel (just without
> nvidia driver but with nouveau driver only).
>
> Were you able to boot the old kernel?
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (2119307).
> https://bugs.launchpad.net/bugs/2115148
>
> Title:
> nvidia driver error: cannot open linker script file
>
> Status in linux-restricted-modules package in Ubuntu:
> Confirmed
> Status in linux-restricted-modules-hwe-6.14 package in Ubuntu:
> Confirmed
>
> Bug description:
> package linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22 failed
> to install/upgrade: installed linux-modules-
> nvidia-570-6.14.0-22-generic package post-installation script
> subprocess returned error exit status 1
>
> ProblemType: Package
> DistroRelease: Ubuntu 25.04
> Package: linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22
> ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
> Uname: Linux 6.14.0-15-generic x86_64
> NonfreeKernelModules: nvidia_modeset nvidia
> ApportVersion: 2.32.0-0ubuntu5
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC1: igor 2732 F.... wireplumber
> /dev/snd/controlC0: igor 2732 F.... wireplumber
> /dev/snd/seq: igor 2728 F.... pipewire
> CasperMD5CheckResult: pass
> Date: Sun Jun 22 10:04:44 2025
> ErrorMessage: installed linux-modules-nvidia-570-6.14.0-22-generic
> package post-installation script subprocess returned error exit status 1
> InstallationDate: Installed on 2025-06-20 (2 days ago)
> InstallationMedia: Ubuntu 25.04 "Plucky Puffin" - Release amd64
> (20250415.3)
> MachineType: ASUSTeK COMPUTER INC. TUF Gaming FX505DT_FX505DT
> ProcFB: 0 amdgpudrmfb
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.14.0-15-generic
> root=UUID=92995c6d-7c20-4f2d-b1e5-a9117a4827ea ro quiet splash
> crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M
> vt.handoff=7
> Python3Details: /usr/bin/python3.13, Python 3.13.3, python3-minimal,
> 3.13.3-1
> PythonDetails: N/A
> RebootRequiredPkgs: Error: path contained symlinks.
> RelatedPackageVersions: grub-pc N/A
> SourcePackage: linux-restricted-modules
> Title: package linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22
> failed to install/upgrade: installed
> linux-modules-nvidia-570-6.14.0-22-generic package post-installation script
> subprocess returned error exit status 1
> UpgradeStatus: No upgrade log present (probably fresh install)
> dmi.bios.date: 01/28/2021
> dmi.bios.release: 5.14
> dmi.bios.vendor: American Megatrends Inc.
> dmi.bios.version: FX505DT.316
> dmi.board.asset.tag: ATN1234...

Read more...

Revision history for this message
Aldas Zarnauskas (aldas02027) wrote :

I installed the Linux header sudo apt install linux-headers-6.14.0-27-generic and it got fixed the issue.

Revision history for this message
aberner (berner) wrote :

Same here with kernel 6.14.0-27-generic and Nvidia 470.

After upgrade can not boot into 6.14.0-27 only 6.11.0-26-generic works.

Logfile /var/lib/dkms/nvidia/470.256.02/build/make.log says:

make[3]: *** [/usr/src/linux-headers-6.14.0-27-generic/Makefile:2002: .] Fehler 2
make[2]: *** [/usr/src/linux-headers-6.14.0-27-generic/Makefile:251: __sub-make] Fehler 2

there's a compile error:

nvidia/os-mlock.c:23:12: error: implicit declaration of function ‘follow_pfn’; did you mean ‘folio_pfn’? [-Werror=implicit-function-declaration]
   23 | return follow_pfn(vma, address, pfn);
      | ^~~~~~~~~~
      | folio_pfn

Revision history for this message
Daniel Letzeisen (dtl131) wrote :

@aberner: You are in the wrong bug. See bug 2110338

Revision history for this message
Nestor Caffa (nestorcaffa-m) wrote :

Dear ,Unfortunately I couldn't solve it and I had to reinstall the
operating system. As a fact I tell you that the machine worked in 640 x
480 (it could not be changed) nor did the network board work, I guess it
must have been the chipset driver of the motherboard. Thank you for your
concern.…

El 7/8/25 a las 5:36, aberner escribió:
> Same here with kernel 6.14.0-27-generic and Nvidia 470.
>
> After upgrade can not boot into 6.14.0-27 only 6.11.0-26-generic works.
>
> Logfile /var/lib/dkms/nvidia/470.256.02/build/make.log says:
>
> make[3]: *** [/usr/src/linux-headers-6.14.0-27-generic/Makefile:2002: .] Fehler 2
> make[2]: *** [/usr/src/linux-headers-6.14.0-27-generic/Makefile:251: __sub-make] Fehler 2
>
> there's a compile error:
>
> nvidia/os-mlock.c:23:12: error: implicit declaration of function ‘follow_pfn’; did you mean ‘folio_pfn’? [-Werror=implicit-function-declaration]
> 23 | return follow_pfn(vma, address, pfn);
> | ^~~~~~~~~~
> | folio_pfn
>

Revision history for this message
Andreas (spicavirgo) wrote (last edit ):

@Daniel Letzeisen: Thank you for your help. As you said above, the corresponding linux-header for the linux-kernel in use caused my problems (loss of WLAN, LAN, touchpad).

I don't know why the missing linux-header was not installed by the Ubuntu updater. First time, I run into such a problem.

My workaround was:
- Reboot PC and activate GRUB menu.
- Start Ubuntu with the previous kernel (in my case linux kernel 6.14.0-28). That gives me back my network connection.
- Open synaptic (package management app) and search for installed "linux-headers".
- Found package "linux-headers-generic" version 6.14.0-28.28, that can be updated to 6.14.0-29.29 - see picture in attachment.
- Let synaptic update the "linux-headers-generic" package.
- Restart PC as always/normal: system ok :-)

Revision history for this message
Roger Fang (geeky-1) wrote :
Download full text (5.3 KiB)

My computer crashed yesterday with an I/O or USB error and when I rebooted,
the LAN port no longer worked and it also didn't recognize my 4K GPU card
and went into a low resolution VGA mode. After several reboots, I suspected
it was a motherboard issue and pulled my drives and GPU and inserted into
another computer, however, that computer also didn't use the GPU card for
4K display, but integrated video for VGA mode as well as not being able to
use the LAN port for Internet connection. It also complained about a
partial upgrade, which it wasn't able to complete without LAN/Internet
connection. I assumed the operating system was corrupt and inserted a
bootable USB with Ubuntu 24.04.3 LTS, but after booting to the GRUB it
launched Ubuntu without reinstalling and the GPU as well as LAN port worked
again and I was able to swap the drives and GPU back to my original
computer and have it work again.

On Thu, Aug 7, 2025 at 10:10 AM Nestor Caffa <email address hidden>
wrote:

> Dear ,Unfortunately I couldn't solve it and I had to reinstall the
> operating system. As a fact I tell you that the machine worked in 640 x
> 480 (it could not be changed) nor did the network board work, I guess it
> must have been the chipset driver of the motherboard. Thank you for your
> concern.…
>
> El 7/8/25 a las 5:36, aberner escribió:
> > Same here with kernel 6.14.0-27-generic and Nvidia 470.
> >
> > After upgrade can not boot into 6.14.0-27 only 6.11.0-26-generic works.
> >
> > Logfile /var/lib/dkms/nvidia/470.256.02/build/make.log says:
> >
> > make[3]: *** [/usr/src/linux-headers-6.14.0-27-generic/Makefile:2002: .]
> Fehler 2
> > make[2]: *** [/usr/src/linux-headers-6.14.0-27-generic/Makefile:251:
> __sub-make] Fehler 2
> >
> > there's a compile error:
> >
> > nvidia/os-mlock.c:23:12: error: implicit declaration of function
> ‘follow_pfn’; did you mean ‘folio_pfn’?
> [-Werror=implicit-function-declaration]
> > 23 | return follow_pfn(vma, address, pfn);
> > | ^~~~~~~~~~
> > | folio_pfn
> >
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2115148
>
> Title:
> nvidia driver error: cannot open linker script file
>
> Status in linux-restricted-modules package in Ubuntu:
> Confirmed
> Status in linux-restricted-modules-hwe-6.14 package in Ubuntu:
> Confirmed
>
> Bug description:
> package linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22 failed
> to install/upgrade: installed linux-modules-
> nvidia-570-6.14.0-22-generic package post-installation script
> subprocess returned error exit status 1
>
> ProblemType: Package
> DistroRelease: Ubuntu 25.04
> Package: linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22
> ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
> Uname: Linux 6.14.0-15-generic x86_64
> NonfreeKernelModules: nvidia_modeset nvidia
> ApportVersion: 2.32.0-0ubuntu5
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC1: igor 2732 F.... wireplumber
> /dev/snd/controlC0: igor 2732 F.... wireplumber
> /dev/snd/seq: ...

Read more...

Juerg Haefliger (juergh)
Changed in linux-restricted-modules-hwe-6.14 (Ubuntu):
assignee: nobody → Juerg Haefliger (juergh)
assignee: Juerg Haefliger (juergh) → Kuba Pawlak (kuba-t-pawlak)
Alexey (alexey-qa)
information type: Public → Public Security
Revision history for this message
Vedran Rafaelic (croraf) wrote :

Now after did another update through Software Updates app, and restarted, my system reverted to Nuveau, and trying to pick Nvidia driver gives me that post-script error again.

Revision history for this message
Daniel Letzeisen (dtl131) wrote :

@Vedran: I would try installing the dkms package instead of the pre-built nvidia modules. Switch to nouveau in driver manager, or purge out your nvidia driver packages.

sudo apt install nvidia-driver-580-open nvidia-dkms-580-open
(omit the "-open" from the package names if using an Nvidia Maxwell or Pascal GPU)

If you use SecureBoot, you do need to sign the nvidia modules once (most systems use SecureBoot unless you disable it in BIOS/EFI):
https://wiki.ubuntu.com/UEFI/SecureBoot#How_can_I_do_non-automated_signing_of_drivers.3F
Nvidia package will run kmodsign automatically. You don't need to worry about that part.
If you are on a screen with an <Ok> button and you cannot click it, press the tab key to access the <Ok> button.

Revision history for this message
Christopher Ottley (cottley) wrote :

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

Revision history for this message
Daniel Letzeisen (dtl131) wrote :

@Christopher. The -headers-generic(-hwe) and gcc packages are part of the install media. Did you remove them?

Revision history for this message
Vedran Rafaelic (croraf) wrote :

@Daniel dtl131: I purged the (once again) corrupted kernel (which got corrupted on software update using Software Updater). This was not easy though.

I purged the nvidia packages targeting this kernel also.

I'm on the older kernel now, and using Nuveaou driver.

1. Do you suggest that I use apt in the terminal rather than using the Additional Drivers GUI?
2. If so is this for debugging purposes?
3. If I remember correctly (from the last time this happened) using Additional Drivers GUI might work now, should I try it first?

Revision history for this message
Vedran Rafaelic (croraf) wrote (last edit ):

The Nouveau driver works great btw now with Nvidia RTX 2080. Using wayland display server.

Revision history for this message
Daniel Letzeisen (dtl131) wrote :

@Vedran: Yes, I recommend using the terminal instead of the additional driver manager GUI, because the GUI seems to install the pre-built modules that are triggering this bug for hundreds (probably thousands) of people. With apt, you can force the dkms version:

sudo apt install nvidia-driver-580-open nvidia-dkms-580-open

description: updated
Revision history for this message
Vedran Rafaelic (croraf) wrote (last edit ):

Ok, I tried to install it once again using Additional Drivers GUI (nvidia-driver-550-open from Nouveau).

No error shown but...

As suspected previously, THIS ACTION INSTALLS NEW KERNEL for some reason (6.14.0-32-generic) (likely the most recent available?) and this one gets booted next time. And because this new kernel got only partially installed (is thus corrupted) nothing works.

And I also suspect that if you are already on the latest kernel, the update of Nvidia drivers through Additional Drivers GUI works fine. As I think this worked for me last time. Update kernel first, then the drivers should work fine.

Revision history for this message
Vedran Rafaelic (croraf) wrote (last edit ):

DEBUGGED!!!

The issue in my case comes from the fact that, if you are not on the latest available kernel, updating nvidia drivers (and first time I did it using Software Updater!!! which I think just uses APT under the hood, and verified also using Additional Drivers), automatically tries to install latest kernel, which succeeds only partially.

The kernel then gets booted and is corrupted.

If, I'm already on the latest kernel (6.14.0-32-generic as of now) updating nvidia-drivers through Additioanl Drivers works perfectly (just updated with that on 570-open and 580 closed kernel).

EDIT: Oh I see the note now on the original post. Yes, the headers do not get installed with this automatic latest kernel installation.

Revision history for this message
Martin Modrák (modrakm) wrote :

The same issue happened for me after upgrading from 6.14.0-34-generic to 6.14.0-35-generic. No Wi-Fi, no Bluetooth, no external display. I fixed it by:

1) Booting into the older version of kernel via Grub (Advanced boot options for ubuntu) - immediately everything works again
2) Manually installing the headers:
sudo apt install linux-headers-6.14.0-35-generic

Now everything works also in the new kernel.

Revision history for this message
Eduardo Razera (erazera) wrote :
Download full text (8.8 KiB)

Hey i appreciate the response, i'm having the same problem that you
described. I've tried booting up using older versions and it did indeed
solve the problem but i tried using the command you sent: "sudo apt install
linux-headers-6.14.0-35-generic", but i got this response

Selecting previously unselected package linux-hwe-6.14-headers-6.14.0-35.
(Reading database ... 272837 files and directories currently installed.)
Preparing to unpack
.../linux-hwe-6.14-headers-6.14.0-35_6.14.0-35.35~24.04.1_all.deb ...
Unpacking linux-hwe-6.14-headers-6.14.0-35 (6.14.0-35.35~24.04.1) ...
Selecting previously unselected package linux-headers-6.14.0-35-generic.
Preparing to unpack
.../linux-headers-6.14.0-35-generic_6.14.0-35.35~24.04.1_amd64.deb ...
Unpacking linux-headers-6.14.0-35-generic (6.14.0-35.35~24.04.1) ...
Setting up linux-modules-nvidia-570-6.14.0-34-generic
(6.14.0-34.34~24.04.1+1) ...
linux-image-nvidia-6.14.0-34-generic: constructing .ko files
/usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
/usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
/usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
/usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
/usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
/usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
/usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
/usr/bin/ld.bfd: cannot open linker script file
/usr/src/linux-headers-6.14.0-34-generic/scripts/module.lds: No such file
or directory
/usr/bin/ld.bfd: cannot open linker script file
/usr/src/linux-headers-6.14.0-34-generic/scripts/module.lds: No such file
or directory
/usr/bin/ld.bfd: cannot open linker script file
/usr/src/linux-headers-6.14.0-34-generic/scripts/module.lds: No such file
or directory
/usr/bin/ld.bfd: cannot open linker script file
/usr/src/linux-headers-6.14.0-34-generic/scripts/module.lds: No such file
or directory
/usr/bin/ld.bfd: cannot open linker script file
/usr/src/linux-headers-6.14.0-34-generic/scripts/module.lds: No such file
or directory
sha256sum: nvidia-drm.ko: No such file or directory
nvidia-drm.ko: FAILED open or read
sha256sum: nvidia-modeset.ko: No such file or directory
nvidia-modeset.ko: FAILED open or read
sha256sum: nvidia-peermem.ko: No such file or directory
nvidia-peermem.ko: FAILED open or read
sha256sum: nvidia-uvm.ko: No such file or directory
nvidia-uvm.ko: FAILED open or read
sha256sum: nvidia.ko: No such file or directory
nvidia.ko: FAILED open or read
sha256sum: WARNING: 5 listed files could not be read
dpkg: error processing package linux-modules-nvidia-570-6.14.0-34-generic
(--configure):
 installed linux-modules-nvidia-570-6.14.0-34-generic package
post-installation script subprocess returned error exit status 1
Setting up linux-hwe-6.14-headers-6.14.0-35 (6.14.0-35.35~24.04.1) ...
dpkg: dependency problems prevent configuration of
linux-modules-nvidia-570-generic-hwe-24.04:
 linux-modules-nvidia-570-generic-hwe-24.04 depends on
linux-modules-nvidia-570-6.14.0-34-generic (= 6.14.0-34.34~24.04.1+1);
however:
  Package linux-modules-nvidia-570-6.14.0-34-generic is not configured yet.

dpkg: error processing packa...

Read more...

Revision history for this message
Daniel Letzeisen (dtl131) wrote :

I have no idea why these nvidia module packages do not depend on the headers if they're needed.

@Eduardo: You also need to install linux-headers-6.14.0-34-generic because you still have -34 kernel installed.

Revision history for this message
Eduardo Razera (erazera) wrote :
Download full text (4.5 KiB)

I did the command and it worked. To do that I booted into the older
version, but after installing the news ones, if I boot normally on grub the
same issues persists, no WiFi, Bluetooth and the trackpad doesn’t work.
Should I do anything else to fix this?

Just to recap what I did was but using the advanced options into an older
version -33 kernel, updated it to 34 and 35, restarted and booted normally
just choosing Ubuntu on the Grub options but all the problem listed above
continued

Em seg., 10 de nov. de 2025 às 11:45, Daniel Letzeisen <
<email address hidden>> escreveu:

> I have no idea why these nvidia module packages do not depend on the
> headers if they're needed.
>
> @Eduardo: You also need to install linux-headers-6.14.0-34-generic
> because you still have -34 kernel installed.
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (2130786).
> https://bugs.launchpad.net/bugs/2115148
>
> Title:
> nvidia driver error: cannot open linker script file
>
> Status in linux-restricted-modules package in Ubuntu:
> Confirmed
> Status in linux-restricted-modules-hwe-6.14 package in Ubuntu:
> Confirmed
>
> Bug description:
>
> -----------------------------------------------------------------------------
> *** If you've come here from a duplicate bug ***
>
> Please make sure you have the headers relevant to your kernel installed
> For most people,
> sudo apt install linux-headers-generic-hwe-24.04
>
> -----------------------------------------------------------------------------
>
>
> package linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22 failed
> to install/upgrade: installed linux-modules-nvidia-570-6.14.0-22-generic
> package post-installation script subprocess returned error exit status 1
>
> ProblemType: Package
> DistroRelease: Ubuntu 25.04
> Package: linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22
> ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
> Uname: Linux 6.14.0-15-generic x86_64
> NonfreeKernelModules: nvidia_modeset nvidia
> ApportVersion: 2.32.0-0ubuntu5
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC1: igor 2732 F.... wireplumber
> /dev/snd/controlC0: igor 2732 F.... wireplumber
> /dev/snd/seq: igor 2728 F.... pipewire
> CasperMD5CheckResult: pass
> Date: Sun Jun 22 10:04:44 2025
> ErrorMessage: installed linux-modules-nvidia-570-6.14.0-22-generic
> package post-installation script subprocess returned error exit status 1
> InstallationDate: Installed on 2025-06-20 (2 days ago)
> InstallationMedia: Ubuntu 25.04 "Plucky Puffin" - Release amd64
> (20250415.3)
> MachineType: ASUSTeK COMPUTER INC. TUF Gaming FX505DT_FX505DT
> ProcFB: 0 amdgpudrmfb
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.14.0-15-generic
> root=UUID=92995c6d-7c20-4f2d-b1e5-a9117a4827ea ro quiet splash
> crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M
> vt.handoff=7
> Python3Details: /usr/bin/python3.13, Python 3.13.3, python3-minimal,
> 3.13.3-1
> PythonDetails: N/A
> RebootRequiredPkgs: Error: path contained symlinks.
...

Read more...

Revision history for this message
Eduardo Razera (erazera) wrote :
Download full text (4.9 KiB)

Heyy sorry to bother you guys again, but im still having the same issue.
When i boot into older versions of the kernel it works fine. But even if I
update when i boot normally the same thing happens - no wifi, no Bluetooth
and no trackpad

Em seg., 10 de nov. de 2025 às 15:31, Eduardo Razera <email address hidden>
escreveu:

> I did the command and it worked. To do that I booted into the older
> version, but after installing the news ones, if I boot normally on grub the
> same issues persists, no WiFi, Bluetooth and the trackpad doesn’t work.
> Should I do anything else to fix this?
>
> Just to recap what I did was but using the advanced options into an older
> version -33 kernel, updated it to 34 and 35, restarted and booted normally
> just choosing Ubuntu on the Grub options but all the problem listed above
> continued
>
> Em seg., 10 de nov. de 2025 às 11:45, Daniel Letzeisen <
> <email address hidden>> escreveu:
>
>> I have no idea why these nvidia module packages do not depend on the
>> headers if they're needed.
>>
>> @Eduardo: You also need to install linux-headers-6.14.0-34-generic
>> because you still have -34 kernel installed.
>>
>> --
>> You received this bug notification because you are subscribed to a
>> duplicate bug report (2130786).
>> https://bugs.launchpad.net/bugs/2115148
>>
>> Title:
>> nvidia driver error: cannot open linker script file
>>
>> Status in linux-restricted-modules package in Ubuntu:
>> Confirmed
>> Status in linux-restricted-modules-hwe-6.14 package in Ubuntu:
>> Confirmed
>>
>> Bug description:
>>
>> -----------------------------------------------------------------------------
>> *** If you've come here from a duplicate bug ***
>>
>> Please make sure you have the headers relevant to your kernel installed
>> For most people,
>> sudo apt install linux-headers-generic-hwe-24.04
>>
>> -----------------------------------------------------------------------------
>>
>>
>> package linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22 failed
>> to install/upgrade: installed linux-modules-nvidia-570-6.14.0-22-generic
>> package post-installation script subprocess returned error exit status 1
>>
>> ProblemType: Package
>> DistroRelease: Ubuntu 25.04
>> Package: linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22
>> ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
>> Uname: Linux 6.14.0-15-generic x86_64
>> NonfreeKernelModules: nvidia_modeset nvidia
>> ApportVersion: 2.32.0-0ubuntu5
>> Architecture: amd64
>> AudioDevicesInUse:
>> USER PID ACCESS COMMAND
>> /dev/snd/controlC1: igor 2732 F.... wireplumber
>> /dev/snd/controlC0: igor 2732 F.... wireplumber
>> /dev/snd/seq: igor 2728 F.... pipewire
>> CasperMD5CheckResult: pass
>> Date: Sun Jun 22 10:04:44 2025
>> ErrorMessage: installed linux-modules-nvidia-570-6.14.0-22-generic
>> package post-installation script subprocess returned error exit status 1
>> InstallationDate: Installed on 2025-06-20 (2 days ago)
>> InstallationMedia: Ubuntu 25.04 "Plucky Puffin" - Release amd64
>> (20250415.3)
>> MachineType: ASUSTeK COMPUTER INC. TUF Gaming FX505DT_FX505DT
>> P...

Read more...

Revision history for this message
Kuba Pawlak (kuba-t-pawlak) wrote (last edit ):

Drivers installed via linux-modules-nvidia-* do not support booting into older version kernels. The issue is in userspace compatibility. NVIDIA does not support mixing driver and userspace versions, this must be the exact version. Linux-modules-nvidia-* ship precompiled drivers that have a specific version. Each kernel has only one matching l-m-n package, so your current kernel has the latest nvidia driver, but older kernels have old drivers in their respective module trees. But there is only one userspace set, the one shipped with the latest driver. This means booting an older kernel break 1:1 kernel>userspace relationship and you end up with black screen.
Only DKMS set supports booting into old kernels because the drivers are compiled on the machine, for all kernels present, so old kernels get the latest driver that matches the latest userspace. This breaks secure boot as the drivers are not signed with Canonical key, so if it is a must, you would need to enroll your MOK into EFI.
You can switch with:
sudo apt remove linux-modules-nvidia-570*
sudo apt install nvidia-driver-570

Or go for 580 driver with:
sudo apt install nvidia-driver-580

Revision history for this message
Eduardo Razera (erazera) wrote :
Download full text (5.4 KiB)

Thanks for the reply Kuba!
Although im not gonna lie, i found it confusing to understand what you
sent.

Basically what happened is when the drivers updated they broke with the new
35 kernel?

And what i should do is boot into the version that is working
do this - sudo apt remove linux-modules-nvidia-570*
and then sudo apt install nvidia-driver-570
reboot and boot normally to see if its fixed?

Again really appreciate the response

Em qua., 12 de nov. de 2025 às 10:01, Kuba Pawlak <
<email address hidden>> escreveu:

> Drivers installed via linux-modules-nvidia-* do not support booting into
> older version kernels. The issue is in userspace compatibility. NVIDIA does
> not support mixing driver and userspace versions, this must be the exact
> version. Linux-modules-nvidia-* ship precompiled drivers that have a
> specific version. Each kernel has only one matching l-m-n package, so your
> current kernel has the latest nvidia driver, but older kernels have old
> drivers in their respective module trees. But there is only one userspace
> set, the one shipped with the latest driver. This means booting an older
> kernel break 1:1 kernel>userspace relationship and you end up with black
> screen.
> Only DKMS set supports booting into old kernels because the drivers are
> compiled on the machine, for all kernels present, so old kernels get the
> latest driver that matches the latest userspace. This breaks secure boot as
> the drivers are not signed with Canonical key, so if it is a must, you
> would need to enroll your MOK into EFI.
> You can switch with:
> sudo apt remove linux-modules-nvidia-570*
> sudo apt install nvidia-driver-570
>
> Or go for 580 driver with:
> sudo apt install nvidia-driver-580
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (2130786).
> https://bugs.launchpad.net/bugs/2115148
>
> Title:
> nvidia driver error: cannot open linker script file
>
> Status in linux-restricted-modules package in Ubuntu:
> Confirmed
> Status in linux-restricted-modules-hwe-6.14 package in Ubuntu:
> Confirmed
>
> Bug description:
>
> -----------------------------------------------------------------------------
> *** If you've come here from a duplicate bug ***
>
> Please make sure you have the headers relevant to your kernel installed
> For most people,
> sudo apt install linux-headers-generic-hwe-24.04
>
> -----------------------------------------------------------------------------
>
>
> package linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22 failed
> to install/upgrade: installed linux-modules-nvidia-570-6.14.0-22-generic
> package post-installation script subprocess returned error exit status 1
>
> ProblemType: Package
> DistroRelease: Ubuntu 25.04
> Package: linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22
> ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
> Uname: Linux 6.14.0-15-generic x86_64
> NonfreeKernelModules: nvidia_modeset nvidia
> ApportVersion: 2.32.0-0ubuntu5
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC1: igor 2732 F.... wireplumber
> /dev/snd/controlC0: i...

Read more...

Revision history for this message
Daniel Letzeisen (dtl131) wrote :

500 people affected now and still no dependency on the headers? I'm getting tired of marking duplicates..

Revision history for this message
Eduardo Razera (erazera) wrote :
Download full text (4.0 KiB)

i still haven't been able to fix it, tried what was told on the email
replies but it didn't work

Em qua., 26 de nov. de 2025 às 20:10, Daniel Letzeisen <
<email address hidden>> escreveu:

> 500 people affected now and still no dependency on the headers? I'm
> getting tired of marking duplicates..
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (2130786).
> https://bugs.launchpad.net/bugs/2115148
>
> Title:
> nvidia driver error: cannot open linker script file
>
> Status in linux-restricted-modules package in Ubuntu:
> Confirmed
> Status in linux-restricted-modules-hwe-6.14 package in Ubuntu:
> Confirmed
>
> Bug description:
>
> -----------------------------------------------------------------------------
> *** If you've come here from a duplicate bug ***
>
> Please make sure you have the headers relevant to your kernel installed
> For most people,
> sudo apt install linux-headers-generic-hwe-24.04
>
> -----------------------------------------------------------------------------
>
>
> package linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22 failed
> to install/upgrade: installed linux-modules-nvidia-570-6.14.0-22-generic
> package post-installation script subprocess returned error exit status 1
>
> ProblemType: Package
> DistroRelease: Ubuntu 25.04
> Package: linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22
> ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
> Uname: Linux 6.14.0-15-generic x86_64
> NonfreeKernelModules: nvidia_modeset nvidia
> ApportVersion: 2.32.0-0ubuntu5
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC1: igor 2732 F.... wireplumber
> /dev/snd/controlC0: igor 2732 F.... wireplumber
> /dev/snd/seq: igor 2728 F.... pipewire
> CasperMD5CheckResult: pass
> Date: Sun Jun 22 10:04:44 2025
> ErrorMessage: installed linux-modules-nvidia-570-6.14.0-22-generic
> package post-installation script subprocess returned error exit status 1
> InstallationDate: Installed on 2025-06-20 (2 days ago)
> InstallationMedia: Ubuntu 25.04 "Plucky Puffin" - Release amd64
> (20250415.3)
> MachineType: ASUSTeK COMPUTER INC. TUF Gaming FX505DT_FX505DT
> ProcFB: 0 amdgpudrmfb
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.14.0-15-generic
> root=UUID=92995c6d-7c20-4f2d-b1e5-a9117a4827ea ro quiet splash
> crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M
> vt.handoff=7
> Python3Details: /usr/bin/python3.13, Python 3.13.3, python3-minimal,
> 3.13.3-1
> PythonDetails: N/A
> RebootRequiredPkgs: Error: path contained symlinks.
> RelatedPackageVersions: grub-pc N/A
> SourcePackage: linux-restricted-modules
> Title: package linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22
> failed to install/upgrade: installed
> linux-modules-nvidia-570-6.14.0-22-generic package post-installation script
> subprocess returned error exit status 1
> UpgradeStatus: No upgrade log present (probably fresh install)
> dmi.bios.date: 01/28/2021
> dmi.bios.release: 5.14
> dmi.bios.vendor: American Megatrends Inc.
> dmi.bios...

Read more...

Revision history for this message
Stefan (chemol-e) wrote :
Download full text (7.8 KiB)

I think I run into this problem with every single kernel update now. It's really annoying.

Am 27. November 2025 01:00:34 MEZ schrieb Eduardo Razera <email address hidden>:
>i still haven't been able to fix it, tried what was told on the email
>replies but it didn't work
>
>Em qua., 26 de nov. de 2025 às 20:10, Daniel Letzeisen <
><email address hidden>> escreveu:
>
>> 500 people affected now and still no dependency on the headers? I'm
>> getting tired of marking duplicates..
>>
>> --
>> You received this bug notification because you are subscribed to a
>> duplicate bug report (2130786).
>> https://bugs.launchpad.net/bugs/2115148
>>
>> Title:
>> nvidia driver error: cannot open linker script file
>>
>> Status in linux-restricted-modules package in Ubuntu:
>> Confirmed
>> Status in linux-restricted-modules-hwe-6.14 package in Ubuntu:
>> Confirmed
>>
>> Bug description:
>>
>> -----------------------------------------------------------------------------
>> *** If you've come here from a duplicate bug ***
>>
>> Please make sure you have the headers relevant to your kernel installed
>> For most people,
>> sudo apt install linux-headers-generic-hwe-24.04
>>
>> -----------------------------------------------------------------------------
>>
>>
>> package linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22 failed
>> to install/upgrade: installed linux-modules-nvidia-570-6.14.0-22-generic
>> package post-installation script subprocess returned error exit status 1
>>
>> ProblemType: Package
>> DistroRelease: Ubuntu 25.04
>> Package: linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22
>> ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
>> Uname: Linux 6.14.0-15-generic x86_64
>> NonfreeKernelModules: nvidia_modeset nvidia
>> ApportVersion: 2.32.0-0ubuntu5
>> Architecture: amd64
>> AudioDevicesInUse:
>> USER PID ACCESS COMMAND
>> /dev/snd/controlC1: igor 2732 F.... wireplumber
>> /dev/snd/controlC0: igor 2732 F.... wireplumber
>> /dev/snd/seq: igor 2728 F.... pipewire
>> CasperMD5CheckResult: pass
>> Date: Sun Jun 22 10:04:44 2025
>> ErrorMessage: installed linux-modules-nvidia-570-6.14.0-22-generic
>> package post-installation script subprocess returned error exit status 1
>> InstallationDate: Installed on 2025-06-20 (2 days ago)
>> InstallationMedia: Ubuntu 25.04 "Plucky Puffin" - Release amd64
>> (20250415.3)
>> MachineType: ASUSTeK COMPUTER INC. TUF Gaming FX505DT_FX505DT
>> ProcFB: 0 amdgpudrmfb
>> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.14.0-15-generic
>> root=UUID=92995c6d-7c20-4f2d-b1e5-a9117a4827ea ro quiet splash
>> crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M
>> vt.handoff=7
>> Python3Details: /usr/bin/python3.13, Python 3.13.3, python3-minimal,
>> 3.13.3-1
>> PythonDetails: N/A
>> RebootRequiredPkgs: Error: path contained symlinks.
>> RelatedPackageVersions: grub-pc N/A
>> SourcePackage: linux-restricted-modules
>> Title: package linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22
>> failed to install/upgrade: installed
>> linux-modules-nvidia-570-6.14.0-22-generic pack...

Read more...

Revision history for this message
Daniel Letzeisen (dtl131) wrote :

@Stefan: if you have the headers metapackage installed, the only thing I can think of is that the modules need a "PreDepends" on the corresponding headers to make sure the headers are installed/configured first.

Revision history for this message
Eduardo Razera (erazera) wrote :
Download full text (4.9 KiB)

@<email address hidden> @DanielLetzeisen @Stefan

I believe i have found a part time solution, if yall could please read what
i did and chck if there is a problem in doing that

So i booted into an older Kernel version using the advanced options for
Ubuntu (i used de .33 version)

nvidia-smi
Command 'nvidia-smi' not found, but can be installed with:

I checked and realized my nvidia drivers were missing, so i used this
command to auto install the recommended one based on my computer specs:
"sudo ubuntu-drivers autoinstall"

It installed, them i had to DISABLE secure boot to make it work, if it its
disabled i can run the latest kernel with no issues.
My doubt is, what I did was the correct solution? Is there a problem in
disabling secure boot ? I would be able to enable it again when Canonical
fix this issue ?

If yall have some time to answer me i would really appreciate it

Em qui., 27 de nov. de 2025 às 08:36, Daniel Letzeisen <
<email address hidden>> escreveu:

> @Stefan: if you have the headers metapackage installed, the only thing I
> can think of is that the modules need a "PreDepends" on the
> corresponding headers to make sure the headers are installed/configured
> first.
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (2130786).
> https://bugs.launchpad.net/bugs/2115148
>
> Title:
> nvidia driver error: cannot open linker script file
>
> Status in linux-restricted-modules package in Ubuntu:
> Confirmed
> Status in linux-restricted-modules-hwe-6.14 package in Ubuntu:
> Confirmed
>
> Bug description:
>
> -----------------------------------------------------------------------------
> *** If you've come here from a duplicate bug ***
>
> Please make sure you have the headers relevant to your kernel installed
> For most people,
> sudo apt install linux-headers-generic-hwe-24.04
>
> -----------------------------------------------------------------------------
>
>
> package linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22 failed
> to install/upgrade: installed linux-modules-nvidia-570-6.14.0-22-generic
> package post-installation script subprocess returned error exit status 1
>
> ProblemType: Package
> DistroRelease: Ubuntu 25.04
> Package: linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22
> ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
> Uname: Linux 6.14.0-15-generic x86_64
> NonfreeKernelModules: nvidia_modeset nvidia
> ApportVersion: 2.32.0-0ubuntu5
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC1: igor 2732 F.... wireplumber
> /dev/snd/controlC0: igor 2732 F.... wireplumber
> /dev/snd/seq: igor 2728 F.... pipewire
> CasperMD5CheckResult: pass
> Date: Sun Jun 22 10:04:44 2025
> ErrorMessage: installed linux-modules-nvidia-570-6.14.0-22-generic
> package post-installation script subprocess returned error exit status 1
> InstallationDate: Installed on 2025-06-20 (2 days ago)
> InstallationMedia: Ubuntu 25.04 "Plucky Puffin" - Release amd64
> (20250415.3)
> MachineType: ASUSTeK COMPUTER INC. TUF Gaming FX505DT_FX505DT
> ProcF...

Read more...

Revision history for this message
Daniel Letzeisen (dtl131) wrote :

@Eduardo: you can always self-sign the Nvidia modules if you want to keep SecureBoot enabled - https://wiki.ubuntu.com/UEFI/SecureBoot#How_can_I_do_non-automated_signing_of_drivers.3F (the last step with kmodsign should be done automatically when you install the Nvdida dkms driver)

I guess you worked around bug 2131230 that you reported?

Revision history for this message
Eduardo Razera (erazera) wrote :
Download full text (4.3 KiB)

Honestly i'm not sure, i've had quite a few bugs but doing what i said
above seem to have made me able to run things smoothly again

Really appreciate the help from you guys! I'll check out the link you sent

Em qui., 27 de nov. de 2025 às 12:01, Daniel Letzeisen <
<email address hidden>> escreveu:

> @Eduardo: you can always self-sign the Nvidia modules if you want to
> keep SecureBoot enabled -
> https://wiki.ubuntu.com/UEFI/SecureBoot#How_can_I_do_non-
> automated_signing_of_drivers.3F (the last step with kmodsign should be
> done automatically when you install the Nvdida dkms driver)
>
> I guess you worked around bug 2131230 that you reported?
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (2130786).
> https://bugs.launchpad.net/bugs/2115148
>
> Title:
> nvidia driver error: cannot open linker script file
>
> Status in linux-restricted-modules package in Ubuntu:
> Confirmed
> Status in linux-restricted-modules-hwe-6.14 package in Ubuntu:
> Confirmed
>
> Bug description:
>
> -----------------------------------------------------------------------------
> *** If you've come here from a duplicate bug ***
>
> Please make sure you have the headers relevant to your kernel installed
> For most people,
> sudo apt install linux-headers-generic-hwe-24.04
>
> -----------------------------------------------------------------------------
>
>
> package linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22 failed
> to install/upgrade: installed linux-modules-nvidia-570-6.14.0-22-generic
> package post-installation script subprocess returned error exit status 1
>
> ProblemType: Package
> DistroRelease: Ubuntu 25.04
> Package: linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22
> ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
> Uname: Linux 6.14.0-15-generic x86_64
> NonfreeKernelModules: nvidia_modeset nvidia
> ApportVersion: 2.32.0-0ubuntu5
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC1: igor 2732 F.... wireplumber
> /dev/snd/controlC0: igor 2732 F.... wireplumber
> /dev/snd/seq: igor 2728 F.... pipewire
> CasperMD5CheckResult: pass
> Date: Sun Jun 22 10:04:44 2025
> ErrorMessage: installed linux-modules-nvidia-570-6.14.0-22-generic
> package post-installation script subprocess returned error exit status 1
> InstallationDate: Installed on 2025-06-20 (2 days ago)
> InstallationMedia: Ubuntu 25.04 "Plucky Puffin" - Release amd64
> (20250415.3)
> MachineType: ASUSTeK COMPUTER INC. TUF Gaming FX505DT_FX505DT
> ProcFB: 0 amdgpudrmfb
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.14.0-15-generic
> root=UUID=92995c6d-7c20-4f2d-b1e5-a9117a4827ea ro quiet splash
> crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M
> vt.handoff=7
> Python3Details: /usr/bin/python3.13, Python 3.13.3, python3-minimal,
> 3.13.3-1
> PythonDetails: N/A
> RebootRequiredPkgs: Error: path contained symlinks.
> RelatedPackageVersions: grub-pc N/A
> SourcePackage: linux-restricted-modules
> Title: package linux-modules-nvidia-570-6.14.0-22-generi...

Read more...

To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.