Skip to content

Instantly share code, notes, and snippets.

@Lauszus
Last active October 31, 2023 12:52
Show Gist options
  • Star 16 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save Lauszus/28f546d4f30ce5103b49a7550f3e4975 to your computer and use it in GitHub Desktop.
Save Lauszus/28f546d4f30ce5103b49a7550f3e4975 to your computer and use it in GitHub Desktop.
Nvidia SDKManager on Ubuntu 20.04
# Put in "/usr/lib/os-release-bionic"
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
# Now launch the sdkmanager:
# $ export LSB_OS_RELEASE=/usr/lib/os-release-bionic
# $ sdkmanager
@Tony763
Copy link

Tony763 commented Nov 18, 2020

Works also in Ubuntu 20.10.

@jwatte
Copy link

jwatte commented Jul 30, 2021

Doesn't work with SDK Manager version 1.6.0 (it still detects 20.04)
Maybe the docker image will work?
https://developer.nvidia.com/sdkmanager_docker_image

@Lauszus
Copy link
Author

Lauszus commented Jul 30, 2021

@jwatte yes it's annoying. I downgraded to 1.4.1.7402 as that one works. I can't believe Nvidia still have not added support for 20.04 :/

No I have not tried the Docker image.

@Tony763
Copy link

Tony763 commented Aug 5, 2021

@Lauszs @jwatte Hi, for Ubuntu 20.04, 20.10 and 21.04:

sudo cp /usr/lib/os-release to /usr/lib/os-release-bionic
sudo cp /usr/lib/os-release to /usr/lib/os-release-hisure
sudo nano /usr/lib/os-release-bionic
# fill in indices for Ubuntu 18 as mentioned above.

When you want to start sdkmanager:

sudo cp /usr/lib/os-release-bionic /usr/lib/os-release
sdkmanager

When you are done:

sudo cp /usr/lib/os-release-hisure /usr/lib/os-release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment