Fail to flash TX2 - Ubuntu 18.04

Hello,

I am using Ubuntu 18.04 in my host. When I try to flash my Jetson TX2 I get the following error:

###############################################################################

L4T BSP Information:

R28 (release), REVISION: 2.0, GCID: 10567845, BOARD: t186ref, EABI: aarch64,

DATE: Fri Mar 2 04:57:01 UTC 2018

###############################################################################

Target Board Information:

Name: jetson-tx2, Board Family: t186ref, SoC: Tegra 186,

OpMode: production, Boot Authentication: ,

###############################################################################
./tegraflash.py --chip 0x18 --applet “/home/eduardo/Public/JetPack3.2/64_TX2/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin” --cmd “dump eeprom boardinfo cvm.bin” --skipuid
/usr/bin/env: ‘python’: No such file or directory
Reading board information failed.

I can see that the file ‘python’ is not present in /usr/bin/env, however the file python3 is present.
What can I do?

Thank you

1 Like

When using just “python” I believe the convention is that this is python2. Python3 is what more modern distributions use, but you can probably install both side-by-side (“apt search python2”, then “sudo apt-get install ”).

Thanks for the solution. I am also faced the same issue and after installed the python2, able to successfully flashed the Jetson NANO kit from Ubuntu18.04 OS.

I am unsure if that means you still have problems with the python version or not. If so, then what do you see from “which python”, “which python2”, and “which python3”? Some version requirements will have also changed over time, and the previous post was from about two years ago.

I installed fresh Ubunutu 18.04 in my laptop and tried to flash the NANO board after build the files downloaded from the source of nVidia, I faced this issue. When I run the command “which python”, nothing printed in the terminal. After installed the python3, also same issue.

Then after seeing this forum, installed python2 and able to flash the board successfully. I hope this message answered your question. Please let me know if you still have any questions.
Thanks,
Sivashankar

You could search for everything “python2” with:
apt search python2
…and everything “python3” with:
apt search python3

Looks like there are both “minimal” and other versions, Jetsons seem to use “minimal” (on a host PC you might have use for more).

Examples of what you might try:
sudo apt-get install python-minimal
…and:
sudo apt-get install python3-minimal

Note that the “2” version is just the “python-minimal”, and that the “3” version actually names version 3. There are also specific patch levels, e.g., 3.6 versus 3.7, or 2.6 versus 2.7. I don’t know which specific requirement you will run into, but you might as well install one of the python2 releases and one of the python3 releases.

Right now i don’t have any issues. Thanks for the details. If required will use these steps and update you.

Thanks once again for the clarification. Have a great day.