Ubuntu18.04にGTX2070のGPUカードドライバーをインストールしたい
Ubuntu18.04にGTX2070のGPUカードドライバーを以下のサイトを参考にインストールしようとしています。
発生している問題
以下のコマンドによりNVIDIAドライバーをインストールしようとしたところ、ERRORが発生しました。
$ sudo ./NVIDIA-Linux-x86_64-430.14.run --silent --no-opengl-files --no-libglx-indirect --dkms Verifying archive integrity... OK Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 430.14.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... WARNING: Unable to find a suitable destination to install 32-bit compatibility libraries. Your system may not be set up for 32-bit compatibility. 32-bit compatibility files will not be installed; if you wish to install them, re-run the installation and set a valid directory with the --compat32-libdir option. ERROR: Failed to run `/usr/sbin/dkms build -m nvidia -v 430.14 -k 4.15.0-50-generic`: Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area... 'make' -j8 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=4.15.0-50-generic IGNORE_CC_MISMATCH='' modules...(bad exit status: 2) ERROR (dkms apport): binary package for nvidia: 430.14 not found Error! Bad return status for module build on kernel: 4.15.0-50-generic (x86_64) Consult /var/lib/dkms/nvidia/430.14/build/make.log for more information. 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.
'/var/log/nvidia-installer.log'の内容は以下でした。
$ cat /var/log/nvidia-installer.log nvidia-installer log file '/var/log/nvidia-installer.log' creation time: Sun May 26 09:36:54 2019 installer version: 430.14 PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin nvidia-installer command line: ./nvidia-installer --no-opengl-files --no-libglx-indirect --dkms 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 430.14. -> There appears to already be a driver installed on your system (version: 430.14). As part of installing this driver (version: 430.14), 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) WARNING: Unable to find a suitable destination to install 32-bit compatibility libraries. Your system may not be set up for 32-bit compatibility. 32-bit compatibility files will not be installed; if you wish to install them, re-run the installation and set a valid directory with the --compat32-libdir option. -> Uninstalling the previous installation with /usr/bin/nvidia-uninstall. -> Searching for conflicting files: -> done. -> Installing 'NVIDIA Accelerated Graphics Driver for Linux-x86_64' (430.14): executing: '/sbin/ldconfig'... -> done. -> Driver file installation is complete. -> Installing DKMS kernel module: ERROR: Failed to run `/usr/sbin/dkms build -m nvidia -v 430.14 -k 4.15.0-50-generic`: Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area... 'make' -j8 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=4.15.0-50-generic IGNORE_CC_MISMATCH='' modules...(bad exit status: 2) ERROR (dkms apport): binary package for nvidia: 430.14 not found Error! Bad return status for module build on kernel: 4.15.0-50-generic (x86_64) Consult /var/lib/dkms/nvidia/430.14/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.
試したこと
関連したものの再インストールは行いました。
$ sudo apt-get remove nvidia-* $ sudo apt-get remove cuda-*
補足情報(FW/ツールのバージョンなど)
カーネルのバージョンは以下です。
$ uname -a Linux xf 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
gccのバージョンは以下です。
$ gcc --version gcc (Ubuntu 7.4.0-1ubuntu1~18.04) 7.4.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
お手数をおかけしますが、よろしくお願いいたします。
make が bad exit status: 2 で失敗した、詳しくは `/var/lib/dkms/nvidia/430.14/build/make.log` を見ろと出力されています。
make.log に書いてあることを確認し、それでも解決しなければ、質問にも貼り付けてもらえますか。
回答1件
あなたの回答
tips
プレビュー