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:

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


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.


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, /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/
0a1459842d10d18cfd30882b4f8a1c0b186dcf28 */usr/lib/arm-linux-gnueabihf/tegra/
67e78d7280332a9c0ecbe90004c8a290165375de */usr/lib/arm-linux-gnueabihf/tegra/
f38567e01c78765dab01c9f8269695f66fe97b93 */usr/lib/arm-linux-gnueabihf/tegra/
db57c0b8ee92577e362eef0751e1dd823d21fb0a */usr/lib/arm-linux-gnueabihf/tegra/
a26addee9026b3f780d0017a5b16a33703bebd11 */usr/lib/arm-linux-gnueabihf/tegra/
0f3672c0ae86d6963c6e7a55ba8de93623a31e4f */usr/lib/arm-linux-gnueabihf/tegra/
8de609ab418e67faee5c646612fe90a0c5856bf1 */usr/lib/arm-linux-gnueabihf/tegra/
cb297582c47436448637bfba1ffce8cb3b76be89 */usr/lib/arm-linux-gnueabihf/tegra/
8174f7048d4ddac0cd9ce9f2334619ce35ef439b */usr/lib/arm-linux-gnueabihf/tegra/
742f8021b7466ed4ed54d2c8876df675b50f17e5 */usr/lib/arm-linux-gnueabihf/tegra/
982ec929c2e3f2bab55121369be409717f3fcaa8 */usr/lib/arm-linux-gnueabihf/tegra/
a6fa55568e9940b1a69f6037e3de2ed3e7f50e48 */usr/lib/arm-linux-gnueabihf/tegra/
7c4559194cdaa9fa12c7f703aba932d9ae9f0538 */usr/lib/arm-linux-gnueabihf/tegra/
ded37b671c77a51b111b0fa1c1744c5cacd8bdfb */usr/lib/arm-linux-gnueabihf/tegra/
afd3f2593413d6cb4293571d9845b07be95779b0 */usr/lib/arm-linux-gnueabihf/tegra/
fd4a06af8edc12daf48ba7682d5838a516e39294 */usr/lib/arm-linux-gnueabihf/tegra/
bc39ed8d6d5f95d236f1b0fdea425b35f1d34b35 */usr/lib/arm-linux-gnueabihf/tegra/
9cd0bb15ceb2f42bc4b7419a8198324a4c3f9537 */usr/lib/arm-linux-gnueabihf/tegra/
2940bbc9fee37c639e3993019453f6e8546be8b4 */usr/lib/arm-linux-gnueabihf/tegra/
3cf9a41eb5350c5b727dc241d9c6f02ed9ed5959 */usr/lib/arm-linux-gnueabihf/tegra/
22f66c6a7991ede09bcfdd6626865ef566838965 */usr/lib/arm-linux-gnueabihf/tegra/
038cdb7f9ea7f5f003d7097a1e51717189e38e17 */usr/lib/arm-linux-gnueabihf/tegra/
fd98136e46ebe341ec191da3ec94198c06e8b26b */usr/lib/arm-linux-gnueabihf/tegra/
3dae348a508349da097fbadde6d4aa187ee12b53 */usr/lib/arm-linux-gnueabihf/tegra/
c8f110a59fd774989d649aa044f44b6ea094c355 */usr/lib/arm-linux-gnueabihf/tegra/
9f48759c08ecf52eaa264fd0a3c4747db1430999 */usr/lib/arm-linux-gnueabihf/tegra/
e52cf45a12913eb38aa529d0ffe99fd7bc3ccf16 */usr/lib/arm-linux-gnueabihf/tegra/
57d537e94e76fa5814ddfd614bb5faf902c267cc */usr/lib/arm-linux-gnueabihf/tegra/
c4ea22818cd3c4619cfcb5cf3d28f496a0111c5f */usr/lib/arm-linux-gnueabihf/tegra/
a9f8a2e3917a4e2da4c6d2e2276bb45bf9ab0f91 */usr/lib/arm-linux-gnueabihf/tegra/
bf5d8b3007b7b8620b84a278bbdbc5760bcd728a */usr/lib/arm-linux-gnueabihf/tegra/
588a195cc1351704fbdadef0076970f6d9640b95 */usr/lib/arm-linux-gnueabihf/tegra/
f0a0d3a00a863b4ab4fdf77138ecf0ead91c60ab */usr/lib/xorg/modules/extensions/
aeeb51fea3efc025ce00f9447cc82a5150c01f99 */usr/lib/xorg/modules/drivers/

  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 /usr/local/cuda*
ls: cannot access /usr/local/cuda*: No such file or directory /etc/apt/sources.list

See for how to upgrade to

newer versions of the distribution.

deb trusty main restricted multiverse universe
deb-src trusty main restricted multiverse universe

Major bug fix updates produced after the final release of the


deb trusty-updates main restricted multiverse universe
deb-src trusty-updates main restricted multiverse universe

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


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 trusty universe

deb-src trusty universe

deb trusty-updates universe

deb-src 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 trusty-backports main restricted

deb-src trusty-backports main restricted

deb trusty-security main restricted multiverse universe
deb-src trusty-security main restricted multiverse universe

deb trusty-security universe

deb-src trusty-security universe

deb trusty-security multiverse

deb trusty main universe restricted multiverse
deb trusty-updates main multiverse restricted universe
deb trusty-proposed main multiverse restricted universe
deb trusty-backports main multiverse restricted universe

deb-src trusty-security multiverse /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.


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