Upgrading the NVIDIA Jetson Xavier NX to latest Ubuntu Focal Fossa (20.04)

I recently received a NVIDIA Jetson Xavier NX unit to review and write about some use cases like a local development computer and cloud application deployments with containers in a Kubernetes cluster.

In this post I’ll talk about upgrading it to latest Ubuntu version that is nice for a local development and day-to-day desktop use.

Disclaimer: Ubuntu Focal and the upgrade process are not supported by NVIDIA. You should do on your own discretion and try to isolate problems that might occur with this.

JetPack 4.4 is the NVIDIA stack containing Linux, board drivers and SDKs for GPU, AI and ML processing. NVIDIA calls it’s Linux, L4T (Linux for Tegra) and it’s currently at version 32.4.2 that comes default with Ubuntu 18.04.

Installing JetPack Image

My main computer is a Mac so I flashed the SD card with Balena Etcher that supports most platforms.

Insert the card into the board, connect your keyboard/mouse/monitor and power. It turns on automatically. In some moments, you’ll have the graphical interface showing up.

Upgrading

sudo do-release-upgrade -d -f DistUpgradeViewGtk3

This might take around one hour since there are more than 1000 packages that need download and upgrade. Reboot when finished.

After the upgrade, the original NVIDIA repositories are disabled. Re-enable them with:

for f in /etc/apt/sources.list.d/*; do
sudo sed -i 's/^\#\s*//' $f
done

Due to Unity conflict with Gnome 3, you might have duplicate menu bars on your applications. Remove it with:

sudo apt purge unity

Then log out and re-log in and there you go.

NVIDIA has a menu bar widget that allows you to set the power mode of the board. I still haven't figured-out why the icon gets distorted after the upgrade. You can rename the SVG file on /usr/share/nvpmodel_indicator/ to have it replace by the three-dots icon temporarily.

The application on the bottom right console is jtop, a system monitor that fetches information like CPU and GPU usage, temperatures and more. To install it, open a terminal and type:

sudo -H pip3 install -U jetson-stats

And execute with sudo jtop in the terminal.

Conclusion

This post has been written in Firefox 77 in Ubuntu Focal Fossa on the Jetson Xavier NX.

Send me your feedback on Twitter @carlosedp.

Writing everything cloud and all the tech behind it. If you like my projects and would like to support me, check my Patreon on https://www.patreon.com/carlosedp

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store