Jetson-Nano-Ubuntu-20-image

QengineeringBSD-3-Clause活跃维护

为 Jetson Nano 准备的 Ubuntu 20.04 系统镜像,预装 CUDA、OpenCV、PyTorch、TensorFlow、TensorRT 等深度学习环境,省去在边缘设备上手动配置的麻烦。

Jetson Nano with Ubuntu 20.04 image

暂无版本988star100fork同步于 2026-11-07 07:30 UTC

怎么上手

由 README 提炼,执行前请确认
下载 JetsonNanoUb20_3b.img.xz(8.7 GByte)后用 Imager 或 balenaEtcher 直接刷写 xz 文件到 SD 卡,默认密码 jetson
硬件要求按 README 说明

面向 NVIDIA Jetson Nano,需 32 GB 以上 SD 卡(镜像解压后占用超 21 GB,建议 64 GB 并扩容分区);README 未给出显存要求。

需要 CUDA
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

为 Jetson Nano 预装 OpenCV、TensorFlow、PyTorch 的 Ubuntu 20.04 系统镜像,省去在 ARM 上手动编译深度学习环境

为 Jetson Nano 准备的 Ubuntu 20.04 系统镜像,预装 CUDA、OpenCV、PyTorch、TensorFlow、TensorRT 等深度学习环境,省去在边缘设备上手动配置的麻烦。

核心能力

  • 预装 OpenCV 4.8.0、PyTorch 1.13.0、TorchVision 0.14.0
  • 内置 TensorRT 8.0.1.6 与 CUDA 10.2 同步版本
  • 附带 TensorFlow 2.4.1 与 Jtop 监控工具
  • 同时提供 gcc/g++ 8 与 9,可用 update-alternatives 切换
  • 另提供超频至 1900 MHz 的纯净 JetPack 4.6.1 镜像

容易踩的坑

不要安装 Chromium,会干扰 Snap 安装,请用预装的 Firefox;只刷写 xz 原文件,不要先解压成 img;sudo apt-get upgrade 会因 /etc/systemd/sleep.conf 冲突失败,需按官网步骤处理;TensorFlow 2.5+ 和 PyTorch 2.0 需要 CUDA 11,Jetson Nano 不支持

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Jetson Nano with Ubuntu 20.04 OS image

    output image output image output image

    A Jetson Nano - Ubuntu 20.04 image with OpenCV, TensorFlow and Pytorch

    License

    Update 9-17-2023.

    Update 9-6-2023.

    • Added a new split image.

    Update 7-15-2023.

    • Refresh Ubuntu 20.04.
    • Update OpenCV (4.8.0)
    • Update PyTorch (1.13.0)
    • Update TorchVision (0.14.0)
    • New: TensorRT (8.0.1.6)

    Update 7-13-2023.

    • Added an installation wheel for TensorRT 8.0.1.6+cuda10.2. The version is synchronous with the C++ version found on the image. Newer versions of TensorRT require CUDA 11 or later, which is not supported on a Jetson Nano. (thanks to Teemu Heikkilä)

    Tip 3-10-2023.

    • Connected to the net for the first time? Wait for the Software Updater and let it refresh your operating system.

    Update 7-30-2022.

    • Added bare overclocked Ubuntu 20.04 image.

    Update 7-26-2022.

    • Refresh Ubuntu 20.04
    • Update OpenCV (4.6.0)
    • Update PyTorch (1.12.0)
    • Update TorchVision (0.13.0)
    • New xz archive (size reduction of 26%)
    • New download site (Gdrive has a limited number of downloads per day).

    Update 1-30-2022.


    Installation.

    • Get a 32 GB (minimal) SD card to hold the image.
    • Download the image JetsonNanoUb20_3b.img.xz (8.7 GByte!) from our server.
    • Flash the image on the SD card with the Imager or balenaEtcher.
    • Given issue #101 the Imager works sometimes better than the balenaEtcher.
    • According to issue #17 only flash the xz directly, not an unzipped img image.
    • Insert the SD card in your Jetson Nano and enjoy.
    • Password: jetson
    • JetsonNanoUb20_3b.img.xz md5sum: D738F1FE20088A1BDBD10E2358B512F7

    GDrive.

    In some parts of the world, getting a good solid connection to is difficult. That is why we've also provided a copy on Google Drive. However, Google Drive limits the number of daily downloads, which is much lower than our average daily download volume. Please be considerate and use Google Drive only if necessary.

    Tip:

    The SD card is overflowing with software; more than 21 GByte! With a 32 GB card, you don't have enough space to work decently. Therefore, flash the image on an SD card of 64 or more and use GParted ($ sudo apt-get install gparted) to enlarge the partition. Or use the method of Doeke Wartena: https://github.com/Qengineering/Jetson-Nano-Ubuntu-20-image/issues/125.


    Split image.

    Due to the large image (9.3 GB), the download may take quite some time. It makes downloading vulnerable. That's why we split the file into smaller chunks. These are more manageable than one huge download. If you prefer this partial download over one large one, download the following 14 files (700 MB each) and place them in one folder.

    Once you have all the files, run

    7z x JetsonNanoUb20_3b.img.xz.001
    

    7Z will start extracting the first file (*.001) and automatically the next files in order. You will end up with JetsonNanoUb20_3b.img.xz, the original image, which you now can flash on an SD card with Imager or balenaEtcher. If you get the error '7z' is not recognised as an internal or external command, operable program or batch file. please give the full path to 7z. For instance,

    "C:\Program Files\7-Zip\7z.exe" x JetsonNanoUb20_3b.img.xz.001
    

    Bare image.

    For those who want a bare-bones Ubuntu 20.04 OS with JetPack 4.6.1, without TensorFlow and PyTorch, you can download the image here (5.6 GB). The Nano is overclocked at 1900 MHz. See https://qengineering.eu/overclocking-the-jetson-nano.html for more information. By the way, the image with TensorFlow and PyTorch is not overclocked and runs at the regular 1479 MHz.

    • JetsonNanoUb20_bare.img.xz md5sum: DB4FC5A1B09876B37FF57F42540B3250 output image
    GDrive.

    For this image, we've also provided a copy on Google Drive. However, Google Drive limits the number of daily downloads, which is much lower than our average daily download volume. Please be considerate and use Google Drive only if necessary.


    ROS

    If you plan to use this image with ROS, please look at JetsonNano-ROS2. As you can see, Kalana Ratnayake, a PhD student in the Robotics and Artificial Intelligence Lab, part of the Faculty of Science and Technology at the University of Canberra has done a great job. Thanks. 👍


    Warnings.

    • Do not install Chromium as it will interfere with the Snap installation. Use the preinstalled Mozilla Firefox.
    • Corrupted lavapipe You may encounter a warning during booting that the lavapipe is broken. To solve the issue, remove the /usr/share/vulkan/icd.d folder $ sudo rm -rf /usr/share/vulkan/icd.d See issue #173.

    Upgrading.

    You may encounter issues when upgrading ($ sudo apt-get upgrade) this Ubuntu 20.04 version. It has to do with a conflicting /etc/systemd/sleep.conf file, which blocks the upgrade. Follow the instructions on our website to resolve this issue.


    Tips.

    Use a tool like GParted sudo apt-get install gparted to expand the image to larger SD cards. We recommend a minimum of 64 GB. Deep learning simply requires a lot of space. Many CUDA related software needs gcc version 8. We have installed gcc and g++ version 8 alongside the preinstalled version 9. You can select your choice with $ sudo update-alternatives --config gcc and $ sudo update-alternatives --config g++. output image


    SSD

    You can use an external USB SSD drive holding your Ubuntu 20.04 OS and other software. Please follow the steps given at issue 32.


    Pre-installed software.

    Clicking on the links below will direct you to our installation guide.

    TensorFlow 2.5 and above, just like PyTorch 2.0, requires CUDA 11. CUDA version 11 cannot be installed on a Jetson Nano due to incompatibility between the GPU and low-level software.

    image image image


    VNC.

    Ubuntu 20.04 supports VNC. Please follow the next steps to enable it. BTW, images are taken from the Jetson Orin, but they are identical on the Jetson Ubuntu 20 VNC_1 VNC_2 VNC_3 VNC_4 The last step is lowering the encryption level.

    $ gsettings set org.gnome.Vino require-encryption false
    

    On your client please uncheck the Authenticate boxes. image


    Headless.

    If you want a headless installation of Ubuntu 20.04, please follow the next commands.

    sudo chown root:root / /lib
    sudo apt purge ubuntu-desktop -y && sudo apt autoremove -y && sudo apt autoclean
    sudo apt-get remove nautilus nautilus-* gnome-power-manager gnome-screensaver gnome-termina* gnome-pane* 
    sudo apt-get remove gnome-applet* gnome-bluetooth gnome-desktop* gnome-sessio* gnome-user* gnome-shell-common
    sudo apt-get remove zeitgeist-core libzeitgeist* gnome-control-center gnome-screenshot && sudo apt-get autoremove
    sudo apt-get remove --purge libreoffice*
    sudo apt-get remove libreoffice-core
    sudo apt-get remove snapd lightdm cups chromium*
    

    You end up with a headless OS consuming ~ 420 MB. Below is a screen dump of Putty connected to the Jetson Nano running jtop. 330769059-52674244-cf3c-4ea1-a903-a1ed19719ce0


    OpenCV + TensorFlow or TensorRT.

    Importing both TensorFlow (or TensorRT) and OpenCV in Python can throw the error: cannot allocate memory in static TLS block. This behaviour only occurs on an aarch64 system and is caused by the OpenMP memory requirements not being met. For more information, see GitHub ticket #14884.

    output image

    There are a few solutions. The easiest is to import OpenCV at the beginning, as shown above. The other is disabling OpenMP by setting the -DBUILD_OPENMP and -DWITH_OPENMP flags OFF. Where possible, OpenCV will now use the default pthread or the TBB engine for parallelization. We don't recommend it. Not all OpenCV algorithms automatically switch to pthread. Our advice is to import OpenCV into Python first before anything else.

    Please visit https://qengineering.eu/install-ubuntu-20.04-on-jetson-nano.html for more information.


    paypal