Cuda-toolkit install failed on Fedora

Fedora 39 (x64)
Python 3.12

NVIDIA display driver: 550.54.14 installed;
try to install cuda-toolkit use “sudo ./”

Installation failed. See log at /var/log/cuda-installer.log for details.


[INFO]: Driver not installed.
[INFO]: Checking compiler version…
[INFO]: gcc location: /usr/bin/gcc

[INFO]: gcc version: gcc version 13.2.1 20240316 (Red Hat 13.2.1-7) (GCC)

[INFO]: Initializing menu
[INFO]: nvidia-fs.setKOVersion(2.19.7)
[INFO]: Setup complete
[INFO]: Installing: Driver
[INFO]: Installing: 550.54.15
[INFO]: Executing --ui=none --no-questions --accept-license --disable-nouveau --no-cc-version-check --install-libglvnd --run-nvidia-xconfig --kernel-module-build-directory=kernel-open 2>&1
[INFO]: Finished with code: 256
[ERROR]: Install of driver component failed. Consult the driver log at /var/log/nvidia-installer.log for more details.
[ERROR]: Install of 550.54.15 failed, quitting

nvidia-installer log file ‘/var/log/nvidia-installer.log’

creation time: Tue Apr 9 02:42:53 2024
installer version: 550.54.15

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/lib/snapd/snap/bin

nvidia-installer command line:

Using built-in stream user interface
→ Detected 12 CPUs online; setting concurrency level to 12.
→ Scanning the initramfs with lsinitrd…
→ /usr/bin/lsinitrd requires a file path argument, but none was given.
→ Executing: /usr/bin/lsinitrd /boot/initramfs-6.8.4-200.fc39.x86_64.img
→ Tagging shared libraries with chcon -t textrel_shlib_t.
WARNING: An NVIDIA kernel module ‘nvidia-drm’ appears to be already loaded in your kernel. This may be because it is in use (for example, by an X server, a CUDA program, or the NVIDIA Persistence Daemon), but this may also happen if your kernel was configured without support for module unloading. Some of the sanity checks that nvidia-installer performs to detect potential installation problems are not possible while an NVIDIA kernel module is running.
→ Would you like to continue installation and skip the sanity checks? If not, please abort the installation, then close any programs which may be using the NVIDIA GPU(s), and attempt installation again. (Answer: Abort installation)
ERROR: Installation has failed. Please see the file ‘/var/log/nvidia-installer.log’ for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at

Solved, “Driver” not select when install CUDA Toolkit.