web-dev-qa-db-fra.com

Impossible d'installer Nvidia Drivers390.48 pour Ubuntu 16.04

J'installe la version pilote NVIDIA = 390.48 à tty.
[.____] J'arrête Lightdm et obtenez nouveau dans la liste noire avant l'installation.
[.____] et j'ai eu une erreur lors de l'installation de DKMS Kernel Module

Erreur: Échec de l'exécution /usr/sbin/dkms build -m nvidia -v 390.48 -k 4.13.16-041316-generic:

L'installation a échoué et je ne pouvais pas connecter mon Ubuntu en mode GUI. Ubuntu = 16.04, Kernel Linux = 4.13.16 Mon /var/log/nvidia-Installer.log est répertorié coup.

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu May  3 11:17:06 2018
installer version: 390.48

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

nvidia-installer command line:
    ./nvidia-installer

Unable to load: nvidia-installer ncurses v6 user interface

Using: nvidia-installer ncurses user interface
-> Detected 8 CPUs online; setting concurrency level to 8.
-> Installing NVIDIA driver version 390.48.
-> There appears to already be a driver installed on your system (version: 390.48).  As part of installing this driver (version: 390.48), the existing driver will be uninstalled.  Are you sure you want to continue? (Answer: Continue installation)
-> 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)
-> Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: Yes)
-> Installing both new and classic TLS OpenGL libraries.
-> Installing both new and classic TLS 32bit OpenGL libraries.
-> Install NVIDIA's 32-bit compatibility libraries? (Answer: Yes)
-> Will install GLVND GLX client libraries.
-> Will install GLVND EGL client libraries.
-> Skipping GLX non-GLVND file: "libGL.so.390.48"
-> Skipping GLX non-GLVND file: "libGL.so.1"
-> Skipping GLX non-GLVND file: "libGL.so"
-> Skipping EGL non-GLVND file: "libEGL.so.390.48"
-> Skipping EGL non-GLVND file: "libEGL.so"
-> Skipping EGL non-GLVND file: "libEGL.so.1"
-> Skipping GLX non-GLVND file: "./32/libGL.so.390.48"
-> Skipping GLX non-GLVND file: "libGL.so.1"
-> Skipping GLX non-GLVND file: "libGL.so"
-> Skipping EGL non-GLVND file: "./32/libEGL.so.390.48"
-> Skipping EGL non-GLVND file: "libEGL.so"
-> Skipping EGL non-GLVND file: "libEGL.so.1"
-> Parsing log file:
-> done.
-> Validating previous installation:
-> done.
-> Uninstalling NVIDIA Accelerated Graphics Driver for Linux-x86_64 (1.0-39048 (390.48)):
-> DKMS module detected; removing...
-> done.
-> Uninstallation of existing driver: NVIDIA Accelerated Graphics Driver for Linux-x86_64 (390.48) is complete.
Looking for install checker script at ./libglvnd_install_checker/check-libglvnd-install.sh
   executing: '/bin/sh ./libglvnd_install_checker/check-libglvnd-install.sh'...
   Checking for libglvnd installation.
   Checking libGLdispatch...
   Can't load library libGLdispatch.so.0: libGLdispatch.so.0: cannot open shared object file: No such file or directory
Will install libglvnd libraries.
Will install libEGL vendor library config file to /usr/share/glvnd/egl_vendor.d
-> Searching for conflicting files:
-> done.
-> Installing 'NVIDIA Accelerated Graphics Driver for Linux-x86_64' (390.48):
   executing: '/sbin/ldconfig'...
-> done.
-> Driver file installation is complete.
-> Installing DKMS kernel module:
ERROR: Failed to run `/usr/sbin/dkms build -m nvidia -v 390.48 -k 4.13.16-041316-generic`: 
Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
'make' -j8 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=4.13.16-041316-generic modules....(bad exit status: 2)
ERROR (dkms apport): binary package for nvidia: 390.48 not found
Error! Bad return status for module build on kernel: 4.13.16-041316-generic (x86_64)
Consult /var/lib/dkms/nvidia/390.48/build/make.log for more information.
-> error.
ERROR: Failed to install the kernel module through DKMS. No kernel module was installed; please try installing again without DKMS, or check the DKMS logs for more information.
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.
1
AlphaGoMK

Je vous suggère fortement d'essayer d'installer la dernière version du pilote Nvidia.

Pour ce faire, vous ajouteriez le pilote graphique PPA avec les commandes suivantes dans le terminal:

Sudo add-apt-repository ppa:graphics-drivers/ppa

Sudo apt-get update

Après cela, vous devez maintenant supprimer tous les pilotes NVIDIA actuels en entrant dans la section suivante dans votre terminal:

Sudo apt-get purge nvidia*

Maintenant que vous avez fait cela, il est prudent d'installer la dernière version:

Sudo apt-get install nvidia-driver-396

Veuillez noter que c'est NVIDIA-Driver-396 sur Ubuntu 18.04, c'est NVIDIA-396 sur Ubuntu 16.04, mais vous n'utilisez pas 16.04.

1
ipkpjersi