# Error while installing cuda on Host and Deepstream on target

**URL:** <https://forums.developer.nvidia.com/t/error-while-installing-cuda-on-host-and-deepstream-on-target/159973>\
**Category:** Jetson Xavier NX\
**Tags:** cuda\
**Created:** [November 19, 2020, 2:22pm UTC](https://forums.developer.nvidia.com/t/error-while-installing-cuda-on-host-and-deepstream-on-target/159973 "2020-11-19T14:22:35Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bazziil](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Bazziil](https://forums.developer.nvidia.com/u/Bazziil)\
**Post date:** [November 19, 2020, 2:22pm UTC](https://forums.developer.nvidia.com/t/error-while-installing-cuda-on-host-and-deepstream-on-target/159973/1 "2020-11-19T14:22:35Z")

</div>

Hello,  
I’m trying to install some components on my host pc and my Jetson Xavier NX with SDKManager in order to code on Nsight Eclipse Edition and cross-compile to my Jetson.  
I’m facing some installation issue with SDKM. Result of the SDKM installation :

- Jetson OS image flashed correctly.

Host Components :

- CUDA and Computer Vision Error while installing.
- Developer Tools successfully installed.

Target Components :

- CUDA, CUDA-X AI, Computer Vision, NVIDIA Container Runtime installed successfully.
- Multimedia APi and DeepStream SDK errors while installing.

Host issue :  
I have Ubuntu 18.04.5 LTS, my graphics card is a GeForce GTX 780 Ti.  
Result of arch command = x86\_64.  
Result of dpkg --print-architecture : amd64.

> **Terminal result for CUDA on Host (i didn't find a better way to show this)**
>
> 14:44:09 INFO: CUDA on Host: Reading package lists…
> 
> 14:44:09 INFO: CUDA on Host: Building dependency tree…
> 
> 14:44:09 INFO: CUDA on Host: Reading state information…
> 
> 14:44:09 INFO: CUDA on Host: cuda-repo-ubuntu1804-10-2-local-10.2.89-440.40 is already the newest version (1.0-1).
> 
> 14:44:09 INFO: CUDA on Host: 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
> 
> 14:44:09 INFO: CUDA on Host: no repoPackageInfo found in additionalParameters.
> 
> 14:44:09 INFO: CUDA on Host: infer package info from file name cuda-repo-ubuntu1804-10-2-local-10.2.89-440.40\_1.0-1\_amd64.deb [name: cuda-repo-ubuntu1804-10-2-local-10.2.89-440.40, version: 1.0-1]
> 
> 14:44:09 INFO: CUDA on Host: exec\_command: dpkg -L cuda-repo-ubuntu1804-10-2-local-10.2.89-440.40 | grep ‘.pub$’ | tr -d ‘\n’
> 
> 14:44:09 INFO: CUDA on Host: exec\_command: sudo apt-key add /var/cuda-repo-10-2-local-10.2.89-440.40/7fa2af80.pub
> 
> 14:44:09 : CUDA on Host: Warning: apt-key output should not be parsed (stdout is not a terminal)
> 
> 14:44:09 INFO: CUDA on Host: OK
> 
> 14:44:09 INFO: CUDA on Host: exec\_command: sudo apt-get check
> 
> 14:44:09 INFO: CUDA on Host: Reading package lists…
> 
> 14:44:10 INFO: CUDA on Host: Building dependency tree…
> 
> 14:44:10 INFO: CUDA on Host: Reading state information…
> 
> 14:44:10 INFO: CUDA on Host: exec\_command: sudo apt-get update; sleep 0.5; sudo apt-get -y --allow-downgrades install cuda-toolkit-10-2=10.2.89\*
> 
> 14:44:10 INFO: CUDA on Host: Hit:1 [fr.archive.ubuntu.com / ubuntu.lafibre.info](http://fr.archive.ubuntu.com/ubuntu) bionic InRelease
> 
> 14:44:10 INFO: CUDA on Host: Hit:2 [Index of /graphics-drivers/ppa/ubuntu](http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu) bionic InRelease
> 
> 14:44:10 INFO: CUDA on Host: Hit:3 [fr.archive.ubuntu.com / ubuntu.lafibre.info](http://fr.archive.ubuntu.com/ubuntu) bionic-updates InRelease
> 
> 14:44:10 INFO: CUDA on Host: Hit:4 [fr.archive.ubuntu.com / ubuntu.lafibre.info](http://fr.archive.ubuntu.com/ubuntu) bionic-backports InRelease
> 
> 14:44:10 INFO: CUDA on Host: Get:5 [Index of /ubuntu](http://security.ubuntu.com/ubuntu) bionic-security InRelease [88.7 kB]
> 
> 14:44:10 INFO: CUDA on Host: Fetched 88.7 kB in 1s (162 kB/s)
> 
> 14:44:12 INFO: CUDA on Host: Reading package lists…
> 
> 14:44:12 INFO: CUDA on Host: Reading package lists…
> 
> 14:44:13 INFO: CUDA on Host: Building dependency tree…
> 
> 14:44:13 INFO: CUDA on Host: Reading state information…
> 
> 14:44:13 INFO: CUDA on Host: Some packages could not be installed. This may mean that you have
> 
> 14:44:13 INFO: CUDA on Host: requested an impossible situation or if you are using the unstable
> 
> 14:44:13 INFO: CUDA on Host: distribution that some required packages have not yet been created
> 
> 14:44:13 INFO: CUDA on Host: or been moved out of Incoming.
> 
> 14:44:13 INFO: CUDA on Host: The following information may help to resolve the situation:
> 
> 14:44:13 INFO: CUDA on Host: The following packages have unmet dependencies:
> 
> 14:44:13 INFO: CUDA on Host: cuda-toolkit-10-2 : Depends: cuda-compiler-10-2 (\>= 10.2.89) but it is not installable
> 
> 14:44:13 INFO: CUDA on Host: Depends: cuda-tools-10-2 (\>= 10.2.89) but it is not installable
> 
> 14:44:13 INFO: CUDA on Host: Depends: cuda-samples-10-2 (\>= 10.2.89) but it is not installable
> 
> 14:44:13 INFO: CUDA on Host: Depends: cuda-documentation-10-2 (\>= 10.2.89) but it is not installable
> 
> 14:44:13 INFO: CUDA on Host: Depends: cuda-libraries-dev-10-2 (\>= 10.2.89) but it is not installable
> 
> 14:44:13 INFO: CUDA on Host: Depends: cuda-libraries-10-2 (\>= 10.2.89) but it is not installable
> 
> 14:44:13 INFO: CUDA on Host: Depends: cuda-nvml-dev-10-2 (\>= 10.2.89) but it is not installable
> 
> 14:44:13 INFO: CUDA on Host: Depends: cuda-license-10-2 (\>= 10.2.89) but it is not installable
> 
> 14:44:13 ERROR: CUDA on Host: E: Unable to correct problems, you have held broken packages.
> 
> 14:44:13 INFO: CUDA on Host: [Package Install Finished with Error]
> 
> 14:44:13 INFO: CUDA on Host: [host] [3.10 MB released. Disk Avail: 793.34 GB]
> 
> 14:44:13 INFO: CUDA on Host: [NV\_CUDA\_HOST\_COMP Install took 4s]
> 
> 14:44:13 ERROR: CUDA on Host: [error]: Error when apt install failed; [exec\_command]: sudo apt-get update; sleep 0.5; sudo apt-get -y --allow-downgrades install cuda-toolkit-10-2=10.2.89\* ; [error]: exit status 100; [deb\_path]: /home/louis/Downloads/nvidia/sdkm\_downloads/cuda-repo-ubuntu1804-10-2-local-10.2.89-440.40\_1.0-1\_amd64.deb
> 
> 14:44:13 ERROR: CUDA on Host: command terminated with error
> 
> 14:44:13 SUMMARY: CUDA on Host: APT system is broken and requires manual fix

> **Terminal result for CUDA Cross Compile Package on Host**
>
> 14:44:05 INFO: CUDA Cross Compile Package on Host: verifying checksum of /home/louis/Downloads/nvidia/sdkm\_downloads/cuda-repo-cross-aarch64-10-2-local-10.2.89\_1.0-1\_all.deb
> 
> 14:44:06 INFO: CUDA Cross Compile Package on Host: Found file /home/louis/Downloads/nvidia/sdkm\_downloads/cuda-repo-cross-aarch64-10-2-local-10.2.89\_1.0-1\_all.deb with correct checksum, skip downloading.
> 
> 14:44:13 SUMMARY: CUDA Cross Compile Package on Host: Depends on failed component

Computer Vision logs doesn’t give more information than this one but i can put it if you want.

> 14:44:13 ERROR: CUDA on Host: E: Unable to correct problems, you have held broken packages.

I tried **sudo apt --fix-broken install** and **sudo apt-get update** because of this but got no luck.

> **interesting log info**
>
> > Some packages could not be installed. This may mean that you have
> > 
> > 14:44:13 INFO: CUDA on Host: requested an impossible situation or if you are using the unstable
> > 
> > 14:44:13 INFO: CUDA on Host: distribution that some required packages have not yet been created
> > 
> > 14:44:13 INFO: CUDA on Host: or been moved out of Incoming.
> > 
> > 14:44:13 INFO: CUDA on Host: The following information may help to resolve the situation:
> > 
> > 14:44:13 INFO: CUDA on Host: The following packages have unmet dependencies:
> > 
> > 14:44:13 INFO: CUDA on Host: cuda-toolkit-10-2 : Depends: cuda-compiler-10-2 (\>= 10.2.89) but it is not installable

Target issue :

> **DeepStream terminal result**
>
> 14:44:06 INFO: DeepStream: verifying checksum of /home/louis/Downloads/nvidia/sdkm\_downloads/deepstream-5.0\_5.0.1-1\_arm64.deb
> 
> 14:44:07 INFO: DeepStream: Found file /home/louis/Downloads/nvidia/sdkm\_downloads/deepstream-5.0\_5.0.1-1\_arm64.deb with correct checksum, skip downloading.
> 
> 14:44:57 DEBUG: DeepStream: using adapter to install NV\_DEEPSTREAM\_TARGET\_POST\_INSTALL\_COMP@JETSON\_XAVIER\_NX\_DEVKIT to /home/louis/nvidia/nvidia\_sdk/JetPack\_4.4.1\_Linux\_JETSON\_XAVIER\_NX\_DEVKIT
> 
> 14:44:57 INFO: DeepStream: exec\_command: ssh -t -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no [loulou@192.168.55.1](mailto:loulou@192.168.55.1) “df -B1 / | tail -1 | awk ‘{ printf $4 }’”
> 
> 14:44:57 INFO: DeepStream: [target] [loulou@192.168.55.1](mailto:loulou@192.168.55.1)’s password:
> 
> 14:44:58 INFO: DeepStream: Using GenericInstaller to Install NV\_DEEPSTREAM\_TARGET\_POST\_INSTALL\_COMP
> 
> 14:44:58 INFO: DeepStream: NV\_DEEPSTREAM\_TARGET\_POST\_INSTALL\_COMP include 1 package
> 
> 14:44:58 INFO: DeepStream: [Package PreInstall Started]
> 
> 14:44:58 INFO: DeepStream: current working directory is /home/louis/nvidia/nvidia\_sdk/JetPack\_4.4.1\_Linux\_JETSON\_XAVIER\_NX\_DEVKIT
> 
> 14:44:58 INFO: DeepStream: exec\_command [target]:
> 
> 14:44:58 INFO: DeepStream: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> 14:44:58 INFO: DeepStream: #!/bin/bash
> 
> 14:44:58 INFO: DeepStream: set -e
> 
> 14:44:58 INFO: DeepStream: function safe\_apt\_install {
> 
> 14:44:58 INFO: DeepStream: echo “\*begin $1, $2”
> 
> 14:44:58 INFO: DeepStream: tmp\_log=/tmp/jetpack\_dpkg\_log.txt
> 
> 14:44:58 INFO: DeepStream: sudo rm -f $tmp\_log
> 
> 14:44:58 INFO: DeepStream: set +e; $1 2\>&1 | tee $tmp\_log; CMD\_STATUS=${PIPESTATUS[0]}; set -e
> 
> 14:44:58 INFO: DeepStream: while [${CMD\_STATUS} -ne 0]; do
> 
> 14:44:58 INFO: DeepStream: if grep -q -e “is locked by another process” -e “E: Could not get lock /var/” $tmp\_log; then
> 
> 14:44:58 INFO: DeepStream: sudo rm -f $tmp\_log
> 
> 14:44:58 INFO: DeepStream: set +e; $1 2\>&1 | tee $tmp\_log; CMD\_STATUS=${PIPESTATUS[0]}; set -e
> 
> 14:44:58 INFO: DeepStream: echo “Waiting $2 seconds for apt to be available”; sleep ${2}
> 
> 14:44:58 INFO: DeepStream: else
> 
> 14:44:58 INFO: DeepStream: echo “Unhandled error when running $1”; exit 1
> 
> 14:44:58 INFO: DeepStream: fi
> 
> 14:44:58 INFO: DeepStream: done
> 
> 14:44:58 INFO: DeepStream: }
> 
> 14:44:58 INFO: DeepStream: export LC\_ALL=en\_US.UTF-8 LANG=en\_US.UTF-8 LANGUAGE=en\_US.UTF-8
> 
> 14:44:58 INFO: DeepStream: safe\_apt\_install “sudo apt-get update” 5
> 
> 14:44:58 INFO: DeepStream: safe\_apt\_install "sudo apt-get install -y libssl1.0.0 libgstreamer1.0-0 libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-tools gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav libgstrtspserver-1.0-0 libjansson4 librdkafka1=0.11.3-1build1 " 5
> 
> 14:44:58 INFO: DeepStream: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> 14:44:58 INFO: DeepStream: exec\_command: scp -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /tmp/tmp\_NV\_DEEPSTREAM\_TARGET\_POST\_INSTALL\_COMP.sh [loulou@192.168.55.1](mailto:loulou@192.168.55.1):~; ssh -t -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no [loulou@192.168.55.1](mailto:loulou@192.168.55.1) “~/tmp\_NV\_DEEPSTREAM\_TARGET\_POST\_INSTALL\_COMP.sh && rm -f ~/tmp\_NV\_DEEPSTREAM\_TARGET\_POST\_INSTALL\_COMP.sh”
> 
> 14:44:58 INFO: DeepStream: [target] [loulou@192.168.55.1](mailto:loulou@192.168.55.1)’s password:
> 
> 14:44:58 INFO: DeepStream: [target] [loulou@192.168.55.1](mailto:loulou@192.168.55.1)’s password:
> 
> 14:44:59 INFO: DeepStream: \*begin sudo apt-get update, 5
> 
> 14:44:59 INFO: DeepStream: [target] [sudo] password for loulou:
> 
> 14:44:59 INFO: DeepStream: Hit:1 [Index of /ubuntu-ports](http://ports.ubuntu.com/ubuntu-ports) bionic InRelease
> 
> 14:44:59 INFO: DeepStream: Hit:2 [https://repo.download.nvidia.com/jetson/common](https://repo.download.nvidia.com/jetson/common) r32.4 InRelease
> 
> 14:44:59 INFO: DeepStream: Hit:3 [Index of /ubuntu-ports](http://ports.ubuntu.com/ubuntu-ports) bionic-updates InRelease
> 
> 14:44:59 INFO: DeepStream: Hit:4 [Index of /ubuntu-ports](http://ports.ubuntu.com/ubuntu-ports) bionic-backports InRelease
> 
> 14:44:59 INFO: DeepStream: Hit:5 [Index of /ubuntu-ports](http://ports.ubuntu.com/ubuntu-ports) bionic-security InRelease
> 
> 14:44:59 INFO: DeepStream: Hit:6 [https://repo.download.nvidia.com/jetson/t194](https://repo.download.nvidia.com/jetson/t194) r32.4 InRelease
> 
> 14:45:07 INFO: DeepStream: Reading package lists…

> **Multimedia terminal result**
>
> 14:44:06 INFO: Multimedia API: verifying checksum of /home/louis/Downloads/nvidia/sdkm\_downloads/nvidia-l4t-jetson-multimedia-api\_32.4.4-20201016123640\_arm64.deb
> 
> 14:44:06 INFO: Multimedia API: Found file /home/louis/Downloads/nvidia/sdkm\_downloads/nvidia-l4t-jetson-multimedia-api\_32.4.4-20201016123640\_arm64.deb with correct checksum, skip downloading.
> 
> 14:44:34 DEBUG: Multimedia API: using adapter to install NV\_L4T\_MULTIMEDIA\_API\_TARGET\_POST\_INSTALL\_T194\_COMP@JETSON\_XAVIER\_NX\_DEVKIT to /home/louis/nvidia/nvidia\_sdk/JetPack\_4.4.1\_Linux\_JETSON\_XAVIER\_NX\_DEVKIT
> 
> 14:44:34 INFO: Multimedia API: exec\_command: ssh -t -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no [loulou@192.168.55.1](mailto:loulou@192.168.55.1) “df -B1 / | tail -1 | awk ‘{ printf $4 }’”
> 
> 14:44:34 INFO: Multimedia API: [target] [loulou@192.168.55.1](mailto:loulou@192.168.55.1)’s password:
> 
> 14:44:35 INFO: Multimedia API: Using GenericInstaller to Install NV\_L4T\_MULTIMEDIA\_API\_TARGET\_POST\_INSTALL\_T194\_COMP
> 
> 14:44:35 INFO: Multimedia API: NV\_L4T\_MULTIMEDIA\_API\_TARGET\_POST\_INSTALL\_T194\_COMP include 1 package
> 
> 14:44:35 INFO: Multimedia API: [Package Install Started]
> 
> 14:44:35 INFO: Multimedia API: target deb installer start to install
> 
> 14:44:35 INFO: Multimedia API: exec\_command: dpkg -f /home/louis/Downloads/nvidia/sdkm\_downloads/nvidia-l4t-jetson-multimedia-api\_32.4.4-20201016123640\_arm64.deb Package | tr -d ‘\n’
> 
> 14:44:35 INFO: Multimedia API: exec\_command: dpkg -f /home/louis/Downloads/nvidia/sdkm\_downloads/nvidia-l4t-jetson-multimedia-api\_32.4.4-20201016123640\_arm64.deb Version | tr -d ‘\n’
> 
> 14:44:35 INFO: Multimedia API: deb file /home/louis/Downloads/nvidia/sdkm\_downloads/nvidia-l4t-jetson-multimedia-api\_32.4.4-20201016123640\_arm64.deb, package name [nvidia-l4t-jetson-multimedia-api], package version [32.4.4-20201016123640]
> 
> 14:44:35 INFO: Multimedia API: infer package info from file name nvidia-l4t-jetson-multimedia-api\_32.4.4-20201016123640\_arm64.deb [name: nvidia-l4t-jetson-multimedia-api, version: 32.4.4-20201016123640]
> 
> 14:44:35 INFO: Multimedia API: exec\_command [target]:
> 
> 14:44:35 INFO: Multimedia API: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> 14:44:35 INFO: Multimedia API: #!/bin/bash
> 
> 14:44:35 INFO: Multimedia API: set -e
> 
> 14:44:35 INFO: Multimedia API: export LC\_ALL=en\_US.UTF-8 LANG=en\_US.UTF-8 LANGUAGE=en\_US.UTF-8
> 
> 14:44:35 INFO: Multimedia API: sudo mkdir -p /opt/nvidia/deb\_repos
> 
> 14:44:35 INFO: Multimedia API: sudo chmod 777 /opt/nvidia/deb\_repos
> 
> 14:44:35 INFO: Multimedia API: sudo rm -f /opt/nvidia/deb\_repos/nvidia-l4t-jetson-multimedia-api\_32.4.4-20201016123640\_arm64.deb
> 
> 14:44:35 INFO: Multimedia API: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> 14:44:35 INFO: Multimedia API: [target] [loulou@192.168.55.1](mailto:loulou@192.168.55.1)’s password:
> 
> 14:44:35 INFO: Multimedia API: [target] [loulou@192.168.55.1](mailto:loulou@192.168.55.1)’s password:
> 
> 14:44:36 INFO: Multimedia API: [target] [sudo] password for loulou:
> 
> 14:44:36 : Multimedia API: Warning: Permanently added ‘192.168.55.1’ (ECDSA) to the list of known hosts.
> 
> 14:44:36 INFO: Multimedia API: [target] [loulou@192.168.55.1](mailto:loulou@192.168.55.1)’s password:
> 
> 14:44:39 INFO: Multimedia API: nvidia-l4t-jetson-multimedia-api\_32.4.4-20201 0% 0 0.0KB/s --:-- ETA nvidia-l4t-jetson-multimedia-api\_32.4.4-20201 56% 38MB 37.8MB/s 00:00 ETA nvidia-l4t-jetson-multimedia-api\_32.4.4-20201 100% 67MB 20.0MB/s 00:03
> 
> 14:44:39 INFO: Multimedia API: exec\_command [target]:
> 
> 14:44:39 INFO: Multimedia API: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> 14:44:39 INFO: Multimedia API: #!/bin/bash
> 
> 14:44:39 INFO: Multimedia API: set -e
> 
> 14:44:39 INFO: Multimedia API: export LC\_ALL=en\_US.UTF-8 LANG=en\_US.UTF-8 LANGUAGE=en\_US.UTF-8
> 
> 14:44:39 INFO: Multimedia API: function safe\_apt\_install {
> 
> 14:44:39 INFO: Multimedia API: echo “\*begin $1, $2”
> 
> 14:44:39 INFO: Multimedia API: tmp\_log=/tmp/jetpack\_dpkg\_log.txt
> 
> 14:44:39 INFO: Multimedia API: sudo rm -f $tmp\_log
> 
> 14:44:39 INFO: Multimedia API: set +e; $1 2\>&1 | tee $tmp\_log; CMD\_STATUS=${PIPESTATUS[0]}; set -e
> 
> 14:44:39 INFO: Multimedia API: while [${CMD\_STATUS} -ne 0]; do
> 
> 14:44:39 INFO: Multimedia API: if grep -q -e “is locked by another process” -e “E: Could not get lock /var/” $tmp\_log; then
> 
> 14:44:39 INFO: Multimedia API: sudo rm -f $tmp\_log
> 
> 14:44:39 INFO: Multimedia API: set +e; $1 2\>&1 | tee $tmp\_log; CMD\_STATUS=${PIPESTATUS[0]}; set -e
> 
> 14:44:39 INFO: Multimedia API: echo “Waiting $2 seconds for apt to be available”; sleep ${2}
> 
> 14:44:39 INFO: Multimedia API: else

Also tried **sudo apt --fix-broken install** and **sudo apt-get update** with no result.  
My issue seems similar to [this thread.](https://forums.developer.nvidia.com/t/sdk-manager-fails-to-install-jetpack-4-4-1-linux-on-host/158260)  
Any help or advice about this will be greatly welcome !

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [November 20, 2020, 3:11am UTC](https://forums.developer.nvidia.com/t/error-while-installing-cuda-on-host-and-deepstream-on-target/159973/3 "2020-11-20T03:11:10Z")

</div>

Hi,

Could you share the complete log from SDK manager with us first?

> STEP 04 **→** INSTALLATION FAILED **→** EXPORT LOGS.

Thanks.

---

<div class="post-metadata">

**Author:** ![Bazziil](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Bazziil](https://forums.developer.nvidia.com/u/Bazziil)\
**Post date:** [November 20, 2020, 8:42am UTC](https://forums.developer.nvidia.com/t/error-while-installing-cuda-on-host-and-deepstream-on-target/159973/4 "2020-11-20T08:42:37Z")

</div>

[SDKM\_logs\_JetPack\_4.4.1\_Linux\_for\_Jetson\_Xavier\_NX\_[developer\_kit\_version]\_2020-11-20\_09-38-53.zip](https://forums.developer.nvidia.com/uploads/short-url/r9yqpHbMBdWdHKvGjmRxmE6N44a.zip) (167.5 KB)

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [November 23, 2020, 6:01am UTC](https://forums.developer.nvidia.com/t/error-while-installing-cuda-on-host-and-deepstream-on-target/159973/5 "2020-11-23T06:01:11Z")

</div>

Hi,

The error code 67 is related to the link issue.  
Could you delete the download folder and try to install it again?

```auto
ENOLINK 67 Link has been severed

```

Thanks.

---

<div class="post-metadata">

**Author:** ![Bazziil](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Bazziil](https://forums.developer.nvidia.com/u/Bazziil)\
**Post date:** [November 23, 2020, 8:31am UTC](https://forums.developer.nvidia.com/t/error-while-installing-cuda-on-host-and-deepstream-on-target/159973/6 "2020-11-23T08:31:40Z")

</div>

Thanks for your answer,

The folder at **~/Downloads/nvidia/sdkm\_downloads**?  
If you’re talking about this one, i just noticed that i have nothing else in that folder except the nvidia folder. Maybe the SDKM create the folder **~/Downloads** if it’s not there (I don’t have an English Ubuntu version). And that’s why my installation fails.

> and try to install it again?

I’m sorry i can’t remember which step was necessary to get this Downloads folder, was that when i tried to install components with SDKM ?

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [November 25, 2020, 5:53am UTC](https://forums.developer.nvidia.com/t/error-while-installing-cuda-on-host-and-deepstream-on-target/159973/7 "2020-11-25T05:53:13Z")

</div>

Hi,

The default download folder is located at `${HOME}/Downloads/nvidia/sdkm_downloads`.  
Based on your log, all the required .deb is downloaded into the **/home/louis/Downloads/nvidia/sdkm\_downloads/**.

The file might be deleted if a clean option is selected through the SDKmanager.  
For now, since the folder is empty, could you run the installation again to see if all the deb can be successfully downloaded this time?

Thanks.

---

<div class="post-metadata">

**Author:** ![Bazziil](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Bazziil](https://forums.developer.nvidia.com/u/Bazziil)\
**Post date:** [November 25, 2020, 11:33am UTC](https://forums.developer.nvidia.com/t/error-while-installing-cuda-on-host-and-deepstream-on-target/159973/8 "2020-11-25T11:33:17Z")

</div>

Hi AastaLLL,  
Thank you again for your answer. My last reply wasn’t very clear so let me clarify this :

- The **~/Downloads** folder only have the **nvidia/sdkm\_downloads** folder.
- The folder **~/Downloads/nvidia/sdkm\_downloads** has .deb files, like you said.

First i tried to install it again but with no success.  
Then I deleted the **~/Donwloads/nvidia** folder and reinstall with SDKM and got a Warning : _"Installation of ‘Flash jetson Xavier NX [Devkit]’ is taking longer than expected_.  
After pressing **Try again** , it couldn’t detect the NX. And my installation fails as before (except for the target component that are skipped).

Log of failed installation : [SDKM\_logs\_JetPack\_4.4\_Linux\_for\_Jetson\_Xavier\_NX\_[developer\_kit\_version]\_2020-11-25\_11-36-07.zip](https://forums.developer.nvidia.com/uploads/short-url/vaPtTr6vFgf6Qb4rUAdnSZOn3h6.zip) (140.5 KB)

More informations :

- I’m using the automatic setup in SDKM to put my NX into recovery mode.
- I have an ethernet cable between my NX and my PC and a usb cable.

Thanks again for your time !

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [November 27, 2020, 5:23am UTC](https://forums.developer.nvidia.com/t/error-while-installing-cuda-on-host-and-deepstream-on-target/159973/9 "2020-11-27T05:23:07Z")

</div>

Hi,

Thanks for testing this again.  
We are checking this issue with our internal team.  
Will share more information with you once we have any finding.

Thanks.

---

<div class="post-metadata">

**Author:** ![Bazziil](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Bazziil](https://forums.developer.nvidia.com/u/Bazziil)\
**Post date:** [December 7, 2020, 10:06am UTC](https://forums.developer.nvidia.com/t/error-while-installing-cuda-on-host-and-deepstream-on-target/159973/10 "2020-12-07T10:06:58Z")

</div>

Hi AastaLLL,

Do you have any news about this ?

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [December 18, 2020, 5:18am UTC](https://forums.developer.nvidia.com/t/error-while-installing-cuda-on-host-and-deepstream-on-target/159973/11 "2020-12-18T05:18:15Z")

</div>

Hi,

Sorry to keep you waiting.

Based on the error log below, it seems that somehow the CUDA installation is blocked in your environment.  
And the CUDA failure prevents other packages from being installed.

```auto
 cuda-toolkit-10-2 : Depends: cuda-compiler-10-2 (>= 10.2.89) but it is not installable
                     Depends: cuda-tools-10-2 (>= 10.2.89) but it is not installable
                     Depends: cuda-samples-10-2 (>= 10.2.89) but it is not installable
                     Depends: cuda-documentation-10-2 (>= 10.2.89) but it is not installable
                     Depends: cuda-libraries-dev-10-2 (>= 10.2.89) but it is not installable
                     Depends: cuda-libraries-10-2 (>= 10.2.89) but it is not installable
                     Depends: cuda-nvml-dev-10-2 (>= 10.2.89) but it is not installable
                     Depends: cuda-license-10-2 (>= 10.2.89) but it is not installable

```

May I know which GPU driver do you use?  
You can find this information via running _nvidia-smi_ on the console directly.

```auto
$ sudo nvidia-smi

```

Ex.

> $ nvidia-smi  
> Fri Dec 18 13:13:34 2020  
> ±----------------------------------------------------------------------------+  
> | NVIDIA-SMI 455.45.01 Driver Version: **455.45.01** CUDA Version: 11.1 |  
> |-------------------------------±---------------------±---------------------+  
> | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |  
> …

Thanks.

---

<div class="post-metadata">

**Author:** ![Bazziil](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Bazziil](https://forums.developer.nvidia.com/u/Bazziil)\
**Post date:** [December 18, 2020, 2:08pm UTC](https://forums.developer.nvidia.com/t/error-while-installing-cuda-on-host-and-deepstream-on-target/159973/12 "2020-12-18T14:08:10Z")

</div>

hi AastaLLL,

louis@louis-All-Series:~$ sudo nvidia-smi  
±----------------------------------------------------------------------------+  
| NVIDIA-SMI 455.45.01 Driver Version: 455.45.01 CUDA Version: 11.1 |  
|-------------------------------±---------------------±---------------------+  
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |  
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |  
| | | MIG M. |  
|===============================+======================+======================|  
| 0 GeForce GTX 780 Ti Off | 00000000:01:00.0 N/A | N/A |  
| 17% 37C P8 N/A / N/A | 242MiB / 3018MiB | N/A Default |  
| | | N/A |  
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+  
| Processes: |  
| GPU GI CI PID Type Process name GPU Memory |  
| ID ID Usage |  
|=============================================================================|  
| No running processes found |  
±----------------------------------------------------------------------------+  
louis@louis-All-Series:~$

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [December 29, 2020, 6:39am UTC](https://forums.developer.nvidia.com/t/error-while-installing-cuda-on-host-and-deepstream-on-target/159973/13 "2020-12-29T06:39:24Z")

</div>

Thanks for your update, and the GPU driver looks compatible.  
Let us check this issue with our internal team and get back to you later.

Thanks.

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [January 4, 2021, 5:12am UTC](https://forums.developer.nvidia.com/t/error-while-installing-cuda-on-host-and-deepstream-on-target/159973/14 "2021-01-04T05:12:36Z")

</div>

Hi,

Thanks for your patience.  
After discussing with our internal team, could you uninstall all CUDA version and reinstall it again.

1. Use `dpkg -l | grep cuda` command to list all CUDA packages.
2. Use `sudo dpkg --purge <cuda_packages_listed_above>` command to remove CUDA packages one by one
3. Reinstall CUDA

Thanks.

---

<div class="post-metadata">

**Author:** ![Bazziil](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Bazziil](https://forums.developer.nvidia.com/u/Bazziil)\
**Post date:** [January 5, 2021, 3:47pm UTC](https://forums.developer.nvidia.com/t/error-while-installing-cuda-on-host-and-deepstream-on-target/159973/15 "2021-01-05T15:47:15Z")

</div>

Hi AastaLLL,

Thank you for your reply.  
I purged all of the cuda packages and successfully reinstall everything with SDKM, so thank you so much for your help !  
I tried to do something similar by purging every nvidia packages, but it didn’t work, so i guess i should have reinstalled cuda.

Do you have any idea why my first download went wrong ?

I will probably create a new thread because i’m struggling to cross-compile on my NX, but as I start with the development of Nvidia board, this may be an easy question for you :

- The sample application works fine on my host pc, but when i try to cross-compile my code doesn’t execute and i have “permission denied”.

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [January 6, 2021, 6:22am UTC](https://forums.developer.nvidia.com/t/error-while-installing-cuda-on-host-and-deepstream-on-target/159973/16 "2021-01-06T06:22:42Z")

</div>

Hi,

Good to know the CUDA installation is working now.  
The original error may cause by some incompatible driver/libraries.

To cross-compile an app, you will need the root authority.  
Here is a related topic for enabling authority for your reference:

> [@No timeline for profiler Xavier: nvvp and nsight compute is not working in Jetson Xavier](https://forums.developer.nvidia.com/t/no-timeline-for-profiler-xavier-nvvp-and-nsight-compute-is-not-working-in-jetson-xavier/75072/7):
>
> Hi, Have you setup the root password first? The process should like this: 1.Setup root password $ sudo passwd root 2.Edit /etc/ssh/sshd\_config diff --git a/sshd\_config b/sshd\_config index a32dc1d..d21cacd 100644 --- a/sshd\_config +++ b/sshd\_config @@ -30,6 +30,7 @@ #LoginGraceTime 2m #PermitRootLogin prohibit-password +PermitRootLogin yes #StrictModes yes #MaxAuthTries 6 #MaxSessions 10 @@ -54,7 +55,7 @@ # To disable tunneled clear text passwords, change to no here! #PasswordAut…

Thanks.

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 18, 2021, 6:42pm UTC](https://forums.developer.nvidia.com/t/error-while-installing-cuda-on-host-and-deepstream-on-target/159973/18 "2021-10-18T18:42:26Z")

</div>

Closed on October 18, 2021, 6:42pm UTC


