You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The installation of the NVIDIA driver on my Ubuntu 22.04 with kernel 6.5.0-45-generic fails during the DKMS build process. The error occurs in the post-installation script, causing the driver to remain unconfigured.
Steps to Reproduce
Run sudo ubuntu-drivers autoinstall.
Observe the installation process.
Encounter an error during the DKMS build step.
Expected Behavior
The NVIDIA driver should install and configure correctly without errors.The NVIDIA driver should install and configure correctly without errors.
OS Version
7.x (Horus)
Software Version
Latest release (I have run all updates)
Log Output
shuqi@ROG-Zephyrus-M16:~$ sudo apt-get install nvidia-driver-535
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
libnvidia-egl-wayland1 libwpe-1.0-1 libwpebackend-fdo-1.0-1
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libnvidia-cfg1-535 libnvidia-common-535 libnvidia-compute-535 libnvidia-decode-535 libnvidia-encode-535 libnvidia-extra-535 libnvidia-fbc1-535
libnvidia-gl-535 nvidia-compute-utils-535 nvidia-dkms-535 nvidia-firmware-535-535.183.01 nvidia-kernel-common-535 nvidia-kernel-source-535
nvidia-prime nvidia-settings nvidia-utils-535 xserver-xorg-video-nvidia-535
Recommended packages:
libnvidia-compute-535:i386 libnvidia-decode-535:i386 libnvidia-encode-535:i386 libnvidia-fbc1-535:i386 libnvidia-gl-535:i386
The following packages will be REMOVED:
libnvidia-cfg1-555 libnvidia-common-555 libnvidia-compute-555 libnvidia-decode-555 libnvidia-encode-555 libnvidia-extra-555 libnvidia-fbc1-555
libnvidia-gl-555 xserver-xorg-video-nvidia-555
The following NEW packages will be installed:
libnvidia-cfg1-535 libnvidia-common-535 libnvidia-compute-535 libnvidia-decode-535 libnvidia-encode-535 libnvidia-extra-535 libnvidia-fbc1-535
libnvidia-gl-535 nvidia-compute-utils-535 nvidia-dkms-535 nvidia-driver-535 nvidia-firmware-535-535.183.01 nvidia-kernel-common-535
nvidia-kernel-source-535 nvidia-prime nvidia-settings nvidia-utils-535 xserver-xorg-video-nvidia-535
0 upgraded, 18 newly installed, 9 to remove and 0 not upgraded.
Need to get 36.1 kB/327 MB of archives.
After this operation, 203 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 nvidia-dkms-535 amd64 535.183.01-0ubuntu0.22.04.1 [36.1 kB]
Fetched 36.1 kB in 1s (30.3 kB/s)
(Reading database ... 191615 files and directories currently installed.)
Removing xserver-xorg-video-nvidia-555 (555.58.02-0ubuntu0~gpu22.04.1) ...
Removing libnvidia-cfg1-555:amd64 (555.58.02-0ubuntu0~gpu22.04.1) ...
Removing libnvidia-gl-555:amd64 (555.58.02-0ubuntu0~gpu22.04.1) ...
Removing libnvidia-common-555 (555.58.02-0ubuntu0~gpu22.04.1) ...
Removing libnvidia-encode-555:amd64 (555.58.02-0ubuntu0~gpu22.04.1) ...
Removing libnvidia-decode-555:amd64 (555.58.02-0ubuntu0~gpu22.04.1) ...
Removing libnvidia-compute-555:amd64 (555.58.02-0ubuntu0~gpu22.04.1) ...
Removing libnvidia-extra-555:amd64 (555.58.02-0ubuntu0~gpu22.04.1) ...
Removing libnvidia-fbc1-555:amd64 (555.58.02-0ubuntu0~gpu22.04.1) ...
Selecting previously unselected package libnvidia-cfg1-535:amd64.
(Reading database ... 191508 files and directories currently installed.)
Preparing to unpack .../00-libnvidia-cfg1-535_535.183.01-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libnvidia-cfg1-535:amd64 (535.183.01-0ubuntu0.22.04.1) ...
Selecting previously unselected package libnvidia-common-535.
Preparing to unpack .../01-libnvidia-common-535_535.183.01-0ubuntu0.22.04.1_all.deb ...
Unpacking libnvidia-common-535 (535.183.01-0ubuntu0.22.04.1) ...
Selecting previously unselected package libnvidia-compute-535:amd64.
Preparing to unpack .../02-libnvidia-compute-535_535.183.01-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libnvidia-compute-535:amd64 (535.183.01-0ubuntu0.22.04.1) ...
Selecting previously unselected package libnvidia-decode-535:amd64.
Preparing to unpack .../03-libnvidia-decode-535_535.183.01-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libnvidia-decode-535:amd64 (535.183.01-0ubuntu0.22.04.1) ...
Selecting previously unselected package libnvidia-encode-535:amd64.
Preparing to unpack .../04-libnvidia-encode-535_535.183.01-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libnvidia-encode-535:amd64 (535.183.01-0ubuntu0.22.04.1) ...
Selecting previously unselected package libnvidia-extra-535:amd64.
Preparing to unpack .../05-libnvidia-extra-535_535.183.01-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libnvidia-extra-535:amd64 (535.183.01-0ubuntu0.22.04.1) ...
Selecting previously unselected package libnvidia-fbc1-535:amd64.
Preparing to unpack .../06-libnvidia-fbc1-535_535.183.01-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libnvidia-fbc1-535:amd64 (535.183.01-0ubuntu0.22.04.1) ...
Selecting previously unselected package libnvidia-gl-535:amd64.
Preparing to unpack .../07-libnvidia-gl-535_535.183.01-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libnvidia-gl-535:amd64 (535.183.01-0ubuntu0.22.04.1) ...
Selecting previously unselected package nvidia-compute-utils-535.
Preparing to unpack .../08-nvidia-compute-utils-535_535.183.01-0ubuntu0.22.04.1_amd64.deb ...
Unpacking nvidia-compute-utils-535 (535.183.01-0ubuntu0.22.04.1) ...
Selecting previously unselected package nvidia-kernel-source-535.
Preparing to unpack .../09-nvidia-kernel-source-535_535.183.01-0ubuntu0.22.04.1_amd64.deb ...
Unpacking nvidia-kernel-source-535 (535.183.01-0ubuntu0.22.04.1) ...
Selecting previously unselected package nvidia-firmware-535-535.183.01.
Preparing to unpack .../10-nvidia-firmware-535-535.183.01_535.183.01-0ubuntu0.22.04.1_amd64.deb ...
Unpacking nvidia-firmware-535-535.183.01 (535.183.01-0ubuntu0.22.04.1) ...
Selecting previously unselected package nvidia-kernel-common-535.
Preparing to unpack .../11-nvidia-kernel-common-535_535.183.01-0ubuntu0.22.04.1_amd64.deb ...
Unpacking nvidia-kernel-common-535 (535.183.01-0ubuntu0.22.04.1) ...
Selecting previously unselected package nvidia-dkms-535.
Preparing to unpack .../12-nvidia-dkms-535_535.183.01-0ubuntu0.22.04.1_amd64.deb ...
Unpacking nvidia-dkms-535 (535.183.01-0ubuntu0.22.04.1) ...
Selecting previously unselected package nvidia-utils-535.
Preparing to unpack .../13-nvidia-utils-535_535.183.01-0ubuntu0.22.04.1_amd64.deb ...
Unpacking nvidia-utils-535 (535.183.01-0ubuntu0.22.04.1) ...
Selecting previously unselected package xserver-xorg-video-nvidia-535.
Preparing to unpack .../14-xserver-xorg-video-nvidia-535_535.183.01-0ubuntu0.22.04.1_amd64.deb ...
Unpacking xserver-xorg-video-nvidia-535 (535.183.01-0ubuntu0.22.04.1) ...
Selecting previously unselected package nvidia-driver-535.
Preparing to unpack .../15-nvidia-driver-535_535.183.01-0ubuntu0.22.04.1_amd64.deb ...
Unpacking nvidia-driver-535 (535.183.01-0ubuntu0.22.04.1) ...
Selecting previously unselected package nvidia-prime.
Preparing to unpack .../16-nvidia-prime_0.8.17.1_all.deb ...
Unpacking nvidia-prime (0.8.17.1) ...
Selecting previously unselected package nvidia-settings.
Preparing to unpack .../17-nvidia-settings_510.47.03-0ubuntu1_amd64.deb ...
Unpacking nvidia-settings (510.47.03-0ubuntu1) ...
Setting up nvidia-firmware-535-535.183.01 (535.183.01-0ubuntu0.22.04.1) ...
Setting up nvidia-prime (0.8.17.1) ...
Setting up libnvidia-fbc1-535:amd64 (535.183.01-0ubuntu0.22.04.1) ...
Setting up nvidia-kernel-common-535 (535.183.01-0ubuntu0.22.04.1) ...
update-initramfs: deferring update (trigger activated)
Created symlink /etc/systemd/system/systemd-hibernate.service.wants/nvidia-hibernate.service → /lib/systemd/system/nvidia-hibernate.service.
Created symlink /etc/systemd/system/systemd-suspend.service.wants/nvidia-resume.service → /lib/systemd/system/nvidia-resume.service.
Created symlink /etc/systemd/system/systemd-hibernate.service.wants/nvidia-resume.service → /lib/systemd/system/nvidia-resume.service.
Created symlink /etc/systemd/system/systemd-suspend.service.wants/nvidia-suspend.service → /lib/systemd/system/nvidia-suspend.service.
Setting up libnvidia-common-535 (535.183.01-0ubuntu0.22.04.1) ...
Setting up libnvidia-extra-535:amd64 (535.183.01-0ubuntu0.22.04.1) ...
Setting up libnvidia-cfg1-535:amd64 (535.183.01-0ubuntu0.22.04.1) ...
Setting up nvidia-kernel-source-535 (535.183.01-0ubuntu0.22.04.1) ...
Setting up libnvidia-gl-535:amd64 (535.183.01-0ubuntu0.22.04.1) ...
Setting up nvidia-settings (510.47.03-0ubuntu1) ...
Setting up libnvidia-compute-535:amd64 (535.183.01-0ubuntu0.22.04.1) ...
Setting up nvidia-utils-535 (535.183.01-0ubuntu0.22.04.1) ...
Setting up nvidia-compute-utils-535 (535.183.01-0ubuntu0.22.04.1) ...
Warning: The home dir /nonexistent you specified can't be accessed: No such file or directoryAdding system user `nvidia-persistenced' (UID 117) ...
Adding new group `nvidia-persistenced' (GID 125) ...Adding new user `nvidia-persistenced' (UID 117) with group `nvidia-persistenced' ...Not creating home directory `/nonexistent'.
Setting up nvidia-dkms-535 (535.183.01-0ubuntu0.22.04.1) ...
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
Loading new nvidia-535.183.01 DKMS files...
Building for 6.5.0-45-generic
Building for architecture x86_64
Building initial module for 6.5.0-45-generic
Error! Bad return status for module build on kernel: 6.5.0-45-generic (x86_64)
Consult /var/lib/dkms/nvidia/535.183.01/build/make.log for more information.
dpkg: error processing package nvidia-dkms-535 (--configure):
installed nvidia-dkms-535 package post-installation script subprocess returned error exit status 10
Setting up libnvidia-decode-535:amd64 (535.183.01-0ubuntu0.22.04.1) ...
Setting up xserver-xorg-video-nvidia-535 (535.183.01-0ubuntu0.22.04.1) ...
dpkg: dependency problems prevent configuration of nvidia-driver-535:
nvidia-driver-535 depends on nvidia-dkms-535 (<= 535.183.01-1); however:
Package nvidia-dkms-535 is not configured yet.
nvidia-driver-535 depends on nvidia-dkms-535 (>= 535.183.01); however:
Package nvidia-dkms-535 is not configured yet.
dpkg: error processing package nvidia-driver-535 (--configure):
dependency problems - leaving unconfigured
Setting up libnvidia-encode-535:amd64 (535.183.01-0ubuntu0.22.04.1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.6+22.04.20220217-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-6.5.0-45-generic
cryptsetup: WARNING: Resume target cryptswap uses a key file
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for libc-bin (2.35-0ubuntu3.8) ...
Processing triggers for man-db (2.10.2-1) ...
Errors were encountered while processing:
nvidia-dkms-535
nvidia-driver-535
E: Sub-process /usr/bin/dpkg returned an error code (1)
What Happened?
The installation of the NVIDIA driver on my Ubuntu 22.04 with kernel 6.5.0-45-generic fails during the DKMS build process. The error occurs in the post-installation script, causing the driver to remain unconfigured.
Steps to Reproduce
Run sudo ubuntu-drivers autoinstall.
Observe the installation process.
Encounter an error during the DKMS build step.
Expected Behavior
The NVIDIA driver should install and configure correctly without errors.The NVIDIA driver should install and configure correctly without errors.
OS Version
7.x (Horus)
Software Version
Latest release (I have run all updates)
Log Output
Hardware Info
Operating System: Ubuntu 22.04 LTS
Kernel Version: 6.5.0-45-generic
GPU Model: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q]
Driver Version: 555.58.02
Driver Installation Method: sudo ubuntu-drivers autoinstall
The text was updated successfully, but these errors were encountered: