alexdedalus
(usa Ubuntu)
Enviado em 22/02/2024 - 23:39h
Placa de video XFX 7200GS, ultimo driver no site da nvidia: 304.137.
Obs.: No site ubuntu, parte de drivers, parece que somente tem drivers de 430 para cima.
Após o boot, fica uma tela preta.
Teclo ALT+F2 ou ALF+F3, e entra no login em linha de comando.
Entro meu login e senha. (entrei como login root, assim nao necessitando colocar tantos comandos sudo)
Vou até o diretorio onde está o driver.
Executo o driver: ./NVIDIA-Linux-x86_64-304.137.run
Aparece o primeiro aviso (traduzido): Parece que tem outro driver instalado 340.108......
Continuando a instalação, outro aviso:
The path to the modprobe utility reported by /proc/sys/kernel/modprobe '/sbin/modprobe' differs from the path determined by nvidia-installer
'/usr/sbin/modprobe' please verify that '/sbin/modprobe' works correctly and correct the path in /proc/sys/kernel/modprobe if it does not
Terminando com o erro:
Unable to build the nvidia kernel module
----------------------------------------
O driver anterior era realmente o 340.108, pois eu tinha outra placa de video uma XFX 8600GT que deu diversos travamentos e artificios, mas foi desinstalado com o comando (parece que desinstalou, mas o driver que estou tentando instalar, diz que não):
apt-get remove --purge nvidia-*
apt-get install ubuntu-desktop
rm /etc/X11/xorg.conf
rm /etc/modprobe.d/blacklist-nouveau.conf
update-initramfs -k all -u
Obs.: Antes desses comandos o erro era o mesmo na hora de instalar o driver
Foi verificado a existencia de outro arquivo blacklist tambem em /etc/modprobe.d/nvidia-installer-disable-nouveau.conf com o conteudo:
blacklisr nouveau
options nouveau modeset=0
adicionei:
blacklist lbm-nouveau
alias nouveau off
alias lbm-noveau off
Mas o erro persiste.
Obs.: Não tinha o arquivo /etc/modprobe.d/nvidia-graphics-drivers.conf
Cheguei a modificar o arquivo /proc/sys/kernel/modprobe, alterando a linha que estava '/sbin/modprobe' para '/usr/sbin/modprobe', mas o mesmo erro ocorre.
----------------------------------------
Aqui está o log (/var/log/nvidia-installer.log):
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu Feb 22 16:40:12 2024
installer version: 304.137
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
nvidia-installer command line:
./nvidia-installer
Using: nvidia-installer ncurses v6 user interface
-> License accepted.
-> Installing NVIDIA driver version 304.137.
-> There appears to already be a driver installed on your system (version: 340.108). As part of installing this driver (version: 304.137), the existing driver will be uninstalled. Are you sure you want to continue? ('no' will abort installation) (Answer: Yes)
WARNING: The path to the `modprobe` utility reported by '/proc/sys/kernel/modprobe', `/sbin/modprobe`, differs from the path determined by `nvidia-installer`, `/usr/sbin/modprobe`. Please verify that `/sbin/modprobe` works correctly and correct the path in '/proc/sys/kernel/modprobe' if it does not.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/5.4.0-54-generic/build'
-> Kernel output path: '/lib/modules/5.4.0-54-generic/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
executing: 'cd ./kernel; make clean'...
-> Building kernel module:
executing: 'cd ./kernel; make module SYSSRC=/lib/modules/5.4.0-54-generic/build SYSOUT=/lib/modules/5.4.0-54-generic/build'...
NVIDIA: calling KBUILD...
make -f ./scripts/Makefile.build obj=arch/x86/entry/syscalls all
make -f ./scripts/Makefile.build obj=scripts/basic
rm -f .tmp_quiet_recordmcount
make -f ./scripts/Makefile.build obj=arch/x86/tools relocs
make[3]: *** Sem regra para processar o alvo 'arch/x86/tools/relocs_32.c', necessário por 'arch/x86/tools/relocs_32.o'. Pare.
make[2]: *** [arch/x86/Makefile:232: archscripts] Erro 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [Makefile:261: module] Erro 1
make: *** [makefile:59: module] Erro 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
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
www.nvidia.com.