Não é possível instalar o CUDA no Ubuntu devido ao Nouveau - como posso desabilitar / desinstalar?

0

Noto que às vezes tenho problemas estranhos no Nouveau na linha de comando.

Eu tentei desativar o Nouveau usando as instruções aqui , mas ainda assim recebo todos os problemas abaixo.

Tentando instalar o CUDA 7.5, recebo o seguinte:

Aqui está o conteúdo do arquivo de log:

daniel@DansCPU:/var/log$ more nvidia-installer.log 
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Jun  3 15:13:32 2016
installer version: 352.39

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

nvidia-installer command line:
    ./nvidia-installer
    --ui=none
    --no-questions
    --accept-license
    --disable-nouveau

Using built-in stream user interface
-> Detected 4 CPUs online; setting concurrency level to 4.
-> License accepted by command line option.
-> Installing NVIDIA driver version 352.39.
-> Running distribution scripts
   executing: '/usr/lib/nvidia/pre-install'...
-> done.
-> The distribution-provided pre-install script failed!  Are you sure you want to continue? (Answer: Continue installation)
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.  Please consult the NVIDIA driver README an
d your Linux distribution's documentation for details on how to correctly disable the Nouveau kernel driver.
WARNING: One or more modprobe configuration files to disable Nouveau are already present at: /etc/modprobe.d/nvidia-installer-disable-nouveau.conf.  Please be sure you have rebooted your system since these
 files were written.  If you have rebooted, then Nouveau may be enabled for other reasons, such as being included in the system initial ramdisk or in your X configuration file.  Please consult the NVIDIA d
river README and your Linux distribution's documentation for details on how to correctly disable the Nouveau kernel driver.
-> For some distributions, Nouveau can be disabled by adding a file in the modprobe configuration directory.  Would you like nvidia-installer to attempt to create this modprobe file for you? (Answer: Yes)
-> One or more modprobe configuration files to disable Nouveau have been written.  For some distributions, this may be sufficient to disable Nouveau; other distributions may require modification of the ini
tial ramdisk.  Please reboot your system and attempt NVIDIA driver installation again.  Note if you later wish to reenable Nouveau, you will need to delete these files: /etc/modprobe.d/nvidia-installer-dis
able-nouveau.conf
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 downl
oad page at www.nvidia.com.
    
por Daniel Paczuski Bak 03.06.2016 / 21:00

1 resposta

1

Você precisa inicializar em um console para fazer isso.

  1. Inicialize e segure a tecla Shift
  2. Selecione o Ubuntu e pressione "E"
  3. Adicione nouveau.modeset = 0 à parte inferior das configurações de inicialização
  4. Pressione F10
  5. A partir deste console, inclua nouveau a lista negra e reinstale seus pacotes nvidia. Tente usar os pacotes da nvidia como nvidia-361 - você pode procurar o 367 no PPA dos drivers. Qual cartão você está tentando suportar?

Alternativamente, você pode pressionar Ctrl + Alt + F1 para abrir um console e usar o comando sudo service lightdm stop para fazer o mesmo coisa, mas não tenho certeza se isso descarrega o módulo do kernel nouveau.

    
por Jared Starkey 03.06.2016 / 21:59