[Bug 2123782] Re: Updating kernel version when installing nvidia drivers fails
Ubuntu Foundations Team Bug Bot
2123782 at bugs.launchpad.net
Mon Sep 15 08:19:06 UTC 2025
** Package changed: ubuntu => ubuntu-release-upgrader (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/2123782
Title:
Updating kernel version when installing nvidia drivers fails
Status in ubuntu-release-upgrader package in Ubuntu:
New
Bug description:
When installing the recommended nvidia drivers with `ubuntu-drivers
install` everything looks normal until:
```
info: Selecting GID from range 100 to 999 ...
info: Adding system user `nvidia-persistenced' (UID 117) ...
info: Adding new group `nvidia-persistenced' (GID 122) ...
info: Adding new user `nvidia-persistenced' (UID 117) with group `nvidia-persistenced' ...
info: Not creating `/nonexistent'.
Setting up nvidia-kernel-common-580 (580.65.06-0ubuntu0.25.04.4) ...
Installing new version of config file /etc/modprobe.d/nvidia-graphics-drivers-kms.conf ...
update-initramfs: deferring update (trigger activated)
Setting up libnvidia-extra-580:amd64 (580.65.06-0ubuntu0.25.04.4) ...
Setting up libnvidia-common-580 (580.65.06-0ubuntu0.25.04.4) ...
Setting up libnvidia-gl-580:amd64 (580.65.06-0ubuntu0.25.04.4) ...
Setting up libnvidia-gl-580:i386 (580.65.06-0ubuntu0.25.04.4) ...
Setting up linux-image-6.14.0-29-generic (6.14.0-29.29) ...
Setting up libnvidia-decode-580:amd64 (580.65.06-0ubuntu0.25.04.4) ...
Setting up libnvidia-decode-580:i386 (580.65.06-0ubuntu0.25.04.4) ...
Setting up libnvidia-cfg1-580:amd64 (580.65.06-0ubuntu0.25.04.4) ...
Setting up nvidia-kernel-source-580-open (580.65.06-0ubuntu0.25.04.4) ...
Setting up linux-modules-nvidia-580-open-6.14.0-29-generic (6.14.0-29.29+1) ...
Setting up xserver-xorg-video-nvidia-580 (580.65.06-0ubuntu0.25.04.4) ...
Setting up nvidia-utils-580 (580.65.06-0ubuntu0.25.04.4) ...
Setting up libnvidia-encode-580:amd64 (580.65.06-0ubuntu0.25.04.4) ...
Setting up libnvidia-encode-580:i386 (580.65.06-0ubuntu0.25.04.4) ...
Setting up linux-modules-nvidia-580-open-generic (6.14.0-29.29+1) ...
Setting up nvidia-driver-580-open (580.65.06-0ubuntu0.25.04.4) ...
Processing triggers for libc-bin (2.41-6ubuntu1.1) ...
Processing triggers for man-db (2.13.0-1) ...
Processing triggers for dbus (1.16.2-2ubuntu1) ...
Processing triggers for initramfs-tools (0.147ubuntu1.1) ...
update-initramfs: Generating /boot/initrd.img-6.14.0-29-generic
Updating kernel version 6.14.0-29-generic in systemd-boot...
Processing triggers for linux-image-6.14.0-29-generic (6.14.0-29.29) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.14.0-29-generic
Updating kernel version 6.14.0-29-generic in systemd-boot...
/etc/kernel/postinst.d/zz-systemd-boot:
Installing kernel version 6.14.0-29-generic in systemd-boot...
Failed to open kernel image file '/boot/-6.14.0-29-generic': No such file or directory
run-parts: /etc/kernel/postinst.d/zz-systemd-boot exited with return code 1
dpkg: error processing package linux-image-6.14.0-29-generic (--configure):
installed linux-image-6.14.0-29-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-6.14.0-29-generic
```
Running `dpkg --configure -a` after fixes the problem and output looks like this:
```
Setting up linux-image-6.14.0-29-generic (6.14.0-29.29) ...
Processing triggers for linux-image-6.14.0-29-generic (6.14.0-29.29) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.14.0-29-generic
Updating kernel version 6.14.0-29-generic in systemd-boot...
/etc/kernel/postinst.d/zz-systemd-boot:
Installing kernel version 6.14.0-29-generic in systemd-boot...
dracut[I]: Executing: /usr/bin/dracut -f --add-confdir hostonly --kernel-image /boot/vmlinuz-6.14.0-29-generic --no-uefi --kver 6.14.0-29-generic /tmp/kernel-install.staging.kn8WeA/initrd
dracut[I]: *** Including module: bash ***
dracut[I]: *** Including module: systemd ***
dracut[I]: *** Including module: systemd-ask-password ***
dracut[I]: *** Including module: systemd-battery-check ***
dracut[I]: *** Including module: systemd-cryptsetup ***
dracut[I]: *** Including module: systemd-initrd ***
dracut[I]: *** Including module: systemd-journald ***
dracut[I]: *** Including module: systemd-modules-load ***
dracut[I]: *** Including module: systemd-pcrphase ***
dracut[I]: *** Including module: systemd-sysctl ***
dracut[I]: *** Including module: systemd-tmpfiles ***
dracut[I]: *** Including module: systemd-udevd ***
dracut[I]: *** Including module: console-setup ***
dracut[I]: *** Including module: i18n ***
dracut[I]: *** Including module: plymouth ***
dracut[I]: *** Including module: simple-drm ***
dracut[I]: *** Including module: systemd-sysusers ***
dracut[I]: *** Including module: btrfs ***
dracut[I]: *** Including module: crypt ***
dracut[I]: *** Including module: dm ***
dracut[I]: *** Including module: kernel-modules ***
dracut[I]: *** Including module: kernel-modules-extra ***
dracut[I]: *** Including module: rootfs-block ***
dracut[I]: *** Including module: terminfo ***
dracut[I]: *** Including module: udev-rules ***
dracut[I]: *** Including module: dracut-systemd ***
dracut[I]: *** Including module: usrmount ***
dracut[I]: *** Including module: base ***
dracut[I]: *** Including module: fs-lib ***
dracut[I]: *** Including module: shell-interpreter ***
dracut[I]: *** Including module: shutdown ***
dracut[I]: *** Including modules done ***
dracut[I]: *** Installing kernel module dependencies ***
dracut[I]: *** Installing kernel module dependencies done ***
dracut[I]: *** Resolving executable dependencies ***
dracut[I]: *** Resolving executable dependencies done ***
dracut[I]: *** Hardlinking files ***
dracut[I]: *** Hardlinking files done ***
dracut[I]: *** Generating early-microcode cpio image ***
dracut[I]: *** Constructing AuthenticAMD.bin ***
dracut[I]: *** Store current command line parameters ***
dracut[I]: Stored kernel commandline:
dracut[I]: rd.driver.pre=btrfs
dracut[I]: rd.luks.uuid=luks-48377af5-17af-4e90-9aa3-dcbe92a33050
dracut[I]: root=/dev/mapper/luks-48377af5-17af-4e90-9aa3-dcbe92a33050 rootfstype=btrfs rootflags=rw,noatime,compress=lzo,ssd,discard,space_cache=v2,autodefrag,subvolid=256,subvol=/@,subvol=@
dracut[I]: *** Stripping files ***
dracut[I]: *** Stripping files done ***
dracut[I]: *** Creating image file '/tmp/kernel-install.staging.kn8WeA/initrd' ***
dracut[I]: Using auto-determined compression method 'zstd'
dracut[I]: *** Creating initramfs image file '/tmp/kernel-install.staging.kn8WeA/initrd' done ***
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.14.0-29-generic
Found initrd image: /boot/initrd.img-6.14.0-29-generic
Found linux image: /boot/vmlinuz-6.14.0-28-generic
Found initrd image: /boot/initrd.img-6.14.0-28-generic
Found memtest86+ 64bit EFI image: /boot/memtest86+x64.efi
Found memtest86+ 32bit EFI image: /boot/memtest86+ia32.efi
Found memtest86+ 64bit image: /boot/memtest86+x64.bin
Found memtest86+ 32bit image: /boot/memtest86+ia32.bin
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done
```
ProblemType: Bug
DistroRelease: Ubuntu 25.04
Package: ubuntu-release-upgrader-core 1:25.04.18
ProcVersionSignature: Ubuntu 6.14.0-29.29-generic 6.14.8
Uname: Linux 6.14.0-29-generic x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.32.0-0ubuntu5.3
Architecture: amd64
CasperMD5CheckResult: unknown
CrashDB: ubuntu
CrashReports: 600:0:110:250260:2025-09-12 08:14:49.193559361 +0200:2025-09-12 08:14:49.182558983 +0200:/var/crash/linux-image-6.14.0-29-generic.0.crash
CurrentDesktop: KDE
Date: Mon Sep 15 07:28:07 2025
InstallationDate: Installed on 2025-06-11 (96 days ago)
InstallationMedia: Kubuntu 25.04 "Plucky Puffin" - Release amd64 (20250417)
PackageArchitecture: all
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: ubuntu-release-upgrader
Symptom: dist-upgrade
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2123782/+subscriptions
More information about the foundations-bugs
mailing list