您的位置:首页 > 其它

Install CUDA 6.5 on Ubuntu 14.04 LTS

2014-08-31 05:11 453 查看
1. 从 Ubuntu 12.04 到 LTS 14.04 LTS

首先从这次升级开始。因为都是LTS,按理应该很简单。在12.04到系统里也确实不停提示可以一键升级到14.04。

问题在apt-get怎么也过不去。。。

后来发现是因为CUDA。。。。

中间因为怀疑PPA问题,全部diable掉了,包括

deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64 /

$ sudo apt-get install cuda

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following extra packages will be installed:

cuda-6-5 cuda-drivers cuda-runtime-6-5 libcuda1-340 nvidia-340

nvidia-340-dev nvidia-340-uvm nvidia-libopencl1-340 nvidia-modprobe

nvidia-opencl-icd-340 nvidia-settings

The following packages will be REMOVED

libcuda1-331-updates nvidia-331-updates nvidia-libopencl1-331-updates

nvidia-opencl-icd-331-updates

The following NEW packages will be installed

cuda cuda-6-5 cuda-drivers cuda-runtime-6-5 libcuda1-340 nvidia-340

nvidia-340-dev nvidia-340-uvm nvidia-libopencl1-340 nvidia-modprobe

nvidia-opencl-icd-340

The following packages will be upgraded:

nvidia-settings

1 to upgrade, 11 to newly install, 4 to remove and 0 not to upgrade.

Need to get 90.4 MB of archives.

After this operation, 51.2 MB of additional disk space will be used.

Do you want to continue? [Y/n]

Get:1 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/ nvidia-libopencl1-340 340.29-0ubuntu1 [23.9 kB]

Get:2 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/ nvidia-340 340.29-0ubuntu1 [66.6 MB]

Get:3 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/ nvidia-340-uvm 340.29-0ubuntu1 [83.7 kB]

Get:4 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/ nvidia-340-dev 340.29-0ubuntu1 [9,840 B]

Get:5 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/ nvidia-modprobe 340.29-0ubuntu1 [16.9 kB]

Get:6 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/ nvidia-settings 340.29-0ubuntu1 [986 kB]

Get:7 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/ libcuda1-340 340.29-0ubuntu1 [11.3 MB]

Get:8 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/ nvidia-opencl-icd-340 340.29-0ubuntu1 [11.4 MB]

Get:9 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/ cuda-drivers 340.29-1 [1,872 B]

Get:10 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/ cuda-runtime-6-5 6.5-14 [1,882 B]

Get:11 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/ cuda-6-5 6.5-14 [2,222 B]

Get:12 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/ cuda 6.5-14 [2,066 B]

Fetched 90.4 MB in 1min 32s (973 kB/s)

(Reading database ... 601924 files and directories currently installed.)

Removing libcuda1-331-updates (331.38-0ubuntu7.1) ...

Removing nvidia-331-updates (331.38-0ubuntu7.1) ...

Removing all DKMS Modules

Done.

update-alternatives: removing manually selected alternative - switching x86_64-linux-gnu_gl_conf to auto mode

update-alternatives: using /usr/lib/nvidia-331-updates-prime/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode

update-alternatives: removing manually selected alternative - switching i386-linux-gnu_gl_conf to auto mode

update-alternatives: using /usr/lib/nvidia-331-updates-prime/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in auto mode

update-alternatives: using /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode

update-alternatives: using /usr/lib/i386-linux-gnu/mesa/ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in auto mode

INFO:Disable nvidia-331-updates

DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here

DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad

DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude

nvidia-persistenced stop/waiting

update-initramfs: deferring update (trigger activated)

Removing nvidia-opencl-icd-331-updates (331.38-0ubuntu7.1) ...

dpkg: nvidia-libopencl1-331-updates: dependency problems, but removing anyway as you requested:

libhwloc-plugins depends on libopencl1; however:

Package libopencl1 is not installed.

Package nvidia-libopencl1-331-updates which provides libopencl1 is to be removed.

Package nvidia-libopencl1-331 which provides libopencl1 is not installed.

Package nvidia-libopencl1-340 which provides libopencl1 is not installed.

Removing nvidia-libopencl1-331-updates (331.38-0ubuntu7.1) ...

Processing triggers for libc-bin (2.19-0ubuntu6.3) ...

Processing triggers for man-db (2.6.7.1-1) ...

Processing triggers for initramfs-tools (0.103ubuntu4.2) ...

update-initramfs: Generating /boot/initrd.img-3.13.0-35-generic

Selecting previously unselected package nvidia-libopencl1-340.

(Reading database ... 601684 files and directories currently installed.)

Preparing to unpack .../nvidia-libopencl1-340_340.29-0ubuntu1_amd64.deb ...

Unpacking nvidia-libopencl1-340 (340.29-0ubuntu1) ...

Selecting previously unselected package nvidia-340.

Preparing to unpack .../nvidia-340_340.29-0ubuntu1_amd64.deb ...

Unpacking nvidia-340 (340.29-0ubuntu1) ...

Selecting previously unselected package nvidia-340-uvm.

Preparing to unpack .../nvidia-340-uvm_340.29-0ubuntu1_amd64.deb ...

Unpacking nvidia-340-uvm (340.29-0ubuntu1) ...

Selecting previously unselected package nvidia-340-dev.

Preparing to unpack .../nvidia-340-dev_340.29-0ubuntu1_amd64.deb ...

Unpacking nvidia-340-dev (340.29-0ubuntu1) ...

Selecting previously unselected package nvidia-modprobe.

Preparing to unpack .../nvidia-modprobe_340.29-0ubuntu1_amd64.deb ...

Unpacking nvidia-modprobe (340.29-0ubuntu1) ...

Preparing to unpack .../nvidia-settings_340.29-0ubuntu1_amd64.deb ...

Unpacking nvidia-settings (340.29-0ubuntu1) over (331.20-0ubuntu8) ...

Selecting previously unselected package libcuda1-340.

Preparing to unpack .../libcuda1-340_340.29-0ubuntu1_amd64.deb ...

Unpacking libcuda1-340 (340.29-0ubuntu1) ...

Selecting previously unselected package nvidia-opencl-icd-340.

Preparing to unpack .../nvidia-opencl-icd-340_340.29-0ubuntu1_amd64.deb ...

Unpacking nvidia-opencl-icd-340 (340.29-0ubuntu1) ...

Selecting previously unselected package cuda-drivers.

Preparing to unpack .../cuda-drivers_340.29-1_amd64.deb ...

Unpacking cuda-drivers (340.29-1) ...

Selecting previously unselected package cuda-runtime-6-5.

Preparing to unpack .../cuda-runtime-6-5_6.5-14_amd64.deb ...

Unpacking cuda-runtime-6-5 (6.5-14) ...

Selecting previously unselected package cuda-6-5.

Preparing to unpack .../cuda-6-5_6.5-14_amd64.deb ...

Unpacking cuda-6-5 (6.5-14) ...

Selecting previously unselected package cuda.

Preparing to unpack .../archives/cuda_6.5-14_amd64.deb ...

Unpacking cuda (6.5-14) ...

Processing triggers for ureadahead (0.100.0-16) ...

ureadahead will be reprofiled on next reboot

Processing triggers for man-db (2.6.7.1-1) ...

Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...

Rebuilding /usr/share/applications/bamf-2.index...

Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...

Processing triggers for mime-support (3.54ubuntu1) ...

Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...

Setting up nvidia-libopencl1-340 (340.29-0ubuntu1) ...

Setting up nvidia-340 (340.29-0ubuntu1) ...

update-alternatives: using /usr/lib/nvidia-340/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode

update-alternatives: using /usr/lib/nvidia-340/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in auto mode

update-alternatives: using /usr/share/nvidia-340/glamor.conf to provide /usr/share/X11/xorg.conf.d/glamoregl.conf (glamor_conf) in auto mode

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 /etc/modprobe.d/nvidia-graphics-drivers.conf.

A new initrd image has also been created. To revert, please replace /boot/initrd-3.13.0-35-generic with /boot/initrd-$(uname -r)-backup.

*****************************************************************************

*** Reboot your computer and verify that the NVIDIA graphics driver can ***

*** be loaded. ***

*****************************************************************************

INFO:Enable nvidia-340

DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here

DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad

DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude

Adding system user `nvidia-persistenced' (UID 129) ...

Adding new group `nvidia-persistenced' (GID 165) ...

Adding new user `nvidia-persistenced' (UID 129) with group `nvidia-persistenced' ...

Not creating home directory `/'.

Loading new nvidia-340-340.29 DKMS files...

First Installation: checking all kernels...

Building only for 3.13.0-35-generic

Building for architecture x86_64

Building initial module for 3.13.0-35-generic

Done.

nvidia_340:

Running module version sanity check.

- Original module

- No original module exists within this kernel

- Installation

- Installing to /lib/modules/3.13.0-35-generic/updates/dkms/

depmod....

DKMS: install completed.

Setting up nvidia-340-uvm (340.29-0ubuntu1) ...

Loading new nvidia-340-uvm-340.29 DKMS files...

First Installation: checking all kernels...

Building only for 3.13.0-35-generic

Building for architecture x86_64

Building initial module for 3.13.0-35-generic

Done.

nvidia-340-uvm:

Running module version sanity check.

- Original module

- No original module exists within this kernel

- Installation

- Installing to /lib/modules/3.13.0-35-generic/updates/dkms/

depmod....

DKMS: install completed.

Setting up nvidia-340-dev (340.29-0ubuntu1) ...

Setting up nvidia-modprobe (340.29-0ubuntu1) ...

Setting up nvidia-settings (340.29-0ubuntu1) ...

Setting up libcuda1-340 (340.29-0ubuntu1) ...

Setting up nvidia-opencl-icd-340 (340.29-0ubuntu1) ...

Setting up cuda-drivers (340.29-1) ...

Setting up cuda-runtime-6-5 (6.5-14) ...

Setting up cuda-6-5 (6.5-14) ...

*** 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-6.5/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.

*****************************************************************************************

*** Please reboot your computer and verify that the nvidia graphics driver is loaded. ***

*** If the driver fails to load, please use the NVIDIA graphics driver .run installer ***

*** to get into a stable state. ***

*****************************************************************************************

Setting up cuda (6.5-14) ...

*** 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-6.5/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.

Processing triggers for libc-bin (2.19-0ubuntu6.3) ...

Processing triggers for initramfs-tools (0.103ubuntu4.2) ...

update-initramfs: Generating /boot/initrd.img-3.13.0-35-generic
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: