SDKManager "Not supported on Linux"

Hi,

I installed SDKManager with the deb package on Linux Mint Serena 18.1 (Ubuntu 16.04 based).

It shows me “Linux. Not supported on Linux” and refuses to go to step 2. In the past I could patch the startup.sh to run the old installer on Mint. How I can do that in SDKManager?

Hi manthey,
Please be noted that Jetpack 4.2 GA only supports Ubuntu 16.04 and Ubuntu 18.04 official releases.

Maybe it helps for your case to format the result of command ‘lsb_release -r’ to the same as Ubuntu 16.04, but I strongly recommend to play with Ubuntu official releases.

Thanks

I am not asking you to support all the distros out there but it would be nice if I could override that behavior and be able to continue in unsupported mode. E.g. Mint is based on Ubuntu and I never had any trouble after patching start.sh using the old installer. Whoever is flashing a device should know what he is doing in the end.

Hi,
As mentioned in previous post, could you try to make ‘lsb_release -r’ as the same output of Ubuntu 16.04?

Option 1(Preferable)
a) export LSB_ETC_LSB_RELEASE=/etc/upstream-release/lsb-release
b) run sdkmanager at the same terminal.

Option 2.
a) edit /etc/lsb-release with below content
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION=“Ubuntu 16.04.5 LTS”
b) run sdkmanager

Tested with Option #1 on a clean Mint OS, it works from my side.

Thanks

3 Likes

I didnt know lsb_release is in fact a python3 script.

I tried Option 1. and I can confirm its working. Thanks a lot. You saved me a lot of hazzle.

Option 2 worked for me as I’m running 18.10. I changed it to 18.04.

Thank you.

Confirmed 2) working on Debian 9.

Thanks
Luca

On Debian 10 doesn’t work with either option :-(
“Linux. Not supported on Linux”

For Ubuntu 19.04, I had to:

  1. create file /usr/lib/os-release-bioinic:
    NAME="Ubuntu"
    VERSION="18.04 (Bionic Beaver)"
    ID=ubuntu
    ID_LIKE=debian
    PRETTY_NAME="Ubuntu 18.04"
    VERSION_ID="18.04"
    VERSION_CODENAME=bionic
    UBUNTU_CODENAME=bionic
    
  2. $> export LSB_OS_RELEASE=/usr/lib/os-release-bionic
    
  3. $> /opt/nvidia/sdkmanager/sdkmanager
    
5 Likes

this didn’t work for 20.04 … python fell over. Any other way to FORCE it ti accept 20.04 or is there a new release date for one that does support the latest LTS release?

This is currently working for me on 20.04 (it was originally 18.04, upgraded to 19.04->19.10->20.04).
Any more details related to “python fell over”?

1 Like

I can confirm that mdeboer’s solution works in Mint 20.04. The only thing I did different is that I created the file he showed in my home directory, and I pointed to it with the env variable LSB_OS_RELEASE.

My script to call sdkmanager is:

export LSB_OS_RELEASE=$HOME/fake_ubuntu.txt
sdkmanager
1 Like

Edit: Just realized this same solution was posted above…

  1. copy /usr/bin/os-release to your home folder or wherever and name it something like os-release-bionic
  2. edit os-release-jetson and change the content to 18.04:
NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
  1. The environment variable you want to change is LSB_OS_RELEASE:
export LSB_OS_RELEASE=/home/monty/os-release-bionic
  1. Run sdkmanager and it should work!

For anyone wondering, I can confirm that the VERSION_ID overloading to 18.04 still works fine on 20.10, I just finished reflashing both my Jetson Nano and Xavier NX without issue.

It would be nice if sdkmanager provided an option to install on unsupported hosts that could be manually enabled, with the caveat that any problems arising are your own problem.

Hi all,
for me it’s not working. Ubuntu 20.10 with latest updates.

Traceback (most recent call last):
  File "/usr/bin/lsb_release", line 95, in <module>
    main()
  File "/usr/bin/lsb_release", line 59, in main
    distinfo = lsb_release.get_distro_information()
  File "/usr/lib/python3/dist-packages/lsb_release.py", line 398, in get_distro_information
    distinfo = guess_debian_release()
  File "/usr/lib/python3/dist-packages/lsb_release.py", line 288, in guess_debian_release
    get_distro_info(distinfo['ID'])
  File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in get_distro_info
    RELEASES_ORDER.sort(key=lambda n: float(n[0]))
  File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in <lambda>
    RELEASES_ORDER.sort(key=lambda n: float(n[0]))
ValueError: could not convert string to float: '6.06 LTS'
Traceback (most recent call last):
  File "/usr/bin/lsb_release", line 95, in <module>
    main()
  File "/usr/bin/lsb_release", line 59, in main
    distinfo = lsb_release.get_distro_information()
  File "/usr/lib/python3/dist-packages/lsb_release.py", line 398, in get_distro_information
    distinfo = guess_debian_release()
  File "/usr/lib/python3/dist-packages/lsb_release.py", line 288, in guess_debian_release
    get_distro_info(distinfo['ID'])
  File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in get_distro_info
    RELEASES_ORDER.sort(key=lambda n: float(n[0]))
  File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in <lambda>
    RELEASES_ORDER.sort(key=lambda n: float(n[0]))
ValueError: could not convert string to float: '6.06 LTS'

Just overcome this error with: https://askubuntu.com/questions/930837/lsb-release-could-not-convert-string-to-float-8-04-lts

But I still got:

No available releases for Linux.