CUDA installation

hello everyone,

i got this error while I am trying to install CUDA in Tegra TK1,

ubuntu@tegra-ubuntu:~/Downloads$ sudo dpkg -i cuda-repo-l4t-r21.1-6-5-prod_6.5-14_armhf.deb
(Reading database … 195598 files and directories currently installed.)
Preparing to unpack cuda-repo-l4t-r21.1-6-5-prod_6.5-14_armhf.deb …
Unpacking cuda-repo-l4t-r21.1-6-5-prod (6.5-14) …
dpkg: error processing archive cuda-repo-l4t-r21.1-6-5-prod_6.5-14_armhf.deb (–install):
trying to overwrite ‘/etc/apt/sources.list.d/cuda-6-5-prod.list’, which is also in package cuda-repo-l4t-r21.2-6-5-prod 6.5-34
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
cuda-repo-l4t-r21.1-6-5-prod_6.5-14_armhf.deb

And sometimes I got error relate to the size of memory in the device, enoghthowever, i think ienough memory to install CUDA, below the output of df command:

ubuntu@tegra-ubuntu:~/Downloads$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 12254384 7668476 3940380 67% /
devtmpfs 869812 4 869808 1% /dev
none 4 0 4 0% /sys/fs/cgroup
none 178816 660 178156 1% /run
none 5120 0 5120 0% /run/lock
none 894068 176 893892 1% /run/shm
none 102400 16 102384 1% /run/user
overflow 1024 1024 0 100% /tmp

thanks

It seems you have cuda-6.5 R34 already installed on L4T R21.2, but you are trying to install the R14 for L4T R21.1.
What is your L4T version ?

Hi Honey,

My L4T Version is R19 REVISION: 2.0.

i don’t have CUDA in my board I am trying to install it.

thanks

Could you run the following commands and send their outputs ?

cat /etc/nv_tegra_release
uname -a
ls /usr/local/cuda*
cat /etc/apt/sources.list
ls /etc/apt/sources.list.d
sudo apt search cuda |grep installed

hi Honey,

1.cat /etc/nv_tegra_release

ubuntu@tegra-ubuntu:~$ cat /etc/nv_tegra_release

R19 (release), REVISION: 2.0, GCID: 3896695, BOARD: ardbeg, EABI: hard, DATE: Fri Apr 18 23:10:46 UTC 2014

9c747ee57f9d184ca839cdc79e106aca6aecd317 */usr/lib/arm-linux-gnueabihf/tegra/libnvdc.so
0a1459842d10d18cfd30882b4f8a1c0b186dcf28 */usr/lib/arm-linux-gnueabihf/tegra/libnvrm_graphics.so
67e78d7280332a9c0ecbe90004c8a290165375de */usr/lib/arm-linux-gnueabihf/tegra/libnvmm_contentpipe.so
f38567e01c78765dab01c9f8269695f66fe97b93 */usr/lib/arm-linux-gnueabihf/tegra/libnvwinsys.so
db57c0b8ee92577e362eef0751e1dd823d21fb0a */usr/lib/arm-linux-gnueabihf/tegra/libnvapputil.so
a26addee9026b3f780d0017a5b16a33703bebd11 */usr/lib/arm-linux-gnueabihf/tegra/libnvmm.so
0f3672c0ae86d6963c6e7a55ba8de93623a31e4f */usr/lib/arm-linux-gnueabihf/tegra/libnvodm_imager.so
8de609ab418e67faee5c646612fe90a0c5856bf1 */usr/lib/arm-linux-gnueabihf/tegra/libnvomxilclient.so
cb297582c47436448637bfba1ffce8cb3b76be89 */usr/lib/arm-linux-gnueabihf/tegra/libnvmmlite_utils.so
8174f7048d4ddac0cd9ce9f2334619ce35ef439b */usr/lib/arm-linux-gnueabihf/tegra/libnvparser.so
742f8021b7466ed4ed54d2c8876df675b50f17e5 */usr/lib/arm-linux-gnueabihf/tegra/libnvmm_parser.so
982ec929c2e3f2bab55121369be409717f3fcaa8 */usr/lib/arm-linux-gnueabihf/tegra/libnvrm.so
a6fa55568e9940b1a69f6037e3de2ed3e7f50e48 */usr/lib/arm-linux-gnueabihf/tegra/libnvtvmr.so
7c4559194cdaa9fa12c7f703aba932d9ae9f0538 */usr/lib/arm-linux-gnueabihf/tegra/libnvmmlite_video.so
ded37b671c77a51b111b0fa1c1744c5cacd8bdfb */usr/lib/arm-linux-gnueabihf/tegra/libnvtestresults.so
afd3f2593413d6cb4293571d9845b07be95779b0 */usr/lib/arm-linux-gnueabihf/tegra/libnvmmlite_audio.so
fd4a06af8edc12daf48ba7682d5838a516e39294 */usr/lib/arm-linux-gnueabihf/tegra/libnvodm_query.so
bc39ed8d6d5f95d236f1b0fdea425b35f1d34b35 */usr/lib/arm-linux-gnueabihf/tegra/libtegrav4l2.so
9cd0bb15ceb2f42bc4b7419a8198324a4c3f9537 */usr/lib/arm-linux-gnueabihf/tegra/libnvmmlite.so
2940bbc9fee37c639e3993019453f6e8546be8b4 */usr/lib/arm-linux-gnueabihf/tegra/libnvavp.so
3cf9a41eb5350c5b727dc241d9c6f02ed9ed5959 */usr/lib/arm-linux-gnueabihf/tegra/libnvmm_utils.so
22f66c6a7991ede09bcfdd6626865ef566838965 */usr/lib/arm-linux-gnueabihf/tegra/libnvmm_camera.so
038cdb7f9ea7f5f003d7097a1e51717189e38e17 */usr/lib/arm-linux-gnueabihf/tegra/libnvos.so
fd98136e46ebe341ec191da3ec94198c06e8b26b */usr/lib/arm-linux-gnueabihf/tegra/libjpeg.so
3dae348a508349da097fbadde6d4aa187ee12b53 */usr/lib/arm-linux-gnueabihf/tegra/libnvmm_writer.so
c8f110a59fd774989d649aa044f44b6ea094c355 */usr/lib/arm-linux-gnueabihf/tegra/libnvddk_2d_v2.so
9f48759c08ecf52eaa264fd0a3c4747db1430999 */usr/lib/arm-linux-gnueabihf/tegra/libnvddk_vic.so
e52cf45a12913eb38aa529d0ffe99fd7bc3ccf16 */usr/lib/arm-linux-gnueabihf/tegra/libnvtestio.so
57d537e94e76fa5814ddfd614bb5faf902c267cc */usr/lib/arm-linux-gnueabihf/tegra/libnvsm.so
c4ea22818cd3c4619cfcb5cf3d28f496a0111c5f */usr/lib/arm-linux-gnueabihf/tegra/libnvtnr.so
a9f8a2e3917a4e2da4c6d2e2276bb45bf9ab0f91 */usr/lib/arm-linux-gnueabihf/tegra/libnvmmlite_image.so
bf5d8b3007b7b8620b84a278bbdbc5760bcd728a */usr/lib/arm-linux-gnueabihf/tegra/libnvomx.so
588a195cc1351704fbdadef0076970f6d9640b95 */usr/lib/arm-linux-gnueabihf/tegra/libnvfusebypass.so
f0a0d3a00a863b4ab4fdf77138ecf0ead91c60ab */usr/lib/xorg/modules/extensions/libglx.so
aeeb51fea3efc025ce00f9447cc82a5150c01f99 */usr/lib/xorg/modules/drivers/nvidia_drv.so

  1. uname -a

Linux tegra-ubuntu 3.10.24-g6a2d13a #1 SMP PREEMPT Fri Apr 18 15:56:45 PDT 2014 armv7l armv7l armv7l GNU/Linux

3.ls /usr/local/cuda*
ls: cannot access /usr/local/cuda*: No such file or directory

4.cat /etc/apt/sources.list

See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to

newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted multiverse universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted multiverse universe

Major bug fix updates produced after the final release of the

distribution.

deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted multiverse universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted multiverse universe

Uncomment the following two lines to add software from the ‘universe’

repository.

N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu

team. Also, please note that software in universe WILL NOT receive any

review or updates from the Ubuntu security team.

deb http://ports.ubuntu.com/ubuntu-ports/ trusty universe

deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty universe

deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates universe

deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-updates universe

N.B. software from this repository may not have been tested as

extensively as that contained in the main release, although it includes

newer versions of some applications which may provide useful features.

Also, please note that software in backports WILL NOT receive any review

or updates from the Ubuntu security team.

deb http://ports.ubuntu.com/ubuntu-ports/ trusty-backports main restricted

deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-backports main restricted

deb http://ports.ubuntu.com/ubuntu-ports/ trusty-security main restricted multiverse universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-security main restricted multiverse universe

deb http://ports.ubuntu.com/ubuntu-ports/ trusty-security universe

deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-security universe

deb http://ports.ubuntu.com/ubuntu-ports/ trusty-security multiverse

deb http://ports.ubuntu.com/ubuntu-ports/ trusty main universe restricted multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main multiverse restricted universe
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-proposed main multiverse restricted universe
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-backports main multiverse restricted universe

deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-security multiverse

5.ls /etc/apt/sources.list.d

cuda-6-5-prod.list cuda.list

6.sudo apt search cuda |grep installed

WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.

Thanks

One recommendation I have is that because R19.2 is so very old, and there were many fixes to this, you might just want to flash R21.5 before working on CUDA (or anything else).

Hi linuxdev

I installed new version of L4T and all installation steps done smoothly

thanks very much for your help