Easy fix:

Ubuntu installs a newer kernel/NVIDIA module package ? the matching
kernel headers aren't installed/configured yet ? NVIDIA's module
installation looks for something such as scripts/module.lds ? it isn't
there ? NVIDIA module installation blows up.

sudo apt install linux-headers-generic-hwe-24.04

Done.

Regards,

James


________________________________
From: [email protected] <[email protected]> on behalf of Adriana de 
Vries <[email protected]>
Sent: Thursday, September 24, 2026 6:05 AM
To: [email protected] <[email protected]>
Subject: Re: [Bug 2115148] Re: nvidia driver error: cannot open linker script 
file

Dear friend,

Thanks for your advice.

Yours truly,

Adrie de Vries

Op do 24 sep 2026, 02:45 schreef Nestor Caffa
<[email protected]>:

> Dear friend.
> It has happened to me before, but I go into grub, select an older version
> and fix the problem, then it goes back to normal when it updates.
> Thank you for your concern and your response
>
> El mié, 23 de sept de 2026, 21:31, Marc <[email protected]>
> escribió:
>
> > Had this bug happen every other package update. Original bug report -
> > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.launchpad.net%2Fubuntu%2F%2Bsource%2Flinux-restricted-modules-&data=05%7C02%7C%7Cb620cc159d6a45eb6bd708df1a24fe88%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C639258418322270327%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=Z8sOItVZ9jk17z%2FVVnYGPFXW9FFRqcRtHU7MUzDSvM8%3D&reserved=0<https://bugs.launchpad.net/ubuntu/+source/linux-restricted-modules->
> > hwe-7.0/+bug/2164273
> > <
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.launchpad.net%2Fubuntu%2F%2Bsource%2Flinux-restricted-modules-hwe-7.0%2F%2Bbug%2F2164273&data=05%7C02%7C%7Cb620cc159d6a45eb6bd708df1a24fe88%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C639258418322296246%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=5xf8BZ4O8x81mbG8vYHvPY20l%2FbjwTMoo9zUq4xKpRU%3D&reserved=0<https://bugs.launchpad.net/ubuntu/+source/linux-restricted-modules-hwe-7.0/+bug/2164273>
> >
> >
> > My workaround each time (it is CRITICAL to not restart the machine until
> > these are done):
> > 1. Run sudo apt update && sudo apt upgrade
> > 2. Run sudo apt upgrade again to verify everything is upgraded
> > 3. Run sudo apt autoremove for cleanup
> >
> > Note: These steps work every time. It suggests to me that the linux-
> > headers-generic-hwe gets installed after the attempt to install linux-
> > modules-nvidia
> >
> > --
> > You received this bug notification because you are subscribed to a
> > duplicate bug report (2119307).
> > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.launchpad.net%2Fbugs%2F2115148&data=05%7C02%7C%7Cb620cc159d6a45eb6bd708df1a24fe88%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C639258418322310629%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=Gq1OLaWt%2BI2PFJo294iYRDIwwxyejMAR4MoeEFIVHFo%3D&reserved=0<https://bugs.launchpad.net/bugs/2115148>
> >
> > Title:
> >   nvidia driver error: cannot open linker script file
> >
> > Status in NVIDIA Drivers Ubuntu:
> >   New
> > Status in linux-restricted-modules package in Ubuntu:
> >   Confirmed
> > Status in linux-restricted-modules-hwe-6.17 package in Ubuntu:
> >   Confirmed
> > Status in linux-restricted-modules-hwe-7.0 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.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.
> >
> > To manage notifications about this bug go to:
> >
> >
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.launchpad.net%2Fnvidia-drivers-ubuntu%2F%2Bbug%2F2115148%2F%2Bsubscriptions&data=05%7C02%7C%7Cb620cc159d6a45eb6bd708df1a24fe88%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C639258418322325344%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=olRTj02SiFmKlBbZcRNzkK1nNL3FragQ09L0B5A71Zo%3D&reserved=0<https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/2115148/+subscriptions>
> >
> >
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (2161264).
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.launchpad.net%2Fbugs%2F2115148&data=05%7C02%7C%7Cb620cc159d6a45eb6bd708df1a24fe88%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C639258418322339811%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=xJHZsyx1hQcjNOdseALpPTfxluhEU44I3ZnJz6R5lx8%3D&reserved=0<https://bugs.launchpad.net/bugs/2115148>
>
> Title:
>   nvidia driver error: cannot open linker script file
>
> Status in NVIDIA Drivers Ubuntu:
>   New
> Status in linux-restricted-modules package in Ubuntu:
>   Confirmed
> Status in linux-restricted-modules-hwe-6.17 package in Ubuntu:
>   Confirmed
> Status in linux-restricted-modules-hwe-7.0 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.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.
>
> To manage notifications about this bug go to:
>
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.launchpad.net%2Fnvidia-drivers-ubuntu%2F%2Bbug%2F2115148%2F%2Bsubscriptions&data=05%7C02%7C%7Cb620cc159d6a45eb6bd708df1a24fe88%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C639258418322353985%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=PdntGaEvNuJLQvpYjmM9lzYVjitrJ1D8HUOs%2FhJi8cA%3D&reserved=0<https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/2115148/+subscriptions>
>
>

--
You received this bug notification because you are subscribed to a
duplicate bug report (2147252).
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.launchpad.net%2Fbugs%2F2115148&data=05%7C02%7C%7Cb620cc159d6a45eb6bd708df1a24fe88%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C639258418322368750%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=Uzjua7%2F6kujilqc0UGm854afVIxX7fukNl0hEqatWHk%3D&reserved=0<https://bugs.launchpad.net/bugs/2115148>

Title:
  nvidia driver error: cannot open linker script file

Status in NVIDIA Drivers Ubuntu:
  New
Status in linux-restricted-modules package in Ubuntu:
  Confirmed
Status in linux-restricted-modules-hwe-6.17 package in Ubuntu:
  Confirmed
Status in linux-restricted-modules-hwe-7.0 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.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.

To manage notifications about this bug go to:
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.launchpad.net%2Fnvidia-drivers-ubuntu%2F%2Bbug%2F2115148%2F%2Bsubscriptions&data=05%7C02%7C%7Cb620cc159d6a45eb6bd708df1a24fe88%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C639258418322383035%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=nzo%2FTGzKhTNapQf%2FpPH3s79SJNNhsUmZ1mva69aGLBI%3D&reserved=0<https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/2115148/+subscriptions>

-- 
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/nvidia-drivers-ubuntu/+bug/2115148/+subscriptions


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

Reply via email to