Error installing cuda on Ubuntu 17.04

   abigail@abilina:~/Downloads$ sudo dpkg -i cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
Selecting previously unselected package cuda-repo-ubuntu1604.
(Reading database ... 205999 files and directories currently installed.)
Preparing to unpack cuda-repo-ubuntu1604_8.0.61-1_amd64.deb ...
Unpacking cuda-repo-ubuntu1604 (8.0.61-1) ...
Setting up cuda-repo-ubuntu1604 (8.0.61-1) ...
Warning: The postinst maintainerscript of the package cuda-repo-ubuntu1604
Warning: seems to use apt-key (provided by apt) without depending on gnupg or gnupg2.
Warning: This will BREAK in the future and should be fixed by the package maintainer(s).
Note: Check first if apt-key functionality is needed at all - it probably isn't!
Warning: apt-key should not be used in scripts (called from postinst maintainerscript of the package cuda-repo-ubuntu1604)
OK

abigail@abilina:~/Downloads$ sudo apt-get install cuda
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 cuda : Depends: cuda-8-0 (>= 8.0.61) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

My version of ubuntu is 04.17. Does this mean that my Linux currently cannot install CUDA? I want to install TensorFlow with GPU support.

Assuming:

abigail@abilina:~/Downloads$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+4
source share
5 answers

https://launchpad.net/ubuntu/zesty/amd64/nvidia-cuda-toolkit

higher is correct.

apt-get install nvidia-cuda-toolkit

but remember that cuda installed via apt was installed elsewhere. manually create ln -sin /usr/local/cudafor include, lib64andbin

+3
source

I successfully installed CUDA 8.0 + the latest patch from NVIDIA on Ubuntu 17.04:

  • .run https://developer.nvidia.com/cuda-downloads, Ubuntu 16.04 ( )
  • , , InstallUtils.pm, Ubuntu 17.04, .run - : . ./cuda*.run --tar mxvf
  • InstallUtils.pm( /bin ) /usr/lib/x86_64-linux-gnu/perl-base
  • ( "" , , apt - 381.22, 375.26, .run, 1080ti)
  • gcc 6 CUDA, : export EXTRA_NVCCFLAGS="-Xcompiler -std=c++98" bashrc

( , host_config.h, , ) - :

#if __GNUC__ > 5 || (__GNUC__ == 5 && __GNUC_MINOR__ > 3)
     #error -- unsupported GNU version! gcc versions later than 5.3 are not supported!

, , , .

:

https://devtalk.nvidia.com/default/topic/983777/can-t-locate-installutils-pm-in-inc/

https://devtalk.nvidia.com/default/topic/949770/cuda-8-0rc-supporting-gcc6-/

+3

ubuntu 17.04 cuda 9.0 ( deb) https://developer.nvidia.com/cuda-release-candidate-download

. Cuda 8.0 gcc 5.3.1, cuda 9.0 gcc 6.3.0, ubuntu 17.04.

+1

, , :

Ubuntu 17.04 CUDA 9.0 - - https://developer.nvidia.com/cuda-release-candidate-download

.deb, havent - , cuda 9.0

sudo dpkg -i cuda-repo-ubuntu1704-9-0-local-rc_9.0.103-1_amd64.deb

sudo apt-key add /var/cuda-repo-9.0-local-rc/7fa2af80.pub

sudo apt-get update

sudo apt-get install cuda

nvidia (.. PATH LD_LIBRARY_PATH) http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#post-installation-actions)

export PATH=/usr/local/cuda-9.0/bin${PATH:+:${PATH}}

export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64 ${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

Cuda 9 gcc 6.3.0 ( 17.04). arch = sm_52, make "".

+1

Cuda 9.0 .

, cuda 8, deb,

dpkg-deb -x cuda_8.*.deb /usr/local/cuda-8.0

deb .

Source: http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#advanced-setup )

0
source

Source: https://habr.com/ru/post/1676014/


All Articles