Issues with JetPack

I tried to install the JetPack on my Jetson TK1 but I’ve found a bunch of issues. The installation on the host computer went well, apparently. I was also able to flash the TK1 with the included OS image, the cross-compile step also completes successfully. The problems appear during the “Push and Install on Target” step. The connection to the target is lost after a few of the examples are pushed to the target. I believe that this is related to the problem with the network driver included in the target OS image. To restore the connection I have to hard reset the TK1.

After that, I tried to install CUDA manually on the TK1 so I added the cuda-repo-l4t-r21.2-6-5-prod_6.5-34_armhf.deb repository with dpkg -i but then apt-get update fails with the following error

E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?

/apt/etc/sources.list doesn’t contain any https repo or any obvious error. Any suggestions?

I reply to the first part of my question. I was able to temporarily fix the dropped connection issue with the workaround suggested here:

[url]https://devtalk.nvidia.com/default/topic/787949/embedded-systems/netdev-watchdog-eth0-r8169-transmit-queue-0-timed-out-with-tegra-r21/post/4359675/#4359675[/url]

I still can’t find a solution for the apt-get update problem, though.

You should be able to install /usr/lib/apt/methods/https with:

sudo apt-get install apt-transport-https

Do you have https repositories listed in any of the files in /apt/etc/sources.list.d/?

The package “cuda-repo” might install those https repositories.

kulve, thanks for your reply. I tried that but I get the same error:

ubuntu@tegra-ubuntu:~$ sudo apt-get install apt-transport-https
[sudo] password for ubuntu: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  apt-transport-https
0 upgraded, 1 newly installed, 0 to remove and 183 not upgraded.
Need to get 23.1 kB of archives.
After this operation, 216 kB of additional disk space will be used.
E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?

It’s a catch 22! O.o

/apt/etc/sources.list.d/ only contains 2 files pointing to file repos:

ubuntu@tegra-ubuntu:~$ cat /etc/apt/sources.list.d/cuda-6-5-prod.list 
deb file:///var/cuda-repo-6-5-prod /
ubuntu@tegra-ubuntu:~$ cat /etc/apt/sources.list.d/opencv4tegra-repo.list 
deb file:///var/opencv4tegra-repo /

Any other suggestions?

You can try installing it manually:

cd /tmp
wget http://ports.ubuntu.com/pool/main/a/apt/apt-transport-https_1.0.1ubuntu2_armhf.deb
sudo dpkg -i apt-transport-https_1.0.1ubuntu2_armhf.deb

kulve, thanks so much for your help. I finally found the problem, and it has nothing to do with the TK1 or the installation. Our network requires an authentication the first you try to connect to the internet. Commonly you authenticate through a browser, but since I’m connecting to the TK1 via ssh, I never see the authentication page, and all Internet requests are redirected to an https authentication page, hence the error with the missing https transport. Thanks for pointing me in the right direction.

Hi ,

My installation of jetpack 2.0 for Tx1 is failing due to an issue with libstdc+±4.8-dev-armhf-cross and libsfstdc++6-armhf-cross libraries. from the logs I understand these are installed as a part of jetpack. Are there any repositories we need to add extra for jetpack install ? Does anybody else have similar issues ?

When installing JetPack, we don’t need manually add any extra repositories.

Can you please paste the error logs when running following command?
sudo apt-get install libstdc+±4.8-dev-armhf-cross libsfstdc++6-armhf-cross

When I try

john@john-Latitude-D630:~$ sudo apt-get install libstdc+±4.8-dev-armhf-cross libsfstdc++6-armhf-cross
[sudo] password for john:
Reading package lists… Done
Building dependency tree
Reading state information… Done
libsfstdc++6-armhf-cross is already the newest version.
The following NEW packages will be installed:
libstdc+±4.8-dev-armhf-cross libstdc++6-armhf-cross
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,301 kB of archives.
After this operation, 11.8 MB of additional disk space will be used.
(Reading database … 231298 files and directories currently installed.)
Preparing to unpack …/libstdc++6-armhf-cross_4.8.4-2ubuntu1~14.04.1cross0.11.1_all.deb …
Unpacking libstdc++6-armhf-cross (4.8.4-2ubuntu1~14.04.1cross0.11.1) …
dpkg: error processing archive /var/cache/apt/archives/libstdc++6-armhf-cross_4.8.4-2ubuntu1~14.04.1cross0.11.1_all.deb (–unpack):
trying to overwrite ‘/usr/share/gcc-4.8/python/libstdcxx/init.py’, which is also in package libstdc++6:amd64 4.8.4-2ubuntu1~14.04.1
Selecting previously unselected package libstdc+±4.8-dev-armhf-cross.
Preparing to unpack …/libstdc+±4.8-dev-armhf-cross_4.8.4-2ubuntu1~14.04.1cross0.11.1_all.deb …
Unpacking libstdc+±4.8-dev-armhf-cross (4.8.4-2ubuntu1~14.04.1cross0.11.1) …
Errors were encountered while processing:
/var/cache/apt/archives/libstdc++6-armhf-cross_4.8.4-2ubuntu1~14.04.1cross0.11.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
john@john-Latitude-D630:~$

Looks like it’s the same Ubuntu bug: [url]https://bugs.launchpad.net/ubuntu/+source/gcc-4.8-armhf-cross/+bug/1557205[/url]

#9 of the above bug provides a solution:
"
Just use following command for temporary fixing this issue:
$ sudo apt-get -o Dpkg::Options::=“–force-overwrite” install -f
"

Perhaps you could try and see if it solves your problem.