Queremos actualizar un Jetson Xavier AGX 16GB de NVIDIA:
TLDR : Antes de empezar a actualizar tu Jetson Xavier AGX, tienes que quitar los paquetes chromium y libopencv-dev. Esto debería salvarte de los problemas que se detallan a continuación.
Empecemos por el principio.
Vamos a mejorar un Jetson Xavier:
moore@neuralux:~$ sudo lshw -C system
neuralux
description: Computer
product: Jetson-AGX
serial: 0422128031978
width: 64 bits
capabilities: smp cp15_barrier setend swp
avec Ubuntu 18.04.5 LTS:
moore@neuralux:~$ cat /etc/os-release
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
Podemos usar el módulo pip jetson_stats para obtener las versiones actuales de las bibliotecas:
moore@neuralux:~$ jetson_release
- NVIDIA Jetson AGX Xavier [16GB]
* Jetpack 4.2.3 [L4T 32.2.3]
* NV Power Mode: MODE_30W_ALL - Type: 3
* jetson_stats.service: active
- Libraries:
* CUDA: 10.0.326
* cuDNN: 7.5.0.56
* TensorRT: 5.1.6.1
* Visionworks: 1.6.0.500n
* OpenCV: 3.3.1 compiled CUDA: NO
* VPI: NOT_INSTALLED
* Vulkan: 1.1.70
Puedes comprobar la versión del núcleo:
moore@neuralux:~$ uname -a
Linux neuralux 4.9.140-tegra #1 SMP PREEMPT Tue Nov 5 13:37:19 PST 2019 aarch64 aarch64 aarch64 GNU/Linux
Primero debes actualizar todos los paquetes antes de hacer una actualización importante.
Si intentas una actualización “do-release-upgrade”, obtendrás este error:
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
Comienza resincronizando los archivos de índice del paquete desde su :
moore@neuralux:~$ sudo apt update
Actualice todos sus paquetes :
moore@neuralux:~$ sudo apt upgrade -y
Limpiar los paquetes no utilizados :
moore@neuralux:~$ sudo apt autoremove
Reiniciar :
moore@neuralux:~$ sudo systemctl reboot
Vuelva a conectar e inicie la actualización de la distribución:
moore@neuralux:~$ sudo do-release-upgrade
...
Updating repository information
Third party sources disabled
Some third party entries in your sources.list were disabled. You can
re-enable them after the upgrade with the 'software-properties' tool
or your package manager.
To continue please press [ENTER]
...
Unpacking libattr1:arm64 (1:2.4.48-5) over (1:2.4.47-2build1) ...
Errors were encountered while processing:
/tmp/apt-dpkg-install-hSThiV/00-chromium-browser_1%3a85.0.4183.83-0ubuntu0.20.04.2_arm64.deb
Exception during pm.DoInstall(): E:Sub-process /usr/bin/dpkg returned an error code (1)
...
Errors were encountered while processing:
chromium-browser-l10n
Upgrade complete
The upgrade has completed but there were errors during the upgrade
process.
To continue please press [ENTER]
Enlevez chromium :
moore@neuralux:~$ sudo apt-get remove --purge chromium-browser chromium-browser-l10n -y
Actualizar los paquetes :
moore@neuralux:~$ sudo apt upgrade -y
Eliminar libopencv-dev :
moore@neuralux:~$ sudo dpkg --purge --force-all libopencv-dev
Reparar la instalación :
moore@neuralux:~$ apt --fix-broken install
Revisa los paquetes restantes :
moore@neuralux:~$ apt list --upgradable
Listing... Done
orca/focal-updates 3.36.2-1ubuntu1~20.04.1 all [upgradable from: 3.28.0-3ubuntu1]
N: There are 2 additional versions. Please use the '-a' switch to see them.
Actualización del paquete orca :
moore@neuralux:~$ sudo apt install orca -y
Limpia los paquetes del sistema :
moore@neuralux:~$ sudo apt autoremove -y
Finalmente reinicie el sistema:
moore@neuralux:~$ sudo systemctl reboot
Conecta con el Xavier :
moore@laptop:~$ ssh neuralux
Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 4.9.140-tegra aarch64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
This system has been minimized by removing packages and content that are
not required on a system that users do not log into.
To restore this content, you can run the 'unminimize' command.
0 updates can be installed immediately.
0 of these updates are security updates.
Last login: Mon Nov 22 23:45:40 2020 from 192.168.1.10
moore@neuralux:~$
Comprueba la versión del sistema:
moore@neuralux:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.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=focal
UBUNTU_CODENAME=focal
También hice una actualización de un Jetson Nano y tuve los mismos errores de cromo y de opencv. No fue una actualización sin problemas, pero el sistema fue migrado a Foca Fossa.