ubuntu 深度学习cuda环境搭建

ubuntu系统版本 18.04

查看GPU型号(NVS 315 性能很差,比没有强)

首先最好有ssh服务,以下操作都是远程ssh执行

lspci | grep -i nvidia
03:00.0 VGA compatible controller: NVIDIA Corporation GF119 [NVS 315] (rev a1)
03:00.1 Audio device: NVIDIA Corporation GF119 HDMI Audio Controller (rev a1)

lspci | grep -i nvidia
查看NVIDIA驱动版本

sudo dpkg --list | grep nvidia-*
一片空白

获取官方驱动

先在这找 没找到
https://www.geforce.cn/drivers
又再这里找,找到了
https://www.nvidia.cn/Download/index.aspx?lang=cn
NVIDIA 驱动程序下载
选项 1: 手动查找适用于我 的NVIDIA 产品的驱动程序。 帮助
产品类型:
产品系列:
产品家族:
操作系统:
下载类型:
语言:

跳至下载页(这是NVS 315的驱动,其他显卡不通用)
https://www.nvidia.cn/Download/driverResults.aspx/137427/cn
下载完成
ls -alh NVIDIA*
79M Dec 7 14:41 NVIDIA-Linux-x86_64-390.87.run

sudo sh NVIDIA-Linux-x86_64-390.87.run
安装报错
One or more modprobe configuration files to disable Nouveau have been written. For some distributions, this may be sufficient to disable Nouveau; other distributions may
require modification of the initial ramdisk. Please reboot your system and attempt NVIDIA driver installation again. Note if you later wish to reenable Nouveau, you will
need to delete these files: /etc/modprobe.d/nvidia-installer-disable-nouveau.conf

查看
cat /etc/modprobe.d/nvidia-installer-disable-nouveau.conf
# generated by nvidia-installer
blacklist nouveau
options nouveau modeset=0

nouveau 已由驱动安装程序禁用,但再安装还是失败报同样的信息,因为禁用未生效,Please reboot your system and attempt NVIDIA driver installation again 需重启系统

sudo reboot

继续安装开始安装

安装过程几个依赖包错误,需要gcc make

apt-get install gcc make

再安装

Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 390.87.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

看提示操作,默认一路回车即可,安装显卡驱动还算比较顺利,安装完成后

root@social-ubuntu:/home/social# nvidia-
nvidia-bug-report.sh nvidia-cuda-mps-server nvidia-detector nvidia-modprobe nvidia-settings nvidia-uninstall
nvidia-cuda-mps-control nvidia-debugdump nvidia-installer nvidia-persistenced nvidia-smi nvidia-xconfig

root@social-ubuntu:/home/social# nvidia-smi
Fri Dec 7 14:59:18 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.87 Driver Version: 390.87 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 NVS 315 Off | 00000000:03:00.0 N/A | N/A |
| 30% 43C P8 N/A / N/A | 149MiB / 956MiB | N/A Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 Not Supported |
+-----------------------------------------------------------------------------+

尝试nvidia-docker(docker怎么装这就不提了,https://www.tensorflow.org/install/docker,http://www.paddlepaddle.org/documentation/docs/zh/develop/beginners_guide/install/index_cn.html,docker是个大趋势,不要再折腾pip了)

安装直接参照 没难度 https://github.com/NVIDIA/nvidia-docker

nvidia-docker 成功

docker run --runtime=nvidia --rm nvidia/cuda:9.0-base nvidia-smi
Unable to find image 'nvidia/cuda:9.0-base' locally
9.0-base: Pulling from nvidia/cuda
18d680d61657: Pull complete
0addb6fece63: Pull complete
78e58219b215: Pull complete
eb6959a66df2: Pull complete
6ef1ff668c93: Pull complete
f5f8f0544aa2: Pull complete
3d28d96eb352: Pull complete
Digest: sha256:764039ce9ff2cfb44d646fde6930099493334bb743e5b4f089d820de023c5d9a
Status: Downloaded newer image for nvidia/cuda:9.0-base
Fri Dec 7 07:38:00 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.87 Driver Version: 390.87 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 NVS 315 Off | 00000000:03:00.0 N/A | N/A |
| 30% 39C P8 N/A / N/A | 257MiB / 956MiB | N/A Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 Not Supported |
+-----------------------------------------------------------------------------+

安装cuda

官方资料

查看显卡是否支持cuda

https://developer.nvidia.com/cuda-gpus

GPU Compute Capability
NVIDIA NVS 810 5.0
NVIDIA NVS 510 3.0
NVIDIA NVS 315 2.1
NVIDIA NVS 310 2.1

NVIDIA NVS 315 2.1 支持(虽然计算能力差了很多)

https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html

```
3.6. Ubuntu

Perform the pre-installation actions.
Install repository meta-data
$ sudo dpkg -i cuda-repo-<distro>_<version>_<architecture>.deb
Installing the CUDA public GPG key
When installing using the local repo:

$ sudo apt-key add /var/cuda-repo-<version>/7fa2af80.pub
When installing using network repo on Ubuntu 17.10:

$ sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/<distro>/<architecture>/7fa2af80.pub
When installing using network repo on Ubuntu 16.04:

$ sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/<distro>/<architecture>/7fa2af80.pub
Update the Apt repository cache
$ sudo apt-get update
Install CUDA
$ sudo apt-get install cuda
Perform the post-installation actions.

```
不过我没这么来,我是这么来的
https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1804&target_type=debnetwork
```

`sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb`
`sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub`
`sudo apt-get update`
`sudo apt-get install cuda`
```
一路顺利

root@social-ubuntu:/home/social# apt-get install cuda
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
build-essential ca-certificates-java cuda-- cuda-command-line-tools-- cuda-compiler-- cuda-cublas-- cuda-cublas-dev-- cuda-cudart-- cuda-cudart-dev--
cuda-cufft-- cuda-cufft-dev-- cuda-cuobjdump-- cuda-cupti-- cuda-curand-- cuda-curand-dev-- cuda-cusolver-- cuda-cusolver-dev-- cuda-cusparse--
cuda-cusparse-dev-- cuda-demo-suite-- cuda-documentation-- cuda-driver-dev-- cuda-drivers cuda-gdb-- cuda-gpu-library-advisor-- cuda-libraries--
cuda-libraries-dev-- cuda-license-- cuda-memcheck-- cuda-misc-headers-- cuda-npp-- cuda-npp-dev-- cuda-nsight-- cuda-nsight-compute-- cuda-nvcc--
cuda-nvdisasm-- cuda-nvgraph-- cuda-nvgraph-dev-- cuda-nvjpeg-- cuda-nvjpeg-dev-- cuda-nvml-dev-- cuda-nvprof-- cuda-nvprune-- cuda-nvrtc--
cuda-nvrtc-dev-- cuda-nvtx-- cuda-nvvp-- cuda-runtime-- cuda-samples-- cuda-toolkit-- cuda-tools-- cuda-visual-tools-- default-jre default-jre-headless
dkms dpkg-dev fakeroot fonts-dejavu-extra freeglut3 freeglut3-dev g++ g++- java-common libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
libatk-wrapper-java libatk-wrapper-java-jni libdpkg-perl libdrm-dev libegl1 libfakeroot libgif7 libgl1 libgl1-mesa-dev libgles1 libgles2 libglu1-mesa-dev libglvnd-core-dev
libglvnd-dev libglvnd0 libglx0 libice-dev libnvidia-cfg1- libnvidia-common- libnvidia-compute- libnvidia-decode- libnvidia-encode- libnvidia-fbc1-
libnvidia-gl- libnvidia-ifr1- libopengl0 libpthread-stubs0-dev libsm-dev libstdc++--dev libx11-dev libx11-doc libx11-xcb-dev libxau-dev libxcb-dri2--dev
libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb1-dev libxdamage-dev
libxdmcp-dev libxext-dev libxfixes-dev libxi-dev libxmu-dev libxmu-headers libxnvctrl0 libxshmfence-dev libxt-dev libxxf86vm-dev mesa-common-dev nvidia-compute-utils-
nvidia-dkms- nvidia-driver- nvidia-kernel-common- nvidia-kernel-source- nvidia-modprobe nvidia-prime nvidia-settings nvidia-utils- openjdk--jre
openjdk--jre-headless pkg-config screen-resolution-extra x11proto-core-dev x11proto-damage-dev x11proto-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev
x11proto-input-dev x11proto-xext-dev x11proto-xf86vidmode-dev xorg-sgml-doctools xserver-xorg-video-nvidia- xtrans-dev
Suggested packages:
default-java-plugin menu debian-keyring g++-multilib g++--multilib gcc--doc libstdc++--dbg bzr libice-doc libsm-doc libstdc++--doc libxcb-doc libxext-doc libxt-doc
fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei | fonts-wqy-zenhei
Recommended packages:
libnvidia-compute-:i386 libnvidia-decode-:i386 libnvidia-encode-:i386 libnvidia-ifr1-:i386 libnvidia-fbc1-:i386 libnvidia-gl-:i386
The following NEW packages will be installed:
build-essential ca-certificates-java cuda cuda-- cuda-command-line-tools-- cuda-compiler-- cuda-cublas-- cuda-cublas-dev-- cuda-cudart-- cuda-cudart-dev--
cuda-cufft-- cuda-cufft-dev-- cuda-cuobjdump-- cuda-cupti-- cuda-curand-- cuda-curand-dev-- cuda-cusolver-- cuda-cusolver-dev-- cuda-cusparse--
cuda-cusparse-dev-- cuda-demo-suite-- cuda-documentation-- cuda-driver-dev-- cuda-drivers cuda-gdb-- cuda-gpu-library-advisor-- cuda-libraries--
cuda-libraries-dev-- cuda-license-- cuda-memcheck-- cuda-misc-headers-- cuda-npp-- cuda-npp-dev-- cuda-nsight-- cuda-nsight-compute-- cuda-nvcc--
cuda-nvdisasm-- cuda-nvgraph-- cuda-nvgraph-dev-- cuda-nvjpeg-- cuda-nvjpeg-dev-- cuda-nvml-dev-- cuda-nvprof-- cuda-nvprune-- cuda-nvrtc--
cuda-nvrtc-dev-- cuda-nvtx-- cuda-nvvp-- cuda-runtime-- cuda-samples-- cuda-toolkit-- cuda-tools-- cuda-visual-tools-- default-jre default-jre-headless
dkms dpkg-dev fakeroot fonts-dejavu-extra freeglut3 freeglut3-dev g++ g++- java-common libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
libatk-wrapper-java libatk-wrapper-java-jni libdrm-dev libfakeroot libgif7 libgl1-mesa-dev libgles1 libglu1-mesa-dev libglvnd-core-dev libglvnd-dev libice-dev
libnvidia-cfg1- libnvidia-common- libnvidia-compute- libnvidia-decode- libnvidia-encode- libnvidia-fbc1- libnvidia-gl- libnvidia-ifr1- libopengl0
libpthread-stubs0-dev libsm-dev libstdc++--dev libx11-dev libx11-doc libx11-xcb-dev libxau-dev libxcb-dri2--dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev
libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb1-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxi-dev
libxmu-dev libxmu-headers libxnvctrl0 libxshmfence-dev libxt-dev libxxf86vm-dev mesa-common-dev nvidia-compute-utils- nvidia-dkms- nvidia-driver-
nvidia-kernel-common- nvidia-kernel-source- nvidia-modprobe nvidia-prime nvidia-settings nvidia-utils- openjdk--jre openjdk--jre-headless pkg-config
screen-resolution-extra x11proto-core-dev x11proto-damage-dev x11proto-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev x11proto-input-dev x11proto-xext-dev
x11proto-xf86vidmode-dev xorg-sgml-doctools xserver-xorg-video-nvidia- xtrans-dev
The following packages will be upgraded:
libdpkg-perl libegl1 libgl1 libgles2 libglvnd0 libglx0
upgraded, newly installed, to remove and not upgraded.
Need to get MB/ MB of archives.
After this operation, MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-license-10-0 10.0.130-1 [17.6 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-misc-headers-10-0 10.0.130-1 [640 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libstdc++-7-dev amd64 7.3.0-27ubuntu1~18.04 [1463 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvcc-10-0 10.0.130-1 [20.0 MB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++-7 amd64 7.3.0-27ubuntu1~18.04 [7570 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++ amd64 4:7.3.0-3ubuntu2.1 [1572 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 dpkg-dev all 1.19.0.5ubuntu2.1 [608 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 build-essential amd64 12.4ubuntu1 [4758 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 java-common all 0.63ubuntu1~02 [7032 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 openjdk-11-jre-headless amd64 10.0.2+13-1ubuntu0.18.04.4 [39.5 MB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cuobjdump-10-0 10.0.130-1 [130 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvprune-10-0 10.0.130-1 [36.8 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-compiler-10-0 10.0.130-1 [2538 B]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvdisasm-10-0 10.0.130-1 [22.1 MB]
% [ openjdk--jre-headless kB/39.5 MB %] [ cuda-nvdisasm-- kB/22.1 MB %] kB/s 41min 21s % [ openjdk--jre-headless kB/39.5 MB %] [ cuda-nvdisasm-- kB/22.1 MB %] kB/s 41min 20s Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-gdb-10-0 10.0.130-1 [2769 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvprof-10-0 10.0.130-1 [5590 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-memcheck-10-0 10.0.130-1 [139 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cudart-10-0 10.0.130-1 [109 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-driver-dev-10-0 10.0.130-1 [12.0 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cudart-dev-10-0 10.0.130-1 [457 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cupti-10-0 10.0.130-1 [1564 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-gpu-library-advisor-10-0 10.0.130-1 [1003 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvtx-10-0 10.0.130-1 [38.9 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-command-line-tools-10-0 10.0.130-1 [26.9 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nsight-10-0 10.0.130-1 [2590 B]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvvp-10-0 10.0.130-1 [2536 B]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvrtc-10-0 10.0.130-1 [5925 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 default-jre-headless amd64 2:1.10-63ubuntu1~02 [3412 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 ca-certificates-java all 20180516ubuntu1~18.04.1 [12.2 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libgif7 amd64 5.1.4-2 [30.6 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 openjdk-11-jre amd64 10.0.2+13-1ubuntu0.18.04.4 [53.1 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 default-jre amd64 2:1.10-63ubuntu1~02 [1092 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/universe amd64 freeglut3 amd64 2.8.1-3 [73.6 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 xorg-sgml-doctools all 1:1.11-1 [12.9 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 x11proto-dev all 2018.4-4 [251 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvrtc-dev-10-0 10.0.130-1 [9344 B]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cusolver-10-0 10.0.130-1 [38.4 MB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 x11proto-core-dev all 2018.4-4 [2620 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libxau-dev amd64 1:1.0.8-1 [11.1 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libxdmcp-dev amd64 1:1.1.2-3 [25.1 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 x11proto-input-dev all 2018.4-4 [2620 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 xtrans-dev all 1.3.5-1 [70.5 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libpthread-stubs0-dev amd64 0.3-4 [4068 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libxcb1-dev amd64 1.13-1 [80.0 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libx11-dev amd64 2:1.6.4-3ubuntu0.1 [641 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libdrm-dev amd64 2.4.91-2 [238 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 mesa-common-dev amd64 18.0.5-0ubuntu0~18.04.1 [536 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libglvnd-core-dev amd64 1.0.0-2ubuntu2.2 [12.9 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgles1 amd64 1.0.0-2ubuntu2.2 [11.2 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libopengl0 amd64 1.0.0-2ubuntu2.2 [31.3 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libglvnd-dev amd64 1.0.0-2ubuntu2.2 [3408 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libx11-xcb-dev amd64 2:1.6.4-3ubuntu0.1 [9764 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libxcb-dri3-dev amd64 1.13-1 [7368 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libxcb-render0-dev amd64 1.13-1 [18.4 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libxcb-randr0-dev amd64 1.13-1 [20.4 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libxcb-shape0-dev amd64 1.13-1 [7144 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libxcb-xfixes0-dev amd64 1.13-1 [11.7 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libxcb-sync-dev amd64 1.13-1 [10.6 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libxcb-present-dev amd64 1.13-1 [6968 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libxshmfence-dev amd64 1.3-1 [3692 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libxcb-dri2-0-dev amd64 1.13-1 [8476 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libxcb-glx0-dev amd64 1.13-1 [27.9 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 x11proto-fixes-dev all 1:2018.4-4 [2620 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libxfixes-dev amd64 1:5.0.3-1 [11.0 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 x11proto-damage-dev all 1:2018.4-4 [2620 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libxdamage-dev amd64 1:1.1.4-3 [5028 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 x11proto-xext-dev all 2018.4-4 [2620 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libxext-dev amd64 2:1.3.3-1 [82.1 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 x11proto-xf86vidmode-dev all 2018.4-4 [2632 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libxxf86vm-dev amd64 1:1.1.4-1 [13.3 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 x11proto-dri2-dev all 2018.4-4 [2620 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 x11proto-gl-dev all 2018.4-4 [2612 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgl1-mesa-dev amd64 18.0.5-0ubuntu0~18.04.1 [4444 B]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libglu1-mesa-dev amd64 9.0.0-2.1build1 [206 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cusolver-dev-10-0 10.0.130-1 [13.2 MB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libice-dev amd64 2:1.0.9-2 [46.8 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libsm-dev amd64 2:1.2.2-1 [16.2 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libxt-dev amd64 1:1.1.5-1 [395 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/universe amd64 freeglut3-dev amd64 2.8.1-3 [124 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libxmu-headers all 2:1.1.2-2 [54.3 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libxmu-dev amd64 2:1.1.2-2 [49.0 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cublas-10-0 10.0.130-1 [30.3 MB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libxi-dev amd64 2:1.7.9-1 [186 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 dkms all 2.3-3ubuntu9.2 [68.0 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 pkg-config amd64 0.29.1-0ubuntu2 [45.0 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 screen-resolution-extra all 0.17.3 [11.7 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libfakeroot amd64 1.22-2ubuntu1 [25.9 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 fakeroot amd64 1.22-2ubuntu1 [62.3 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 fonts-dejavu-extra all 2.37-1 [1953 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-diff-perl all 1.19.03-1 [47.6 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-diff-xs-perl amd64 0.04-5 [11.1 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-merge-perl all 0.08-3 [12.0 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libatk-wrapper-java all 0.33.3-20ubuntu0.1 [34.7 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libatk-wrapper-java-jni amd64 0.33.3-20ubuntu0.1 [28.3 kB]
Get: http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libx11-doc all 2:1.6.4-3ubuntu0.1 [2065 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cublas-dev-10-0 10.0.130-1 [30.8 MB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cufft-10-0 10.0.130-1 [60.7 MB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cufft-dev-10-0 10.0.130-1 [124 MB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-curand-10-0 10.0.130-1 [38.9 MB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-curand-dev-10-0 10.0.130-1 [58.1 MB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cusparse-10-0 10.0.130-1 [27.1 MB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cusparse-dev-10-0 10.0.130-1 [27.2 MB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-npp-10-0 10.0.130-1 [54.2 MB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-npp-dev-10-0 10.0.130-1 [55.0 MB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvml-dev-10-0 10.0.130-1 [51.6 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvgraph-10-0 10.0.130-1 [12.8 MB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvgraph-dev-10-0 10.0.130-1 [33.4 MB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvjpeg-10-0 10.0.130-1 [281 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvjpeg-dev-10-0 10.0.130-1 [192 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nsight-compute-10-0 10.0.130-1 [188 MB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-visual-tools-10-0 10.0.130-1 [394 MB]
% [ cuda-visual-tools-- MB/ MB %] kB/s 14min 0s % [ cuda-visual-tools-- MB/ MB %] kB/s 10min 57s
% [ cuda-visual-tools-- MB/ MB %] kB/s 10min 56s Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-tools-10-0 10.0.130-1 [2498 B]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-samples-10-0 10.0.130-1 [61.5 MB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-documentation-10-0 10.0.130-1 [52.0 MB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-libraries-dev-10-0 10.0.130-1 [2606 B]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-toolkit-10-0 10.0.130-1 [2834 B]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libnvidia-cfg1-410 410.72-0ubuntu1 [70.1 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libnvidia-common-410 410.72-0ubuntu1 [9808 B]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libnvidia-compute-410 410.72-0ubuntu1 [20.6 MB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libnvidia-decode-410 410.72-0ubuntu1 [1209 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libnvidia-encode-410 410.72-0ubuntu1 [52.1 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libnvidia-fbc1-410 410.72-0ubuntu1 [43.5 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libnvidia-gl-410 410.72-0ubuntu1 [31.3 MB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libnvidia-ifr1-410 410.72-0ubuntu1 [68.4 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 nvidia-compute-utils-410 410.72-0ubuntu1 [72.8 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 nvidia-kernel-source-410 410.72-0ubuntu1 [10.2 MB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 nvidia-kernel-common-410 410.72-0ubuntu1 [10.4 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 nvidia-dkms-410 410.72-0ubuntu1 [26.0 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 nvidia-utils-410 410.72-0ubuntu1 [333 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 xserver-xorg-video-nvidia-410 410.72-0ubuntu1 [1653 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 nvidia-driver-410 410.72-0ubuntu1 [394 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 nvidia-modprobe 410.72-0ubuntu1 [19.1 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libxnvctrl0 410.72-0ubuntu1 [19.3 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 nvidia-settings 410.72-0ubuntu1 [963 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-drivers 410.72-1 [2568 B]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-libraries-10-0 10.0.130-1 [2586 B]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-runtime-10-0 10.0.130-1 [2540 B]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-demo-suite-10-0 10.0.130-1 [3868 kB]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-10-0 10.0.130-1 [2562 B]
Get: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda 10.0.130-1 [2514 B]
Fetched MB in 37min 56s ( kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "zh_CN.UTF-8",
LC_MONETARY = "zh_CN.UTF-8",
LC_CTYPE = "UTF-8",
LC_ADDRESS = "zh_CN.UTF-8",
LC_TELEPHONE = "zh_CN.UTF-8",
LC_NAME = "zh_CN.UTF-8",
LC_MEASUREMENT = "zh_CN.UTF-8",
LC_IDENTIFICATION = "zh_CN.UTF-8",
LC_NUMERIC = "zh_CN.UTF-8",
LC_PAPER = "zh_CN.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Extracting templates from packages: %
Selecting previously unselected package libstdc++--dev:amd64.
(Reading database ... files and directories currently installed.)
Preparing to unpack .../-libstdc++--dev_7.3.0-27ubuntu1~.04_amd64.deb ...
Unpacking libstdc++--dev:amd64 (7.3.-27ubuntu1~18.04) ...
Selecting previously unselected package g++-.
Preparing to unpack .../-g++-7_7.3.0-27ubuntu1~.04_amd64.deb ...
Unpacking g++- (7.3.-27ubuntu1~18.04) ...
Selecting previously unselected package g++.
Preparing to unpack .../-g++_4%3a7.3.0-3ubuntu2.1_amd64.deb ...
Unpacking g++ (:7.3.-3ubuntu2.) ...
Preparing to unpack .../-libdpkg-perl_1.19.0.5ubuntu2.1_all.deb ...
Unpacking libdpkg-perl (1.19..5ubuntu2.) over (1.19..5ubuntu2) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../-dpkg-dev_1.19.0.5ubuntu2.1_all.deb ...
Unpacking dpkg-dev (1.19..5ubuntu2.) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../-build-essential_12.4ubuntu1_amd64.deb ...
Unpacking build-essential (.4ubuntu1) ...
Selecting previously unselected package java-common.
Preparing to unpack .../-java-common_0.63ubuntu1~02_all.deb ...
Unpacking java-common (.63ubuntu1~) ...
Selecting previously unselected package openjdk--jre-headless:amd64.
Preparing to unpack .../-openjdk--jre-headless_10.0.2+-1ubuntu0.18.04.4_amd64.deb ...
Unpacking openjdk--jre-headless:amd64 (10.0.+-1ubuntu0.18.04.) ...
Selecting previously unselected package default-jre-headless.
Preparing to unpack .../-default-jre-headless_2%3a1.-63ubuntu1~02_amd64.deb ...
Unpacking default-jre-headless (:1.10-63ubuntu1~) ...
Selecting previously unselected package ca-certificates-java.
Preparing to unpack .../-ca-certificates-java_20180516ubuntu1~18.04.1_all.deb ...
Unpacking ca-certificates-java (20180516ubuntu1~18.04.) ...
Selecting previously unselected package cuda-license--.
Preparing to unpack .../-cuda-license--0_10.0.130-1_amd64.deb ...
Unpacking cuda-license-- (10.0.-) ...
Selecting previously unselected package cuda-misc-headers--.
Preparing to unpack .../-cuda-misc-headers--0_10.0.130-1_amd64.deb ...
Unpacking cuda-misc-headers-- (10.0.-) ...
Selecting previously unselected package cuda-nvcc--.
Preparing to unpack .../-cuda-nvcc--0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvcc-- (10.0.-) ...
Selecting previously unselected package cuda-cuobjdump--.
Preparing to unpack .../-cuda-cuobjdump--0_10.0.130-1_amd64.deb ...
Unpacking cuda-cuobjdump-- (10.0.-) ...
Selecting previously unselected package cuda-nvprune--.
Preparing to unpack .../-cuda-nvprune--0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvprune-- (10.0.-) ...
Selecting previously unselected package cuda-compiler--.
Preparing to unpack .../-cuda-compiler--0_10.0.130-1_amd64.deb ...
Unpacking cuda-compiler-- (10.0.-) ...
Selecting previously unselected package cuda-nvdisasm--.
Preparing to unpack .../-cuda-nvdisasm--0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvdisasm-- (10.0.-) ...
Selecting previously unselected package cuda-gdb--.
Preparing to unpack .../-cuda-gdb--0_10.0.130-1_amd64.deb ...
Unpacking cuda-gdb-- (10.0.-) ...
Selecting previously unselected package cuda-nvprof--.
Preparing to unpack .../-cuda-nvprof--0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvprof-- (10.0.-) ...
Selecting previously unselected package cuda-memcheck--.
Preparing to unpack .../-cuda-memcheck--0_10.0.130-1_amd64.deb ...
Unpacking cuda-memcheck-- (10.0.-) ...
Selecting previously unselected package cuda-cudart--.
Preparing to unpack .../-cuda-cudart--0_10.0.130-1_amd64.deb ...
Unpacking cuda-cudart-- (10.0.-) ...
Selecting previously unselected package cuda-driver-dev--.
Preparing to unpack .../-cuda-driver-dev--0_10.0.130-1_amd64.deb ...
Unpacking cuda-driver-dev-- (10.0.-) ...
Selecting previously unselected package cuda-cudart-dev--.
Preparing to unpack .../-cuda-cudart-dev--0_10.0.130-1_amd64.deb ...
Unpacking cuda-cudart-dev-- (10.0.-) ...
Selecting previously unselected package cuda-cupti--.
Preparing to unpack .../-cuda-cupti--0_10.0.130-1_amd64.deb ...
Unpacking cuda-cupti-- (10.0.-) ...
Selecting previously unselected package cuda-gpu-library-advisor--.
Preparing to unpack .../-cuda-gpu-library-advisor--0_10.0.130-1_amd64.deb ...
Unpacking cuda-gpu-library-advisor-- (10.0.-) ...
Selecting previously unselected package cuda-nvtx--.
Preparing to unpack .../-cuda-nvtx--0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvtx-- (10.0.-) ...
Selecting previously unselected package cuda-command-line-tools--.
Preparing to unpack .../-cuda-command-line-tools--0_10.0.130-1_amd64.deb ...
Unpacking cuda-command-line-tools-- (10.0.-) ...
Preparing to unpack .../-libegl1_1.0.0-2ubuntu2.2_amd64.deb ...
Unpacking libegl1:amd64 (1.0.-2ubuntu2.) over (1.0.-2ubuntu2.) ...
Preparing to unpack .../-libgl1_1.0.0-2ubuntu2.2_amd64.deb ...
Unpacking libgl1:amd64 (1.0.-2ubuntu2.) over (1.0.-2ubuntu2.) ...
Preparing to unpack .../-libglx0_1.0.0-2ubuntu2.2_amd64.deb ...
Unpacking libglx0:amd64 (1.0.-2ubuntu2.) over (1.0.-2ubuntu2.) ...
Preparing to unpack .../-libgles2_1.0.0-2ubuntu2.2_amd64.deb ...
Unpacking libgles2:amd64 (1.0.-2ubuntu2.) over (1.0.-2ubuntu2.) ...
Preparing to unpack .../-libglvnd0_1.0.0-2ubuntu2.2_amd64.deb ...
Unpacking libglvnd0:amd64 (1.0.-2ubuntu2.) over (1.0.-2ubuntu2.) ...
Selecting previously unselected package libgif7:amd64.
Preparing to unpack .../-libgif7_5.1.4-2_amd64.deb ...
Unpacking libgif7:amd64 (5.1.-) ...
Selecting previously unselected package openjdk--jre:amd64.
Preparing to unpack .../-openjdk--jre_10.0.2+-1ubuntu0.18.04.4_amd64.deb ...
Unpacking openjdk--jre:amd64 (10.0.+-1ubuntu0.18.04.) ...
Selecting previously unselected package default-jre.
Preparing to unpack .../-default-jre_2%3a1.-63ubuntu1~02_amd64.deb ...
Unpacking default-jre (:1.10-63ubuntu1~) ...
Selecting previously unselected package cuda-nsight--.
Preparing to unpack .../-cuda-nsight--0_10.0.130-1_amd64.deb ...
Unpacking cuda-nsight-- (10.0.-) ...
Selecting previously unselected package cuda-nvvp--.
Preparing to unpack .../-cuda-nvvp--0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvvp-- (10.0.-) ...
Selecting previously unselected package cuda-nvrtc--.
Preparing to unpack .../-cuda-nvrtc--0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvrtc-- (10.0.-) ...
Selecting previously unselected package cuda-nvrtc-dev--.
Preparing to unpack .../-cuda-nvrtc-dev--0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvrtc-dev-- (10.0.-) ...
Selecting previously unselected package cuda-cusolver--.
Preparing to unpack .../-cuda-cusolver--0_10.0.130-1_amd64.deb ...
Unpacking cuda-cusolver-- (10.0.-) ...
Selecting previously unselected package cuda-cusolver-dev--.
Preparing to unpack .../-cuda-cusolver-dev--0_10.0.130-1_amd64.deb ...
Unpacking cuda-cusolver-dev-- (10.0.-) ...
Selecting previously unselected package cuda-cublas--.
Preparing to unpack .../-cuda-cublas--0_10.0.130-1_amd64.deb ...
Unpacking cuda-cublas-- (10.0.-) ...
Selecting previously unselected package cuda-cublas-dev--.
Preparing to unpack .../-cuda-cublas-dev--0_10.0.130-1_amd64.deb ...
Unpacking cuda-cublas-dev-- (10.0.-) ...
Selecting previously unselected package cuda-cufft--.
Preparing to unpack .../-cuda-cufft--0_10.0.130-1_amd64.deb ...
Unpacking cuda-cufft-- (10.0.-) ...
Selecting previously unselected package cuda-cufft-dev--.
Preparing to unpack .../-cuda-cufft-dev--0_10.0.130-1_amd64.deb ...
Unpacking cuda-cufft-dev-- (10.0.-) ...
Selecting previously unselected package cuda-curand--.
Preparing to unpack .../-cuda-curand--0_10.0.130-1_amd64.deb ...
Unpacking cuda-curand-- (10.0.-) ...
Selecting previously unselected package cuda-curand-dev--.
Preparing to unpack .../-cuda-curand-dev--0_10.0.130-1_amd64.deb ...
Unpacking cuda-curand-dev-- (10.0.-) ...
Selecting previously unselected package cuda-cusparse--.
Preparing to unpack .../-cuda-cusparse--0_10.0.130-1_amd64.deb ...
Unpacking cuda-cusparse-- (10.0.-) ...
Selecting previously unselected package cuda-cusparse-dev--.
Preparing to unpack .../-cuda-cusparse-dev--0_10.0.130-1_amd64.deb ...
Unpacking cuda-cusparse-dev-- (10.0.-) ...
Selecting previously unselected package cuda-npp--.
Preparing to unpack .../-cuda-npp--0_10.0.130-1_amd64.deb ...
Unpacking cuda-npp-- (10.0.-) ...
Selecting previously unselected package cuda-npp-dev--.
Preparing to unpack .../-cuda-npp-dev--0_10.0.130-1_amd64.deb ...
Unpacking cuda-npp-dev-- (10.0.-) ...
Selecting previously unselected package cuda-nvml-dev--.
Preparing to unpack .../-cuda-nvml-dev--0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvml-dev-- (10.0.-) ...
Selecting previously unselected package cuda-nvgraph--.
Preparing to unpack .../-cuda-nvgraph--0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvgraph-- (10.0.-) ...
Selecting previously unselected package cuda-nvgraph-dev--.
Preparing to unpack .../-cuda-nvgraph-dev--0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvgraph-dev-- (10.0.-) ...
Selecting previously unselected package cuda-nvjpeg--.
Preparing to unpack .../-cuda-nvjpeg--0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvjpeg-- (10.0.-) ...
Selecting previously unselected package cuda-nvjpeg-dev--.
Preparing to unpack .../-cuda-nvjpeg-dev--0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvjpeg-dev-- (10.0.-) ...
Selecting previously unselected package cuda-nsight-compute--.
Preparing to unpack .../-cuda-nsight-compute--0_10.0.130-1_amd64.deb ...
Unpacking cuda-nsight-compute-- (10.0.-) ...
Selecting previously unselected package cuda-visual-tools--.
Preparing to unpack .../-cuda-visual-tools--0_10.0.130-1_amd64.deb ...
Unpacking cuda-visual-tools-- (10.0.-) ...
Selecting previously unselected package cuda-tools--.
Preparing to unpack .../-cuda-tools--0_10.0.130-1_amd64.deb ...
Unpacking cuda-tools-- (10.0.-) ...
Selecting previously unselected package freeglut3:amd64.
Preparing to unpack .../-freeglut3_2.8.1-3_amd64.deb ...
Unpacking freeglut3:amd64 (2.8.-) ...
Selecting previously unselected package xorg-sgml-doctools.
Preparing to unpack .../-xorg-sgml-doctools_1%3a1.-1_all.deb ...
Unpacking xorg-sgml-doctools (:1.11-) ...
Selecting previously unselected package x11proto-dev.
Preparing to unpack .../-x11proto-dev_2018.-4_all.deb ...
Unpacking x11proto-dev (2018.4-) ...
Selecting previously unselected package x11proto-core-dev.
Preparing to unpack .../-x11proto-core-dev_2018.-4_all.deb ...
Unpacking x11proto-core-dev (2018.4-) ...
Selecting previously unselected package libxau-dev:amd64.
Preparing to unpack .../-libxau-dev_1%3a1.0.8-1_amd64.deb ...
Unpacking libxau-dev:amd64 (:1.0.-) ...
Selecting previously unselected package libxdmcp-dev:amd64.
Preparing to unpack .../-libxdmcp-dev_1%3a1.1.2-3_amd64.deb ...
Unpacking libxdmcp-dev:amd64 (:1.1.-) ...
Selecting previously unselected package x11proto-input-dev.
Preparing to unpack .../-x11proto-input-dev_2018.-4_all.deb ...
Unpacking x11proto-input-dev (2018.4-) ...
Selecting previously unselected package xtrans-dev.
Preparing to unpack .../-xtrans-dev_1.3.5-1_all.deb ...
Unpacking xtrans-dev (1.3.-) ...
Selecting previously unselected package libpthread-stubs0-dev:amd64.
Preparing to unpack .../-libpthread-stubs0-dev_0.-4_amd64.deb ...
Unpacking libpthread-stubs0-dev:amd64 (0.3-) ...
Selecting previously unselected package libxcb1-dev:amd64.
Preparing to unpack .../-libxcb1-dev_1.-1_amd64.deb ...
Unpacking libxcb1-dev:amd64 (1.13-) ...
Selecting previously unselected package libx11-dev:amd64.
Preparing to unpack .../-libx11-dev_2%3a1.6.4-3ubuntu0.1_amd64.deb ...
Unpacking libx11-dev:amd64 (:1.6.-3ubuntu0.) ...
Selecting previously unselected package libdrm-dev:amd64.
Preparing to unpack .../-libdrm-dev_2.4.91-2_amd64.deb ...
Unpacking libdrm-dev:amd64 (2.4.-) ...
Selecting previously unselected package mesa-common-dev:amd64.
Preparing to unpack .../-mesa-common-dev_18.0.5-0ubuntu0~18.04.1_amd64.deb ...
Unpacking mesa-common-dev:amd64 (18.0.-0ubuntu0~18.04.) ...
Selecting previously unselected package libglvnd-core-dev:amd64.
Preparing to unpack .../-libglvnd-core-dev_1.0.0-2ubuntu2.2_amd64.deb ...
Unpacking libglvnd-core-dev:amd64 (1.0.-2ubuntu2.) ...
Selecting previously unselected package libgles1:amd64.
Preparing to unpack .../-libgles1_1.0.0-2ubuntu2.2_amd64.deb ...
Unpacking libgles1:amd64 (1.0.-2ubuntu2.) ...
Selecting previously unselected package libopengl0:amd64.
Preparing to unpack .../-libopengl0_1.0.0-2ubuntu2.2_amd64.deb ...
Unpacking libopengl0:amd64 (1.0.-2ubuntu2.) ...
Selecting previously unselected package libglvnd-dev:amd64.
Preparing to unpack .../-libglvnd-dev_1.0.0-2ubuntu2.2_amd64.deb ...
Unpacking libglvnd-dev:amd64 (1.0.-2ubuntu2.) ...
Selecting previously unselected package libx11-xcb-dev:amd64.
Preparing to unpack .../-libx11-xcb-dev_2%3a1.6.4-3ubuntu0.1_amd64.deb ...
Unpacking libx11-xcb-dev:amd64 (:1.6.-3ubuntu0.) ...
Selecting previously unselected package libxcb-dri3-dev:amd64.
Preparing to unpack .../-libxcb-dri3-dev_1.-1_amd64.deb ...
Unpacking libxcb-dri3-dev:amd64 (1.13-) ...
Selecting previously unselected package libxcb-render0-dev:amd64.
Preparing to unpack .../-libxcb-render0-dev_1.-1_amd64.deb ...
Unpacking libxcb-render0-dev:amd64 (1.13-) ...
Selecting previously unselected package libxcb-randr0-dev:amd64.
Preparing to unpack .../-libxcb-randr0-dev_1.-1_amd64.deb ...
Unpacking libxcb-randr0-dev:amd64 (1.13-) ...
Selecting previously unselected package libxcb-shape0-dev:amd64.
Preparing to unpack .../-libxcb-shape0-dev_1.-1_amd64.deb ...
Unpacking libxcb-shape0-dev:amd64 (1.13-) ...
Selecting previously unselected package libxcb-xfixes0-dev:amd64.
Preparing to unpack .../-libxcb-xfixes0-dev_1.-1_amd64.deb ...
Unpacking libxcb-xfixes0-dev:amd64 (1.13-) ...
Selecting previously unselected package libxcb-sync-dev:amd64.
Preparing to unpack .../-libxcb-sync-dev_1.-1_amd64.deb ...
Unpacking libxcb-sync-dev:amd64 (1.13-) ...
Selecting previously unselected package libxcb-present-dev:amd64.
Preparing to unpack .../-libxcb-present-dev_1.-1_amd64.deb ...
Unpacking libxcb-present-dev:amd64 (1.13-) ...
Selecting previously unselected package libxshmfence-dev:amd64.
Preparing to unpack .../-libxshmfence-dev_1.-1_amd64.deb ...
Unpacking libxshmfence-dev:amd64 (1.3-) ...
Selecting previously unselected package libxcb-dri2--dev:amd64.
Preparing to unpack .../-libxcb-dri2--dev_1.-1_amd64.deb ...
Unpacking libxcb-dri2--dev:amd64 (1.13-) ...
Selecting previously unselected package libxcb-glx0-dev:amd64.
Preparing to unpack .../-libxcb-glx0-dev_1.-1_amd64.deb ...
Unpacking libxcb-glx0-dev:amd64 (1.13-) ...
Selecting previously unselected package x11proto-fixes-dev.
Preparing to unpack .../-x11proto-fixes-dev_1%3a2018.-4_all.deb ...
Unpacking x11proto-fixes-dev (:2018.4-) ...
Selecting previously unselected package libxfixes-dev:amd64.
Preparing to unpack .../-libxfixes-dev_1%3a5.0.3-1_amd64.deb ...
Unpacking libxfixes-dev:amd64 (:5.0.-) ...
Selecting previously unselected package x11proto-damage-dev.
Preparing to unpack .../-x11proto-damage-dev_1%3a2018.-4_all.deb ...
Unpacking x11proto-damage-dev (:2018.4-) ...
Selecting previously unselected package libxdamage-dev:amd64.
Preparing to unpack .../-libxdamage-dev_1%3a1.1.4-3_amd64.deb ...
Unpacking libxdamage-dev:amd64 (:1.1.-) ...
Selecting previously unselected package x11proto-xext-dev.
Preparing to unpack .../-x11proto-xext-dev_2018.-4_all.deb ...
Unpacking x11proto-xext-dev (2018.4-) ...
Selecting previously unselected package libxext-dev:amd64.
Preparing to unpack .../-libxext-dev_2%3a1.3.3-1_amd64.deb ...
Unpacking libxext-dev:amd64 (:1.3.-) ...
Selecting previously unselected package x11proto-xf86vidmode-dev.
Preparing to unpack .../-x11proto-xf86vidmode-dev_2018.-4_all.deb ...
Unpacking x11proto-xf86vidmode-dev (2018.4-) ...
Selecting previously unselected package libxxf86vm-dev:amd64.
Preparing to unpack .../-libxxf86vm-dev_1%3a1.1.4-1_amd64.deb ...
Unpacking libxxf86vm-dev:amd64 (:1.1.-) ...
Selecting previously unselected package x11proto-dri2-dev.
Preparing to unpack .../-x11proto-dri2-dev_2018.-4_all.deb ...
Unpacking x11proto-dri2-dev (2018.4-) ...
Selecting previously unselected package x11proto-gl-dev.
Preparing to unpack .../-x11proto-gl-dev_2018.-4_all.deb ...
Unpacking x11proto-gl-dev (2018.4-) ...
Selecting previously unselected package libgl1-mesa-dev:amd64.
Preparing to unpack .../-libgl1-mesa-dev_18.0.5-0ubuntu0~18.04.1_amd64.deb ...
Unpacking libgl1-mesa-dev:amd64 (18.0.-0ubuntu0~18.04.) ...
Selecting previously unselected package libglu1-mesa-dev:amd64.
Preparing to unpack .../-libglu1-mesa-dev_9.0.0-.1build1_amd64.deb ...
Unpacking libglu1-mesa-dev:amd64 (9.0.-.1build1) ...
Selecting previously unselected package libice-dev:amd64.
Preparing to unpack .../-libice-dev_2%3a1.0.9-2_amd64.deb ...
Unpacking libice-dev:amd64 (:1.0.-) ...
Selecting previously unselected package libsm-dev:amd64.
Preparing to unpack .../-libsm-dev_2%3a1.2.2-1_amd64.deb ...
Unpacking libsm-dev:amd64 (:1.2.-) ...
Selecting previously unselected package libxt-dev:amd64.
Preparing to unpack .../-libxt-dev_1%3a1.1.5-1_amd64.deb ...
Unpacking libxt-dev:amd64 (:1.1.-) ...
Selecting previously unselected package freeglut3-dev:amd64.
Preparing to unpack .../-freeglut3-dev_2.8.1-3_amd64.deb ...
Unpacking freeglut3-dev:amd64 (2.8.-) ...
Selecting previously unselected package libxmu-headers.
Preparing to unpack .../-libxmu-headers_2%3a1.1.2-2_all.deb ...
Unpacking libxmu-headers (:1.1.-) ...
Selecting previously unselected package libxmu-dev:amd64.
Preparing to unpack .../-libxmu-dev_2%3a1.1.2-2_amd64.deb ...
Unpacking libxmu-dev:amd64 (:1.1.-) ...
Selecting previously unselected package libxi-dev:amd64.
Preparing to unpack .../-libxi-dev_2%3a1.7.9-1_amd64.deb ...
Unpacking libxi-dev:amd64 (:1.7.-) ...
Selecting previously unselected package cuda-samples--.
Preparing to unpack .../-cuda-samples--0_10.0.130-1_amd64.deb ...
Unpacking cuda-samples-- (10.0.-) ...
Selecting previously unselected package cuda-documentation--.
Preparing to unpack .../-cuda-documentation--0_10.0.130-1_amd64.deb ...
Unpacking cuda-documentation-- (10.0.-) ...
Selecting previously unselected package cuda-libraries-dev--.
Preparing to unpack .../-cuda-libraries-dev--0_10.0.130-1_amd64.deb ...
Unpacking cuda-libraries-dev-- (10.0.-) ...
Selecting previously unselected package cuda-toolkit--.
Preparing to unpack .../-cuda-toolkit--0_10.0.130-1_amd64.deb ...
Unpacking cuda-toolkit-- (10.0.-) ...
Selecting previously unselected package libnvidia-cfg1-:amd64.
Preparing to unpack .../-libnvidia-cfg1-410_410.-0ubuntu1_amd64.deb ...
Unpacking libnvidia-cfg1-:amd64 (410.72-0ubuntu1) ...
Selecting previously unselected package libnvidia-common-.
Preparing to unpack .../-libnvidia-common-410_410.-0ubuntu1_all.deb ...
Unpacking libnvidia-common- (410.72-0ubuntu1) ...
Selecting previously unselected package libnvidia-compute-:amd64.
Preparing to unpack .../-libnvidia-compute-410_410.-0ubuntu1_amd64.deb ...
Unpacking libnvidia-compute-:amd64 (410.72-0ubuntu1) ...
Selecting previously unselected package libnvidia-decode-:amd64.
Preparing to unpack .../-libnvidia-decode-410_410.-0ubuntu1_amd64.deb ...
Unpacking libnvidia-decode-:amd64 (410.72-0ubuntu1) ...
Selecting previously unselected package libnvidia-encode-:amd64.
Preparing to unpack .../-libnvidia-encode-410_410.-0ubuntu1_amd64.deb ...
Unpacking libnvidia-encode-:amd64 (410.72-0ubuntu1) ...
Selecting previously unselected package libnvidia-fbc1-:amd64.
Preparing to unpack .../-libnvidia-fbc1-410_410.-0ubuntu1_amd64.deb ...
Unpacking libnvidia-fbc1-:amd64 (410.72-0ubuntu1) ...
Selecting previously unselected package libnvidia-gl-:amd64.
Preparing to unpack .../-libnvidia-gl-410_410.-0ubuntu1_amd64.deb ...
dpkg-query: no packages found matching libnvidia-gl-
Unpacking libnvidia-gl-:amd64 (410.72-0ubuntu1) ...
Selecting previously unselected package libnvidia-ifr1-:amd64.
Preparing to unpack .../-libnvidia-ifr1-410_410.-0ubuntu1_amd64.deb ...
Unpacking libnvidia-ifr1-:amd64 (410.72-0ubuntu1) ...
Selecting previously unselected package nvidia-compute-utils-.
Preparing to unpack .../-nvidia-compute-utils-410_410.-0ubuntu1_amd64.deb ...
Unpacking nvidia-compute-utils- (410.72-0ubuntu1) ...
Selecting previously unselected package dkms.
Preparing to unpack .../-dkms_2.-3ubuntu9.2_all.deb ...
Unpacking dkms (2.3-3ubuntu9.) ...
Selecting previously unselected package nvidia-kernel-source-.
Preparing to unpack .../-nvidia-kernel-source-410_410.-0ubuntu1_amd64.deb ...
Unpacking nvidia-kernel-source- (410.72-0ubuntu1) ...
Selecting previously unselected package nvidia-kernel-common-.
Preparing to unpack .../-nvidia-kernel-common-410_410.-0ubuntu1_amd64.deb ...
Unpacking nvidia-kernel-common- (410.72-0ubuntu1) ...
Selecting previously unselected package nvidia-dkms-.
Preparing to unpack .../-nvidia-dkms-410_410.-0ubuntu1_amd64.deb ... WARNING: Your driver installation has been altered since it was initially installed; this may happen, for example, if you have since installed the NVIDIA driver through a
mechanism other than nvidia-installer (such as your distribution's native package management system). nvidia-installer will attempt to uninstall as best it can. Please
see the file '/var/log/nvidia-uninstall.log' for details. WARNING: Failed to delete some directories. See /var/log/nvidia-uninstall.log for details. Unpacking nvidia-dkms- (410.72-0ubuntu1) ...
Selecting previously unselected package nvidia-utils-.
Preparing to unpack .../-nvidia-utils-410_410.-0ubuntu1_amd64.deb ...
Unpacking nvidia-utils- (410.72-0ubuntu1) ...
Selecting previously unselected package xserver-xorg-video-nvidia-.
Preparing to unpack .../-xserver-xorg-video-nvidia-410_410.-0ubuntu1_amd64.deb ...
Unpacking xserver-xorg-video-nvidia- (410.72-0ubuntu1) ...
Selecting previously unselected package nvidia-driver-.
Preparing to unpack .../-nvidia-driver-410_410.-0ubuntu1_amd64.deb ...
Unpacking nvidia-driver- (410.72-0ubuntu1) ...
Selecting previously unselected package nvidia-modprobe.
Preparing to unpack .../-nvidia-modprobe_410.-0ubuntu1_amd64.deb ...
Unpacking nvidia-modprobe (410.72-0ubuntu1) ...
Selecting previously unselected package pkg-config.
Preparing to unpack .../-pkg-config_0.29.1-0ubuntu2_amd64.deb ...
Unpacking pkg-config (0.29.-0ubuntu2) ...
Selecting previously unselected package screen-resolution-extra.
Preparing to unpack .../-screen-resolution-extra_0..3_all.deb ...
Unpacking screen-resolution-extra (0.17.) ...
Selecting previously unselected package libxnvctrl0:amd64.
Preparing to unpack .../-libxnvctrl0_410.-0ubuntu1_amd64.deb ...
Unpacking libxnvctrl0:amd64 (410.72-0ubuntu1) ...
Selecting previously unselected package nvidia-settings.
Preparing to unpack .../-nvidia-settings_410.-0ubuntu1_amd64.deb ...
Unpacking nvidia-settings (410.72-0ubuntu1) ...
Selecting previously unselected package cuda-drivers.
Preparing to unpack .../-cuda-drivers_410.-1_amd64.deb ...
Unpacking cuda-drivers (410.72-) ...
Selecting previously unselected package cuda-libraries--.
Preparing to unpack .../-cuda-libraries--0_10.0.130-1_amd64.deb ...
Unpacking cuda-libraries-- (10.0.-) ...
Selecting previously unselected package cuda-runtime--.
Preparing to unpack .../-cuda-runtime--0_10.0.130-1_amd64.deb ...
Unpacking cuda-runtime-- (10.0.-) ...
Selecting previously unselected package cuda-demo-suite--.
Preparing to unpack .../-cuda-demo-suite--0_10.0.130-1_amd64.deb ...
Unpacking cuda-demo-suite-- (10.0.-) ...
Selecting previously unselected package cuda--.
Preparing to unpack .../-cuda--0_10.0.130-1_amd64.deb ...
Unpacking cuda-- (10.0.-) ...
Selecting previously unselected package cuda.
Preparing to unpack .../-cuda_10.0.130-1_amd64.deb ...
Unpacking cuda (10.0.-) ...
Selecting previously unselected package libfakeroot:amd64.
Preparing to unpack .../-libfakeroot_1.-2ubuntu1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.22-2ubuntu1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../-fakeroot_1.-2ubuntu1_amd64.deb ...
Unpacking fakeroot (1.22-2ubuntu1) ...
Selecting previously unselected package fonts-dejavu-extra.
Preparing to unpack .../-fonts-dejavu-extra_2.-1_all.deb ...
Unpacking fonts-dejavu-extra (2.37-) ...
Selecting previously unselected package libalgorithm-diff-perl.
Preparing to unpack .../-libalgorithm-diff-perl_1.19.03-1_all.deb ...
Unpacking libalgorithm-diff-perl (1.19.-) ...
Selecting previously unselected package libalgorithm-diff-xs-perl.
Preparing to unpack .../-libalgorithm-diff-xs-perl_0.-5_amd64.deb ...
Unpacking libalgorithm-diff-xs-perl (0.04-) ...
Selecting previously unselected package libalgorithm-merge-perl.
Preparing to unpack .../-libalgorithm-merge-perl_0.-3_all.deb ...
Unpacking libalgorithm-merge-perl (0.08-) ...
Selecting previously unselected package libatk-wrapper-java.
Preparing to unpack .../-libatk-wrapper-java_0.33.3-20ubuntu0.1_all.deb ...
Unpacking libatk-wrapper-java (0.33.-20ubuntu0.) ...
Selecting previously unselected package libatk-wrapper-java-jni:amd64.
Preparing to unpack .../-libatk-wrapper-java-jni_0.33.3-20ubuntu0.1_amd64.deb ...
Unpacking libatk-wrapper-java-jni:amd64 (0.33.-20ubuntu0.) ...
Selecting previously unselected package libx11-doc.
Preparing to unpack .../-libx11-doc_2%3a1.6.4-3ubuntu0.1_all.deb ...
Unpacking libx11-doc (:1.6.-3ubuntu0.) ...
Selecting previously unselected package nvidia-prime.
Preparing to unpack .../-nvidia-prime_0.8.8.2_all.deb ...
Unpacking nvidia-prime (0.8.8.2) ...
Setting up libglvnd0:amd64 (1.0.-2ubuntu2.) ...
Setting up libopengl0:amd64 (1.0.-2ubuntu2.) ...
Setting up freeglut3:amd64 (2.8.-) ...
Setting up libnvidia-cfg1-:amd64 (410.72-0ubuntu1) ...
Setting up libgles1:amd64 (1.0.-2ubuntu2.) ...
Setting up nvidia-prime (0.8.8.2) ...
Processing triggers for mime-support (.60ubuntu1) ...
Setting up libxshmfence-dev:amd64 (1.3-) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.) ...
Setting up libpthread-stubs0-dev:amd64 (0.3-) ...
Setting up libdrm-dev:amd64 (2.4.-) ...
Setting up xorg-sgml-doctools (:1.11-) ...
Setting up java-common (.63ubuntu1~) ...
Setting up libdpkg-perl (1.19..5ubuntu2.) ...
Setting up libgif7:amd64 (5.1.-) ...
Setting up nvidia-kernel-source- (410.72-0ubuntu1) ...
Setting up x11proto-dev (2018.4-) ...
Setting up libstdc++--dev:amd64 (7.3.-27ubuntu1~18.04) ...
Setting up libegl1:amd64 (1.0.-2ubuntu2.) ...
Setting up x11proto-damage-dev (:2018.4-) ...
Setting up xtrans-dev (1.3.-) ...
Setting up dpkg-dev (1.19..5ubuntu2.) ...
Setting up x11proto-xext-dev (2018.4-) ...
Setting up dkms (2.3-3ubuntu9.) ...
Setting up libxdmcp-dev:amd64 (:1.1.-) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libnvidia-common- (410.72-0ubuntu1) ...
Setting up libice-dev:amd64 (:1.0.-) ...
Setting up libfakeroot:amd64 (1.22-2ubuntu1) ...
Setting up screen-resolution-extra (0.17.) ...
Setting up x11proto-gl-dev (2018.4-) ...
Setting up nvidia-modprobe (410.72-0ubuntu1) ...
Setting up xserver-xorg-video-nvidia- (410.72-0ubuntu1) ...
Setting up cuda-license-- (10.0.-) ...
*** LICENSE AGREEMENT ***
By using this software you agree to fully comply with the terms and
conditions of the EULA (End User License Agreement). The EULA is located
at /usr/local/cuda-10.0/doc/EULA.txt. The EULA can also be found at
http://docs.nvidia.com/cuda/eula/index.html. If you do not agree to the
terms and conditions of the EULA, do not use the software. Setting up libalgorithm-diff-perl (1.19.-) ...
Setting up libx11-doc (:1.6.-3ubuntu0.) ...
Setting up libgles2:amd64 (1.0.-2ubuntu2.) ...
Processing triggers for man-db (2.8.-) ...
Setting up nvidia-kernel-common- (410.72-0ubuntu1) ...
update-initramfs: deferring update (trigger activated)
Created symlink /etc/systemd/system/multi-user.target.wants/nvidia-fallback.service → /lib/systemd/system/nvidia-fallback.service.
Processing triggers for gnome-menus (3.13.-11ubuntu1) ...
Setting up cuda-nvdisasm-- (10.0.-) ...
Setting up cuda-nvml-dev-- (10.0.-) ...
Processing triggers for dbus (1.12.-1ubuntu1) ...
Setting up fonts-dejavu-extra (2.37-) ...
Setting up cuda-nvprof-- (10.0.-) ...
Setting up libnvidia-compute-:amd64 (410.72-0ubuntu1) ...
Processing triggers for ca-certificates () ...
Updating certificates in /etc/ssl/certs...
added, removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Setting up libatk-wrapper-java (0.33.-20ubuntu0.) ...
Setting up cuda-nvrtc-- (10.0.-) ...
Setting up libglx0:amd64 (1.0.-2ubuntu2.) ...
Processing triggers for hicolor-icon-theme (0.17-) ...
Setting up cuda-nvtx-- (10.0.-) ...
Setting up libglvnd-core-dev:amd64 (1.0.-2ubuntu2.) ...
Setting up x11proto-input-dev (2018.4-) ...
Setting up libxnvctrl0:amd64 (410.72-0ubuntu1) ...
Processing triggers for fontconfig (2.12.-0ubuntu2) ...
Setting up cuda-nvgraph-- (10.0.-) ...
Setting up x11proto-dri2-dev (2018.4-) ...
Setting up cuda-nvprune-- (10.0.-) ...
Setting up nvidia-compute-utils- (410.72-0ubuntu1) ...
Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory
Adding system user `nvidia-persistenced' (UID 123) ...
Adding new group `nvidia-persistenced' (GID 127) ...
Adding new user `nvidia-persistenced' (UID 123) with group `nvidia-persistenced' ...
Not creating home directory `/nonexistent'.
Setting up libsm-dev:amd64 (:1.2.-) ...
Setting up x11proto-core-dev (2018.4-) ...
Setting up cuda-cusparse-- (10.0.-) ...
Setting up cuda-cuobjdump-- (10.0.-) ...
Setting up cuda-nvjpeg-- (10.0.-) ...
Setting up cuda-gdb-- (10.0.-) ...
Setting up g++- (7.3.-27ubuntu1~18.04) ...
Setting up cuda-nvjpeg-dev-- (10.0.-) ...
Setting up cuda-cufft-- (10.0.-) ...
Setting up cuda-nsight-compute-- (10.0.-) ...
Setting up cuda-cudart-- (10.0.-) ...
Setting up x11proto-fixes-dev (:2018.4-) ...
Setting up cuda-npp-- (10.0.-) ...
Setting up cuda-cufft-dev-- (10.0.-) ...
Setting up x11proto-xf86vidmode-dev (2018.4-) ...
Setting up libxau-dev:amd64 (:1.0.-) ...
Setting up nvidia-dkms- (410.72-0ubuntu1) ...
update-initramfs: deferring update (trigger activated) A modprobe blacklist file has been created at /etc/modprobe.d to prevent Nouveau
from loading. This can be reverted by deleting the following file:
/etc/modprobe.d/nvidia-graphics-drivers.conf A new initrd image has also been created. To revert, please regenerate your
initrd by running the following command after deleting the modprobe.d file:
`/usr/sbin/initramfs -u` *****************************************************************************
*** Reboot your computer and verify that the NVIDIA graphics driver can ***
*** be loaded. ***
***************************************************************************** INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Loading new nvidia-410.72 DKMS files...
Building for 4.15.--generic
Building for architecture x86_64
Building initial module for 4.15.--generic
Generating a bit RSA private key
................................................................................+++
....................+++
writing new private key to '/var/lib/shim-signed/mok/MOK.priv'
-----
Secure Boot not enabled on this system.
Done. nvidia:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.15.--generic/updates/dkms/ nvidia-modeset.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.15.--generic/updates/dkms/ nvidia-drm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.15.--generic/updates/dkms/ nvidia-uvm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.15.--generic/updates/dkms/ depmod... DKMS: install completed.
Setting up fakeroot (1.22-2ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Setting up cuda-cusolver-- (10.0.-) ...
Setting up cuda-misc-headers-- (10.0.-) ...
Setting up cuda-curand-- (10.0.-) ...
Setting up libalgorithm-merge-perl (0.08-) ...
Setting up cuda-driver-dev-- (10.0.-) ...
Setting up pkg-config (0.29.-0ubuntu2) ...
Setting up cuda-gpu-library-advisor-- (10.0.-) ...
Setting up libatk-wrapper-java-jni:amd64 (0.33.-20ubuntu0.) ...
Setting up libalgorithm-diff-xs-perl (0.04-) ...
Setting up cuda-cublas-- (10.0.-) ...
Setting up cuda-nvgraph-dev-- (10.0.-) ...
Setting up cuda-cudart-dev-- (10.0.-) ...
Setting up cuda-memcheck-- (10.0.-) ...
Setting up libnvidia-decode-:amd64 (410.72-0ubuntu1) ...
Setting up libgl1:amd64 (1.0.-2ubuntu2.) ...
Setting up nvidia-utils- (410.72-0ubuntu1) ...
Setting up cuda-nvrtc-dev-- (10.0.-) ...
Setting up libxcb1-dev:amd64 (1.13-) ...
Setting up libxcb-glx0-dev:amd64 (1.13-) ...
Setting up g++ (:7.3.-3ubuntu2.) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up cuda-npp-dev-- (10.0.-) ...
Setting up libx11-dev:amd64 (:1.6.-3ubuntu0.) ...
Setting up libxxf86vm-dev:amd64 (:1.1.-) ...
Setting up libxfixes-dev:amd64 (:5.0.-) ...
Setting up cuda-curand-dev-- (10.0.-) ...
Setting up libxcb-sync-dev:amd64 (1.13-) ...
Setting up cuda-cusparse-dev-- (10.0.-) ...
Setting up cuda-cusolver-dev-- (10.0.-) ...
Setting up libnvidia-gl-:amd64 (410.72-0ubuntu1) ...
Setting up libx11-xcb-dev:amd64 (:1.6.-3ubuntu0.) ...
Setting up cuda-cublas-dev-- (10.0.-) ...
Setting up libxt-dev:amd64 (:1.1.-) ...
Setting up cuda-libraries-dev-- (10.0.-) ...
Setting up mesa-common-dev:amd64 (18.0.-0ubuntu0~18.04.) ...
Setting up build-essential (.4ubuntu1) ...
Setting up libnvidia-ifr1-:amd64 (410.72-0ubuntu1) ...
Setting up libxmu-headers (:1.1.-) ...
Setting up libxdamage-dev:amd64 (:1.1.-) ...
Setting up libnvidia-fbc1-:amd64 (410.72-0ubuntu1) ...
Setting up libnvidia-encode-:amd64 (410.72-0ubuntu1) ...
Setting up cuda-libraries-- (10.0.-) ...
Setting up libglvnd-dev:amd64 (1.0.-2ubuntu2.) ...
Setting up nvidia-settings (410.72-0ubuntu1) ...
Setting up libxcb-dri2--dev:amd64 (1.13-) ...
Setting up libxcb-render0-dev:amd64 (1.13-) ...
Setting up libxcb-dri3-dev:amd64 (1.13-) ...
Setting up libxext-dev:amd64 (:1.3.-) ...
Setting up libxcb-shape0-dev:amd64 (1.13-) ...
Setting up nvidia-driver- (410.72-0ubuntu1) ...
Setting up libxi-dev:amd64 (:1.7.-) ...
Setting up cuda-nvcc-- (10.0.-) ...
Setting up libxcb-randr0-dev:amd64 (1.13-) ...
Setting up libxmu-dev:amd64 (:1.1.-) ...
Setting up libxcb-xfixes0-dev:amd64 (1.13-) ...
Setting up cuda-cupti-- (10.0.-) ...
Setting up cuda-command-line-tools-- (10.0.-) ...
Setting up cuda-drivers (410.72-) ...
Setting up libxcb-present-dev:amd64 (1.13-) ...
Setting up cuda-compiler-- (10.0.-) ...
Setting up cuda-runtime-- (10.0.-) ...
Setting up cuda-demo-suite-- (10.0.-) ...
Setting up libgl1-mesa-dev:amd64 (18.0.-0ubuntu0~18.04.) ...
Setting up libglu1-mesa-dev:amd64 (9.0.-.1build1) ...
Setting up freeglut3-dev:amd64 (2.8.-) ...
Setting up cuda-samples-- (10.0.-) ...
Setting up cuda-documentation-- (10.0.-) ...
Setting up openjdk--jre-headless:amd64 (10.0.+-1ubuntu0.18.04.) ...
update-alternatives: using /usr/lib/jvm/java--openjdk-amd64/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode
update-alternatives: using /usr/lib/jvm/java--openjdk-amd64/bin/java to provide /usr/bin/java (java) in auto mode
update-alternatives: using /usr/lib/jvm/java--openjdk-amd64/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode
update-alternatives: using /usr/lib/jvm/java--openjdk-amd64/bin/jjs to provide /usr/bin/jjs (jjs) in auto mode
update-alternatives: using /usr/lib/jvm/java--openjdk-amd64/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode
update-alternatives: using /usr/lib/jvm/java--openjdk-amd64/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode
update-alternatives: using /usr/lib/jvm/java--openjdk-amd64/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode
update-alternatives: using /usr/lib/jvm/java--openjdk-amd64/bin/orbd to provide /usr/bin/orbd (orbd) in auto mode
update-alternatives: using /usr/lib/jvm/java--openjdk-amd64/bin/servertool to provide /usr/bin/servertool (servertool) in auto mode
update-alternatives: using /usr/lib/jvm/java--openjdk-amd64/bin/tnameserv to provide /usr/bin/tnameserv (tnameserv) in auto mode
update-alternatives: using /usr/lib/jvm/java--openjdk-amd64/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode
Setting up default-jre-headless (:1.10-63ubuntu1~) ...
Setting up openjdk--jre:amd64 (10.0.+-1ubuntu0.18.04.) ...
Setting up ca-certificates-java (20180516ubuntu1~18.04.) ...
head: cannot open '/etc/ssl/certs/java/cacerts' for reading: No such file or directory
Adding debian:ACCVRAIZ1.pem
Adding debian:AC_RAIZ_FNMT-RCM.pem
Adding debian:Actalis_Authentication_Root_CA.pem
Adding debian:AddTrust_External_Root.pem
Adding debian:AffirmTrust_Commercial.pem
Adding debian:AffirmTrust_Networking.pem
Adding debian:AffirmTrust_Premium.pem
Adding debian:AffirmTrust_Premium_ECC.pem
Adding debian:Amazon_Root_CA_1.pem
Adding debian:Amazon_Root_CA_2.pem
Adding debian:Amazon_Root_CA_3.pem
Adding debian:Amazon_Root_CA_4.pem
Adding debian:Atos_TrustedRoot_2011.pem
Adding debian:Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem
Adding debian:Baltimore_CyberTrust_Root.pem
Adding debian:Buypass_Class_2_Root_CA.pem
Adding debian:Buypass_Class_3_Root_CA.pem
Adding debian:CA_Disig_Root_R2.pem
Adding debian:CFCA_EV_ROOT.pem
Adding debian:COMODO_Certification_Authority.pem
Adding debian:COMODO_ECC_Certification_Authority.pem
Adding debian:COMODO_RSA_Certification_Authority.pem
Adding debian:Certigna.pem
Adding debian:Certinomis_-_Root_CA.pem
Adding debian:Certplus_Class_2_Primary_CA.pem
Adding debian:Certplus_Root_CA_G1.pem
Adding debian:Certplus_Root_CA_G2.pem
Adding debian:Certum_Trusted_Network_CA.pem
Adding debian:Certum_Trusted_Network_CA_2.pem
Adding debian:Chambers_of_Commerce_Root_-_2008.pem
Adding debian:Comodo_AAA_Services_root.pem
Adding debian:Cybertrust_Global_Root.pem
Adding debian:D-TRUST_Root_Class_3_CA_2_2009.pem
Adding debian:D-TRUST_Root_Class_3_CA_2_EV_2009.pem
Adding debian:DST_Root_CA_X3.pem
Adding debian:Deutsche_Telekom_Root_CA_2.pem
Adding debian:DigiCert_Assured_ID_Root_CA.pem
Adding debian:DigiCert_Assured_ID_Root_G2.pem
Adding debian:DigiCert_Assured_ID_Root_G3.pem
Adding debian:DigiCert_Global_Root_CA.pem
Adding debian:DigiCert_Global_Root_G2.pem
Adding debian:DigiCert_Global_Root_G3.pem
Adding debian:DigiCert_High_Assurance_EV_Root_CA.pem
Adding debian:DigiCert_Trusted_Root_G4.pem
Adding debian:E-Tugra_Certification_Authority.pem
Adding debian:EC-ACC.pem
Adding debian:EE_Certification_Centre_Root_CA.pem
Adding debian:Entrust.net_Premium_2048_Secure_Server_CA.pem
Adding debian:Entrust_Root_Certification_Authority.pem
Adding debian:Entrust_Root_Certification_Authority_-_EC1.pem
Adding debian:Entrust_Root_Certification_Authority_-_G2.pem
Adding debian:GDCA_TrustAUTH_R5_ROOT.pem
Adding debian:GeoTrust_Global_CA.pem
Adding debian:GeoTrust_Primary_Certification_Authority.pem
Adding debian:GeoTrust_Primary_Certification_Authority_-_G2.pem
Adding debian:GeoTrust_Primary_Certification_Authority_-_G3.pem
Adding debian:GeoTrust_Universal_CA.pem
Adding debian:GeoTrust_Universal_CA_2.pem
Adding debian:GlobalSign_ECC_Root_CA_-_R4.pem
Adding debian:GlobalSign_ECC_Root_CA_-_R5.pem
Adding debian:GlobalSign_Root_CA.pem
Adding debian:GlobalSign_Root_CA_-_R2.pem
Adding debian:GlobalSign_Root_CA_-_R3.pem
Adding debian:Global_Chambersign_Root_-_2008.pem
Adding debian:Go_Daddy_Class_2_CA.pem
Adding debian:Go_Daddy_Root_Certificate_Authority_-_G2.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_ECC_RootCA_2015.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_RootCA_2011.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_RootCA_2015.pem
Adding debian:Hongkong_Post_Root_CA_1.pem
Adding debian:ISRG_Root_X1.pem
Adding debian:IdenTrust_Commercial_Root_CA_1.pem
Adding debian:IdenTrust_Public_Sector_Root_CA_1.pem
Adding debian:Izenpe.com.pem
Adding debian:LuxTrust_Global_Root_2.pem
Adding debian:Microsec_e-Szigno_Root_CA_2009.pem
Adding debian:NetLock_Arany_=Class_Gold=_Főtanúsítvány.pem
Adding debian:Network_Solutions_Certificate_Authority.pem
Adding debian:OISTE_WISeKey_Global_Root_GA_CA.pem
Adding debian:OISTE_WISeKey_Global_Root_GB_CA.pem
Adding debian:OpenTrust_Root_CA_G1.pem
Adding debian:OpenTrust_Root_CA_G2.pem
Adding debian:OpenTrust_Root_CA_G3.pem
Adding debian:QuoVadis_Root_CA.pem
Adding debian:QuoVadis_Root_CA_1_G3.pem
Adding debian:QuoVadis_Root_CA_2.pem
Adding debian:QuoVadis_Root_CA_2_G3.pem
Adding debian:QuoVadis_Root_CA_3.pem
Adding debian:QuoVadis_Root_CA_3_G3.pem
Adding debian:SSL.com_EV_Root_Certification_Authority_ECC.pem
Adding debian:SSL.com_EV_Root_Certification_Authority_RSA_R2.pem
Adding debian:SSL.com_Root_Certification_Authority_ECC.pem
Adding debian:SSL.com_Root_Certification_Authority_RSA.pem
Adding debian:SZAFIR_ROOT_CA2.pem
Adding debian:SecureSign_RootCA11.pem
Adding debian:SecureTrust_CA.pem
Adding debian:Secure_Global_CA.pem
Adding debian:Security_Communication_RootCA2.pem
Adding debian:Security_Communication_Root_CA.pem
Adding debian:Sonera_Class_2_Root_CA.pem
Adding debian:Staat_der_Nederlanden_EV_Root_CA.pem
Adding debian:Staat_der_Nederlanden_Root_CA_-_G2.pem
Adding debian:Staat_der_Nederlanden_Root_CA_-_G3.pem
Adding debian:Starfield_Class_2_CA.pem
Adding debian:Starfield_Root_Certificate_Authority_-_G2.pem
Adding debian:Starfield_Services_Root_Certificate_Authority_-_G2.pem
Adding debian:SwissSign_Gold_CA_-_G2.pem
Adding debian:SwissSign_Silver_CA_-_G2.pem
Adding debian:T-TeleSec_GlobalRoot_Class_2.pem
Adding debian:T-TeleSec_GlobalRoot_Class_3.pem
Adding debian:TUBITAK_Kamu_SM_SSL_Kok_Sertifikasi_-_Surum_1.pem
Adding debian:TWCA_Global_Root_CA.pem
Adding debian:TWCA_Root_Certification_Authority.pem
Adding debian:Taiwan_GRCA.pem
Adding debian:TeliaSonera_Root_CA_v1.pem
Adding debian:TrustCor_ECA-.pem
Adding debian:TrustCor_RootCert_CA-.pem
Adding debian:TrustCor_RootCert_CA-.pem
Adding debian:Trustis_FPS_Root_CA.pem
Adding debian:TÜRKTRUST_Elektronik_Sertifika_Hizmet_Sağlayıcısı_H5.pem
Adding debian:USERTrust_ECC_Certification_Authority.pem
Adding debian:USERTrust_RSA_Certification_Authority.pem
Adding debian:VeriSign_Class_3_Public_Primary_Certification_Authority_-_G4.pem
Adding debian:VeriSign_Class_3_Public_Primary_Certification_Authority_-_G5.pem
Adding debian:VeriSign_Universal_Root_Certification_Authority.pem
Adding debian:Verisign_Class_3_Public_Primary_Certification_Authority_-_G3.pem
Adding debian:Visa_eCommerce_Root.pem
Adding debian:XRamp_Global_CA_Root.pem
Adding debian:certSIGN_ROOT_CA.pem
Adding debian:ePKI_Root_Certification_Authority.pem
Adding debian:thawte_Primary_Root_CA.pem
Adding debian:thawte_Primary_Root_CA_-_G2.pem
Adding debian:thawte_Primary_Root_CA_-_G3.pem
Adding debian:ssl-cert-snakeoil.pem
done.
Setting up default-jre (:1.10-63ubuntu1~) ...
Setting up cuda-nvvp-- (10.0.-) ...
Setting up cuda-nsight-- (10.0.-) ...
Setting up cuda-visual-tools-- (10.0.-) ...
Setting up cuda-tools-- (10.0.-) ...
Setting up cuda-toolkit-- (10.0.-) ...
Setting up cuda-- (10.0.-) ...
Setting up cuda (10.0.-) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for initramfs-tools (.130ubuntu3.) ...
update-initramfs: Generating /boot/initrd.img-4.15.--generic
Processing triggers for ca-certificates () ...
Updating certificates in /etc/ssl/certs...
added, removed; done.
Running hooks in /etc/ca-certificates/update.d... done.
done.

apt-get install cuda
Reading package lists... Done
Building dependency tree
Reading state information... Done
cuda is already the newest version (10.0.130-1).
0 upgraded, 0 newly installed, 0 to remove and 185 not upgraded.

cuda安装成功,看到一个报警信息,有点担心
```
WARNING: Your driver installation has been altered since it was initially installed; this may happen, for example, if you have since installed the NVIDIA driver through a
mechanism other than nvidia-installer (such as your distribution's native package management system). nvidia-installer will attempt to uninstall as best it can. Please
see the file '/var/log/nvidia-uninstall.log' for details.
```

果然cuda安装好了,但驱动出问题了

nvidia-smi
Failed to initialize NVML: Driver/library version mismatch

重启,还是不行

又试了一些办法,不行,转念一想,再重新安装驱动不就好了

sudo sh NVIDIA-Linux-x86_64-390.87.run

```
NVIDIA Accelerated Graphics Driver for Linux-x86_64 (390.87)

The NVIDIA driver appears to have been installed previously using a different installer. To prevent potential conflicts, it is recommended either to update the existing
installation using the same mechanism by which it was originally installed, or to uninstall the existing installation before installing this driver.

Please review the message provided by the maintainer of this alternate installation method and decide how to proceed:

Continue installation Abort installation

The package that is already installed is named nvidia-410-410.

You can upgrade the driver by running:
`apt-get install nvidia-410-410`

You can remove nvidia-410-410, and all related packages, by running:
`apt-get remove --purge nvidia-410`
`apt-get autoremove`

This package is maintained by NVIDIA (cudatools@nvidia.com).
````

提示和之前安装时不一样

试了试 apt-get install nvidia-410-410

没反应

apt-get install nvidia-410-410
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nvidia-410-410

按提示又把驱动重新装了一遍,驱动就ok了,暂时还不确定有没有别的隐患

https://www.nvidia.cn/object/unix-cn.html
驱动包是390.87 安装完cuda成了 410.78

nvidia-smi
Mon Dec 10 18:10:21 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.87 Driver Version: 390.87 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 NVS 315 Off | 00000000:03:00.0 N/A | N/A |
| 30% 44C P0 N/A / N/A | 0MiB / 956MiB | N/A Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 Not Supported |
+-----------------------------------------------------------------------------+

sudo dpkg --list | grep nvidia-*
ii libnvidia-cfg1-410:amd64 410.72-0ubuntu1 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-common-410 410.72-0ubuntu1 all Shared files used by the NVIDIA libraries
ii libnvidia-compute-410:amd64 410.72-0ubuntu1 amd64 NVIDIA libcompute package
ii libnvidia-container-tools 1.0.0-1 amd64 NVIDIA container runtime library (command-line tools)
ii libnvidia-container1:amd64 1.0.0-1 amd64 NVIDIA container runtime library
ii libnvidia-decode-410:amd64 410.72-0ubuntu1 amd64 NVIDIA Video Decoding runtime libraries
ii libnvidia-encode-410:amd64 410.72-0ubuntu1 amd64 NVENC Video Encoding runtime library
ii libnvidia-fbc1-410:amd64 410.72-0ubuntu1 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-gl-410:amd64 410.72-0ubuntu1 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-ifr1-410:amd64 410.72-0ubuntu1 amd64 NVIDIA OpenGL-based Inband Frame Readback runtime library
ii nvidia-compute-utils-410 410.72-0ubuntu1 amd64 NVIDIA compute utilities
ii nvidia-container-runtime 2.0.0+docker18.09.0-1 amd64 NVIDIA container runtime
ii nvidia-container-runtime-hook 1.4.0-1 amd64 NVIDIA container runtime hook
ii nvidia-dkms-410 410.72-0ubuntu1 amd64 NVIDIA DKMS package
ii nvidia-docker2 2.0.3+docker18.09.0-1 all nvidia-docker CLI wrapper
ii nvidia-driver-410 410.72-0ubuntu1 amd64 NVIDIA driver metapackage
ii nvidia-kernel-common-410 410.72-0ubuntu1 amd64 Shared files used with the kernel module
ii nvidia-kernel-source-410 410.72-0ubuntu1 amd64 NVIDIA kernel source package
ii nvidia-modprobe 410.72-0ubuntu1 amd64 Load the NVIDIA kernel driver and create device files
ii nvidia-prime 0.8.8.2 all Tools to enable NVIDIA's Prime
ii nvidia-settings 410.72-0ubuntu1 amd64 Tool for configuring the NVIDIA graphics driver
ii nvidia-utils-410 410.72-0ubuntu1 amd64 NVIDIA driver support binaries
ii xserver-xorg-video-nvidia-410 410.72-0ubuntu1 amd64 NVIDIA binary Xorg driver

来试试tf
https://www.tensorflow.org/install/docker

docker images
tensorflow/tensorflow latest-gpu-py3 413b9533f92a 4 weeks ago 3.35GB
tensorflow/tensorflow latest-gpu 58a8e83b7dbf 4 weeks ago 3.36GB

docker run -d --name tf --network host tensorflow/tensorflow:latest-gpu-py3 tail -f /dev/null

docker exec -it tf bash

python -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))"

悲剧
```
root@social-ubuntu:/notebooks# python -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))"
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/usr/lib/python3.5/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: libcuda.so.1: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/tensorflow/__init__.py", line 24, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/usr/lib/python3.5/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: libcuda.so.1: cannot open shared object file: No such file or directory

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
```

试试

social@social-ubuntu:~$ nvidia-docker run -d --name tf --network host tensorflow/tensorflow:latest-gpu-py3 tail -f /dev/null
fea5d3f35ef0e78a0b12e632cf01c7715b4ecbaaa9e41c17670cb1e0622e9456
docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"process_linux.go:385: running prestart hook 0 caused \\\"error running hook: exit status 1, stdout: , stderr: exec command: [/usr/bin/nvidia-container-cli --load-kmods configure --ldconfig=@/sbin/ldconfig.real --device=all --compute --utility --require=cuda>=9.0 --pid=19947 /var/lib/docker/overlay2/42911504b76163ad4e55fc14c80468e03520225541b54a85260044a80d437007/merged]\\\\nnvidia-container-cli: mount error: mount operation failed: /var/lib/docker/overlay2/42911504b76163ad4e55fc14c80468e03520225541b54a85260044a80d437007/merged/proc/driver/nvidia/params/version/registry: no such file or directory\\\\n\\\"\"": unknown.

发现提示

https://www.tensorflow.org/install/docker
Note: nvidia-docker v1 uses the nvidia-docker alias, where v2 uses docker --runtime=nvidia.

nvidia-docker version
NVIDIA Docker: 2.0.3
Client:
Version: 18.09.0
API version: 1.39
Go version: go1.10.4
Git commit: 4d60db4
Built: Wed Nov 7 00:49:01 2018
OS/Arch: linux/amd64
Experimental: false

Server: Docker Engine - Community
Engine:
Version: 18.09.0
API version: 1.39 (minimum version 1.12)
Go version: go1.10.4
Git commit: 4d60db4
Built: Wed Nov 7 00:16:44 2018
OS/Arch: linux/amd64
Experimental: false

NVIDIA Docker: 2.0.3

docker run --runtime=nvidia -d --name tf --network host tensorflow/tensorflow:latest-gpu-py3 tail -f /dev/null
social@social-ubuntu:~$ docker run --runtime=nvidia -d --name tf --network host tensorflow/tensorflow:latest-gpu-py3 tail -f /dev/null
8a20529be6e7e20c01288cc1ed6fafe233969ef61cb76a421fa29176d518b11c
docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"process_linux.go:385: running prestart hook 0 caused \\\"error running hook: exit status 1, stdout: , stderr: exec command: [/usr/bin/nvidia-container-cli --load-kmods configure --ldconfig=@/sbin/ldconfig.real --device=all --compute --utility --require=cuda>=9.0 --pid=30024 /var/lib/docker/overlay2/c59d9603e5e78e1fe64f5784d201b3fc558045b31cfdc98d0405117efaacd76a/merged]\\\\nnvidia-container-cli: mount error: mount operation failed: /var/lib/docker/overlay2/c59d9603e5e78e1fe64f5784d201b3fc558045b31cfdc98d0405117efaacd76a/merged/proc/driver/nvidia/params/version/registry: no such file or directory\\\\n\\\"\"": unknown.

还是不行

试着重启systemctl restart docker

问题依旧,直觉可能是nvidia-docker的问题

docker run --runtime=nvidia --rm nvidia/cuda:9.0-base nvidia-smi
同样报错,之前的操作是成功了的,果然是nvidia-docker的问题

忽然想起一点,我是先装的nvidia-docker 后装的cuda 又因为驱动异常,重装了驱动,会不会是这个原因?

重装nvidia-docker试试

apt-get remove nvidia-docker2
apt-get install nvidia-docker2

docker run --runtime=nvidia --rm nvidia/cuda:9.0-base nvidia-smi
成功

docker run --runtime=nvidia -d --name tf --network host tensorflow/tensorflow:latest-gpu-py3 tail -f /dev/null
0f320d9be09d0678f224ecbf9b2b396763477bd1187455feec690f5bdafe6016
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0f320d9be09d tensorflow/tensorflow:latest-gpu-py3 "tail -f /dev/null" 16 seconds ago Up 13 seconds tf

成功
docker exec -it tf bash
python -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))"

root@social-ubuntu:/notebooks# python -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))"
2018-12-10 10:58:11.922409: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2018-12-10 10:58:12.162344: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1432] Found device 0 with properties:
name: NVS 315 major: 2 minor: 1 memoryClockRate(GHz): 1.046
pciBusID: 0000:03:00.0
totalMemory: 956.19MiB freeMemory: 876.19MiB
2018-12-10 10:58:12.162384: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1482] Ignoring visible gpu device (device: 0, name: NVS 315, pci bus id: 0000:03:00.0, compute capability: 2.1) with Cuda compute capability 2.1. The minimum required Cuda capability is 3.5.
2018-12-10 10:58:12.162399: I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] Device interconnect StreamExecutor with strength 1 edge matrix:
2018-12-10 10:58:12.162414: I tensorflow/core/common_runtime/gpu/gpu_device.cc:988] 0
2018-12-10 10:58:12.162432: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1001] 0: N
tf.Tensor(926.7046, shape=(), dtype=float32)
root@social-ubuntu:/notebooks#

Ignoring visible gpu device (device: 0, name: NVS 315, pci bus id: 0000:03:00.0, compute capability: 2.1) with Cuda compute capability 2.1. The minimum required Cuda capability is 3.5.

因为计算能力不够,现gpu 2.1,cuda最小需求3.5,gpu被ignore了

不过看这样子,gpu驱动和cuda,nvidia是ok了

安装建议是
ssd、docker、driver、cuda、nvidia-docker
...

——————————
发现新问题

再启动docker run --runtime=nvidia --rm nvidia/cuda:9.0-base nvidia-smi 又报错了

直觉可能还是nvidia-docker的问题

尝试

docker stop tf
docker run --runtime=nvidia --rm nvidia/cuda:9.0-base nvidia-smi 则又ok

原来之前搞错了,nvidia-docker启动容器异常,也许不是安装cuda顺序的问题,而是nvidia-docker容器只能有一个能正常

如果已经执行了一个nvidia-docker容器 那么再启动新的nvidia-docker都会失败

若先stop原来的nvidia-docker,再启动新的nvidia-docker,则新容器正常

这个问题也先记下,看有没有办法解除只有单容器正常的限制

FIN

 

ubuntu 深度学习cuda环境搭建,docker-nvidia 2019-02的更多相关文章

  1. Ubuntu16.04深度学习基本环境搭建,tensorflow , keras , pytorch , cuda

    Ubuntu16.04深度学习基本环境搭建,tensorflow , keras , pytorch , cuda Ubuntu16.04安装 参考https://blog.csdn.net/flyy ...

  2. 人工智能之深度学习-初始环境搭建(安装Anaconda3和TensorFlow2步骤详解)

    前言: 本篇文章主要讲解的是在学习人工智能之深度学习时所学到的知识和需要的环境配置(安装Anaconda3和TensorFlow2步骤详解),以及个人的心得体会,汇集成本篇文章,作为自己深度学习的总结 ...

  3. 深度学习开发环境搭建教程(Mac篇)

    本文将指导你如何在自己的Mac上部署Theano + Keras的深度学习开发环境. 如果你的Mac不自带NVIDIA的独立显卡(例如15寸以下或者17年新款的Macbook.具体可以在"关 ...

  4. 第一节,windows和ubuntu下深度学习theano环境搭建

    先讲解windows下深度学习环境的搭建 步骤一  安装Anaconda Anaconda是一个用于科学计算的python发行版,支持linux,mac,windows系统,提供了包管理和环境管理的功 ...

  5. 深度学习 GPU环境 Ubuntu 16.04 + Nvidia GTX 1080 + Python 3.6 + CUDA 9.0 + cuDNN 7.1 + TensorFlow 1.6 环境配置

    本节详细说明一下深度学习环境配置,Ubuntu 16.04 + Nvidia GTX 1080 + Python 3.6 + CUDA 9.0 + cuDNN 7.1 + TensorFlow 1.6 ...

  6. (转)深度学习主机环境配置: Ubuntu16.04+Nvidia GTX 1080+CUDA8.0

      深度学习主机环境配置: Ubuntu16.04+Nvidia GTX 1080+CUDA8.0 发表于2016年07月15号由52nlp 接上文<深度学习主机攒机小记>,这台GTX10 ...

  7. 包含深度学习常用框架的Docker环境

    相关的代码都在Github上,请参见我的Github,https://github.com/lijingpeng/deep-learning-notes 敬请多多关注哈~~~ All in one d ...

  8. 解决 Ubuntu 18.10 使用较新的独立显卡输出无法初始化图形界面并配置深度学习开发环境

    原文地址:解决 Ubuntu 18.10 使用较新的独立显卡输出无法初始化图形界面并配置深度学习开发环境 0x00 配置 硬件 OS: Ubuntu 18.10 Base Board: ASUS WS ...

  9. 从零开始在ubuntu上配置深度学习开发环境

    从零开始在ubuntu上配置深度学习开发环境 昨天一不小心把原来配置好的台式机的开发环境破坏了,调了半天没有调回来,索性就重装一次ubuntu系统.这篇文章主要记录一个简单的.‘傻瓜式’教程. 一.U ...

随机推荐

  1. buildroot经验

    1.可以运行bulilroot下面的孙可编写的build.sh文件,自动配置和编译 2.如何添加要下载和编译的包? 如要下载和编译libevent, 可以通过make menuconfig, 然后搜索 ...

  2. SpringBoot 系列教程之编程式事务使用姿势介绍篇

    SpringBoot 系列教程之编程式事务使用姿势介绍篇 前面介绍的几篇事务的博文,主要是利用@Transactional注解的声明式使用姿势,其好处在于使用简单,侵入性低,可辨识性高(一看就知道使用 ...

  3. 轻量级UILabel分段点击扩展更新啦

    http://www.code4app.com/thread-31445-1-1.html Tag: 项目介绍: YBAttributeTextTapAction 一行代码添加文本点击事件 效果图 S ...

  4. HDU 5423:Rikka with Tree Dijkstra算法

    Rikka with Tree  Accepts: 207  Submissions: 815  Time Limit: 2000/1000 MS (Java/Others)  Memory Limi ...

  5. VMWare WorkStation15--Win10下开机启动虚拟机

    参考 https://www.cnblogs.com/qmfsun/p/6284236.html http://www.cnblogs.com/eliteboy/p/7838091.html VMWa ...

  6. JZOJ823PJ-C, TG-B

    分身打两场比赛 PJ - C 翻车 T1 原题, 考虑蚂蚁相撞时其实不用管. 然后写个取左右max, 左右min的即可 翻车: 注释freopen后JZOJ不会提示!(大翻车--丢了300分) T2 ...

  7. linux_ssh用户枚举猜测

    新建一个用户名txt文档,写入常用的用户名 msfconsole use auxiliary/scanner/ssh/ssh_enumusers3

  8. offset系列、client系列、scroll系列

      offset系列.client系列 <style> .testDOM { width: 200px; height: 200px; background-color: #2de; pa ...

  9. 吴裕雄--天生自然 JAVASCRIPT开发学习:prototype(原型对象)

    <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title> ...

  10. SQL基础教程(第2版)第7章 集合运算:7-1 表的加减法

    第7章 集合运算:7-1 表的加减法 ● 集合运算就是对满足同一规则的记录进行的加减等四则运算.● 使用UNION(并集). INTERSECT(交集). EXCEPT(差集)等集合运算符来进行集合运 ...