I am trying to install the GTX 2070 GPU card driver on Ubuntu 18.04 by reference to the following site:
An error occurred while trying to install the NVIDIA driver using the following command:
$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 sustainable destination to install 32-bit compatibility
libraries.Your system may not be setup 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-mnvidia-v430.14-k
4.15.0-50-generic`:
Kernel preparation unknown for this kernel.Skipping...
Building module:
Cleaning build area...
'make'-j8NV_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.Nokernel 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.
The contents of '/var/log/nvidia-installer.log' were as follows:
$cat/var/log/nvidia-installer.log
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time:Sun May 2609:36:54 2019
installer version:430.14
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/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 43.14.
->There applications 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 installed. 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 continuous 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 -- composition.
->Uninstalling the previous installation with /usr/bin/nvidia-uninstall.
->Searching for conflict 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-mnvidia-v430.14-k4.15.0-50-generic`:
Kernel preparation unknown for this kernel.Skipping...
Building module:
Cleaning build area...
'make'-j8NV_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.
Reinstalled related items
$sudo apt-get remove nvidia-*
$ sudo apt-get remove cuda-*
The kernel versions are as follows:
$uname-a
Linux xf 4.15.0-48-generic#51-Ubuntu SMP Wet Apr 308:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
The gcc versions are as follows:
$gcc --version
gcc (Ubuntu 7.4.0-1 ubuntu 1 to 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.
Sorry for the inconvenience, but I appreciate your cooperation.
linux ubuntu gpu
I used GTX1060 (driver version 410) for hobby use.I remember that 18.04 had more trouble than around 16.04…
It's a little old, but there's an article written by Ubuntu Japanese Team Member on the following link.
There are three installation methods.
I would like you to look at each link, but the third way you want to do this in the question is to use the latest version of the driver, but if you just want to use the second PPA
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get install nvidia-graphics-drivers-430
It is easy to install with two commands.
If you really need to use the third method, the second source (the changes from the original) may be helpful.
/etc/apt/sources.list.d/graphics-drivers-ubuntu-ppa-bionic.list
lines in the file
deb-src http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic main
After you enable (uncomment out), you can obtain it by issuing the following command:
apt-get source --download-only nvidia-graphics-drivers-430
© 2024 OneMinuteCode. All rights reserved.