ubuntu22.04 server安装nvidia cuda 12.08提示Nouveau 驱动已经在用

安装驱动日志显示
ERROR: The Nouveau kernel driver is currently in use by your system. This driver is incompatible with the NVIDIA driver, and must be disabled before proceeding.

  1. First step is to open a command line terminal and type the following commands in order to blacklist the Nvidia nouveau driver.
    $ sudo bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
    $ sudo bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
  2. Confirm the content of the newly created modeprobe file blacklist-nvidia-nouveau.conf:
    $ cat /etc/modprobe.d/blacklist-nvidia-nouveau.conf
    blacklist nouveau
    options nouveau modeset=0
  3. Enter the following Linux command to update kernel initramfs:
    $ sudo update-initramfs -u
  4. Last step is to reboot your system for the changes to take effect:
    $ sudo reboot

    重启后运行cuda 12.08安装成功。

posted on 2025-06-28 08:11  ubirdy  阅读(118)  评论(0)    收藏  举报