NVIDIA Jetson Nano pasa de Bionic Ubuntu Beaver a Focal Fossa


TLDR: Antes de iniciar la actualización, debes quitar los paquetes chromium y libopencv-dev. Esto debería evitar que te encuentres con los problemas que se detallan a continuación.

$ sudo apt-get remove --purge chromium-browser chromium-browser-l10n
$ sudo dpkg --purge --force-all libopencv-dev

Empecemos por el principio.

Revisa la versión actual

Estamos a punto de actualizar un Jetson Nano:

moore@nanux:~$ sudo lshw -C system
nanux.lan.net.com             
    description: Computer
    product: jetson-nano
    serial: 03212191275240010418
    width: 64 bits
    capabilities: smp cp15_barrier setend swp

Primero comprobamos las versiones instaladas actualmente:

moore@nanux:~$ 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 comprobar la versión del núcleo:

moore@nanux:~$ uname -a
Linux nanux.lan.net.com 4.9.140-tegra #1 SMP PREEMPT Wed Mar 13 00:32:22 PDT 2019 aarch64 aarch64 aarch64 GNU/Linux

Podemos usar la utilidad pip jetson_stats para comprobar las versiones instaladas:

moore@nanux:~$ jetson_release
 - NVIDIA Jetson Nano (Developer Kit Version)
   * Jetpack 4.2 [L4T 32.1.0]
   * NV Power Mode: MAXN - Type: 0
   * jetson_stats.service: active
 - Libraries:
   * CUDA: 10.0.166
   * cuDNN: 7.3.1.28
   * TensorRT: 5.0.6.3
   * Visionworks: 1.6.0.500n
   * OpenCV: 3.3.1 compiled CUDA: NO
   * VPI: NOT_INSTALLED
   * Vulkan: 1.1.70

Preparándose para la actualización

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.

Primero, resincronizar los archivos de índice del paquete desde su :

moore@nanux:~$ sudo apt update

Actualice todos sus paquetes:

moore@nanux:~$ sudo apt upgrade -y

Algunos paquetes listados como “kept-back” deben ser instalados para realizar la actualización:

moore@nanux:~$ apt list --upgradable
Listing... Done
fwupd/bionic-updates,bionic-security 1.2.10-1ubuntu2~ubuntu18.04.5 arm64 [upgradable from: 1.0.9-0ubuntu2]
fwupdate/bionic-updates 12-7~ubuntu18.04.3 arm64 [upgradable from: 12-3bionic2]
fwupdate-signed/bionic-updates 12-7~ubuntu18.04.3 arm64 [upgradable from: 1.19bionic2+12-3bionic2]

Estos paquetes ya están instalados:

moore@nanux:~$ dpkg -l | egrep "fwupd|fwupdate-signed"
ii  fwupd                                      1.0.9-0ubuntu2                             arm64        Firmware update daemon
ii  fwupdate                                   12-3bionic2                                arm64        Tools to manage UEFI firmware updates
ii  fwupdate-signed                            1.19bionic2+12-3bionic2                    arm64        Linux Firmware Updater EFI signed binary
ii  libfwupd2:arm64                            1.2.10-1ubuntu2~ubuntu18.04.5              arm64        Firmware update daemon library

Actualice estos paquetes con el comando “instalar”:

moore@nanux:~$  sudo apt install fwupd fwupdate fwupdate-signed -y

Compruebe la versión después de la orden de instalación:

moore@nanux:~$  dpkg -l | egrep "fwupd|fwupdate-signed"
ii  fwupd                                      1.2.10-1ubuntu2~ubuntu18.04.5                    arm64        Firmware update daemon
ii  fwupd-signed                               1.10~ubuntu18.04.4+1.2.10-1ubuntu2~ubuntu18.04.5 arm64        Linux Firmware Updater EFI signed binary
ii  fwupdate                                   12-7~ubuntu18.04.3                               arm64        Transitional package for fwupd
ii  fwupdate-signed                            12-7~ubuntu18.04.3                               arm64        Transitional package for fwupd
ii  libfwupd2:arm64                            1.2.10-1ubuntu2~ubuntu18.04.5                    arm64        Firmware update daemon library

Eliminar los paquetes no utilizados :

moore@nanux:~$ sudo apt autoremove -y

Reiniciar:

moore@nanux:~$  sudo systemctl reboot

Reconectar y lanzar una actualización de la distribución :

moore@nanux:~$ sudo do-release-upgrade
...
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]
26 installed packages are no longer supported by Canonical. You can 
still get support from the community. 

39 packages are going to be removed. 582 new packages are going to be 
installed. 1715 packages are going to be upgraded. 

You have to download a total of 1,203 M. This download will take 
about 3 minutes with your connection. 

Installing the upgrade can take several hours. Once the download has 
finished, the process cannot be canceled. 

 Continue [yN]  Details [d]y

...

Configuration file '/etc/systemd/resolved.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** resolved.conf (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/systemd/resolved.conf ...

Configuration file '/etc/systemd/sleep.conf'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** sleep.conf (Y/I/N/O/D/Z) [default=N] ? Y

...

Upgrade to the chromium snap [ENTER]

Errors were encountered while processing:
 /tmp/apt-dpkg-install-SRrcZA/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]

...

Processing triggers for libgdk-pixbuf2.0-0:arm64 (2.40.0+dfsg-3) ...
Processing triggers for libc-bin (2.31-0ubuntu9.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]

La actualización se interrumpe debido al problema con el paquete cromo-browser-l10n:

moore@nanux:~$ sudo apt update
Hit:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
appstreamcli: symbol lookup error: appstreamcli: undefined symbol: AS_APPSTREAM_METADATA_PATHS
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi'
E: Sub-process returned an error code

Control de los registros de snapd:

moore@nanux:~$ sudo journalctl -u snapd
-- Logs begin at Sun 2020-11-22 17:47:39 CET, end at Sun 2020-11-22 18:03:07 CET. --
Nov 22 17:47:49 nanux.lan.net.com systemd[1]: Starting Snap Daemon...
Nov 22 17:47:50 nanux.lan.net.com snapd[4433]: AppArmor status: apparmor not enabled
Nov 22 17:47:50 nanux.lan.net.com snapd[4433]: daemon.go:343: started snapd/2.47.1+20.04 (series 16; classic; devmode) ubuntu/20.04 (arm64) linux/4.9.140-tegra.
Nov 22 17:47:50 nanux.lan.net.com snapd[4433]: daemon.go:436: adjusting startup timeout by 45s (pessimistic estimate of 30s plus 5s per snap)
Nov 22 17:47:51 nanux.lan.net.com systemd[1]: Started Snap Daemon.
Nov 22 18:02:02 nanux.lan.net snapd[4433]: api.go:999: Installing snap "chromium" revision unset
Nov 22 18:02:09 nanux.lan.net snapd[4433]: taskrunner.go:271: [change 4 "Mount snap \"chromium\" (1406)" task] failed: [start snap-chromium-1406.mount] failed with exit status 1: Job failed. See "journ
Nov 22 18:02:09 nanux.lan.net snapd[4433]: handlers.go:495: Reported install problem for "chromium" as Crash report successfully submitted.

Quitamos estos dos paquetes chromium-browser y chromium-browser-l10n :

moore@nanux:~$ sudo apt-get remove --purge chromium-browser chromium-browser-l10n

También podemos eliminar los paquetes no utilizados de la primera ronda de actualizaciones:

moore@nanux:~$ sudo apt autoremove

Podemos reanudar la instalación:

moore@nanux:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 522 not upgraded.

Los paquetes restantes pueden ser actualizados:

moore@nanux:~$ sudo apt upgrade -y
...
Do you want to start the upgrade? 

25 installed packages are no longer supported by Canonical. You can 
still get support from the community. 

45 packages are going to be removed. 599 new packages are going to be 
installed. 1756 packages are going to be upgraded. 

You have to download a total of 1,303 M. This download will take 
about 3 minutes with your connection. 

Installing the upgrade can take several hours. Once the download has 
finished, the process cannot be canceled. 
...

Tenemos un segundo problema acon opencv:

moore@nanux:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  enchant example-content fwupdate gir1.2-gtksource-3.0 libargon2-0 libaribb24-0 libbasicusageenvironment1 libbison-dev libcddb2 libdvbpsi10 libdvdread4 libebml4v5 libenchant1c2a libevent-2.1-6
  libgfortran4 libgroupsock8 libgspell-1-1 libgtksourceview-3.0-1 libgtksourceview-3.0-common libgweather-3-15 libhunspell-1.6-0 libhwloc5 libirs-export160 libisccfg-export160 libixml10
  libkf5archive5 libkf5auth5 libkf5iconthemes-data libkf5iconthemes5 libkf5itemviews-data libkf5itemviews5 liblivemedia62 liblivemedia77 liblua5.2-0 libmad0 libmatroska6v5 libmicrodns0 libminiupnpc10
  libnfs11 libopenmpi2 libopenmpt-modplug1 libpanel-applet3 libphonon4qt5-4 libphonon4qt5-data libplacebo7 libprotobuf-lite10 libprotobuf-lite17 libqt5script5 libraw16 libresid-builder0c2a libsane1
  libsdl-image1.2 libsdl1.2debian libsidplay2 libspatialaudio0 libssh2-1 libupnp13 libupnp6 libusageenvironment3 libva-wayland2 libvlc5 libvlccore9 multiarch-support netcat-traditional phonon4qt5
  phonon4qt5-backend-vlc php7.2-cli php7.2-common php7.2-json php7.2-opcache php7.2-readline php7.2-sqlite3 php7.2-xml pppconfig pppoeconf python3-asn1crypto python3-oauth python3-zope.interface
  vlc-data vlc-plugin-base vlc-plugin-video-output
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libopencv-calib3d-dev libopencv-core-dev libopencv-dev libopencv-features2d-dev libopencv-flann-dev libopencv-highgui-dev libopencv-imgcodecs-dev libopencv-imgproc-dev libopencv-ml-dev
  libopencv-objdetect-dev libopencv-photo-dev libopencv-shape-dev libopencv-stitching-dev libopencv-superres-dev libopencv-ts-dev libopencv-video-dev libopencv-videoio-dev libopencv-videostab-dev
Suggested packages:
  opencv-doc
The following NEW packages will be installed:
  libopencv-calib3d-dev libopencv-core-dev libopencv-features2d-dev libopencv-flann-dev libopencv-highgui-dev libopencv-imgcodecs-dev libopencv-imgproc-dev libopencv-ml-dev libopencv-objdetect-dev
  libopencv-photo-dev libopencv-shape-dev libopencv-stitching-dev libopencv-superres-dev libopencv-ts-dev libopencv-video-dev libopencv-videoio-dev libopencv-videostab-dev
The following packages will be upgraded:
  libopencv-dev
1 upgraded, 17 newly installed, 0 to remove and 1 not upgraded.
800 not fully installed or removed.
Need to get 0 B/5,761 kB of archives.
After this operation, 34.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 151877 files and directories currently installed.)
Preparing to unpack .../00-libopencv-dev_4.2.0+dfsg-5_arm64.deb ...
Unpacking libopencv-dev (4.2.0+dfsg-5) over (3.3.1-2-g31ccdfe11) ...
dpkg: error processing archive /tmp/apt-dpkg-install-5J9wC7/00-libopencv-dev_4.2.0+dfsg-5_arm64.deb (--unpack):
 trying to overwrite '/usr/bin/opencv_version', which is also in package libopencv 3.3.1-2-g31ccdfe11
dpkg: regarding .../01-libopencv-core-dev_4.2.0+dfsg-5_arm64.deb containing libopencv-core-dev:arm64:
 libopencv-dev conflicts with libopencv-core-dev
  libopencv-core-dev:arm64 (version 4.2.0+dfsg-5) is to be installed.

dpkg: error processing archive /tmp/apt-dpkg-install-5J9wC7/01-libopencv-core-dev_4.2.0+dfsg-5_arm64.deb (--unpack):
 conflicting packages - not installing libopencv-core-dev:arm64
dpkg: regarding .../02-libopencv-flann-dev_4.2.0+dfsg-5_arm64.deb containing libopencv-flann-dev:arm64:
 libopencv-dev conflicts with libopencv-flann-dev
  libopencv-flann-dev:arm64 (version 4.2.0+dfsg-5) is to be installed.

dpkg: error processing archive /tmp/apt-dpkg-install-5J9wC7/02-libopencv-flann-dev_4.2.0+dfsg-5_arm64.deb (--unpack):
 conflicting packages - not installing libopencv-flann-dev:arm64
dpkg: regarding .../03-libopencv-imgproc-dev_4.2.0+dfsg-5_arm64.deb containing libopencv-imgproc-dev:arm64:
 libopencv-dev conflicts with libopencv-imgproc-dev
  libopencv-imgproc-dev:arm64 (version 4.2.0+dfsg-5) is to be installed.

dpkg: error processing archive /tmp/apt-dpkg-install-5J9wC7/03-libopencv-imgproc-dev_4.2.0+dfsg-5_arm64.deb (--unpack):
 conflicting packages - not installing libopencv-imgproc-dev:arm64
No apport report written because MaxReports is reached already
                                                              dpkg: regarding .../04-libopencv-imgcodecs-dev_4.2.0+dfsg-5_arm64.deb containing libopencv-imgcodecs-dev:arm64:
 libopencv-dev conflicts with libopencv-imgcodecs-dev
  libopencv-imgcodecs-dev:arm64 (version 4.2.0+dfsg-5) is to be installed.

dpkg: error processing archive /tmp/apt-dpkg-install-5J9wC7/04-libopencv-imgcodecs-dev_4.2.0+dfsg-5_arm64.deb (--unpack):
 conflicting packages - not installing libopencv-imgcodecs-dev:arm64
No apport report written because MaxReports is reached already
                                                              dpkg: regarding .../05-libopencv-videoio-dev_4.2.0+dfsg-5_arm64.deb containing libopencv-videoio-dev:arm64:
 libopencv-dev conflicts with libopencv-videoio-dev
  libopencv-videoio-dev:arm64 (version 4.2.0+dfsg-5) is to be installed.

dpkg: error processing archive /tmp/apt-dpkg-install-5J9wC7/05-libopencv-videoio-dev_4.2.0+dfsg-5_arm64.deb (--unpack):
 conflicting packages - not installing libopencv-videoio-dev:arm64
No apport report written because MaxReports is reached already
                                                              dpkg: regarding .../06-libopencv-highgui-dev_4.2.0+dfsg-5_arm64.deb containing libopencv-highgui-dev:arm64:
 libopencv-dev conflicts with libopencv-highgui-dev
  libopencv-highgui-dev:arm64 (version 4.2.0+dfsg-5) is to be installed.

dpkg: error processing archive /tmp/apt-dpkg-install-5J9wC7/06-libopencv-highgui-dev_4.2.0+dfsg-5_arm64.deb (--unpack):
 conflicting packages - not installing libopencv-highgui-dev:arm64
No apport report written because MaxReports is reached already
                                                              dpkg: regarding .../07-libopencv-ml-dev_4.2.0+dfsg-5_arm64.deb containing libopencv-ml-dev:arm64:
 libopencv-dev conflicts with libopencv-ml-dev
  libopencv-ml-dev:arm64 (version 4.2.0+dfsg-5) is to be installed.

dpkg: error processing archive /tmp/apt-dpkg-install-5J9wC7/07-libopencv-ml-dev_4.2.0+dfsg-5_arm64.deb (--unpack):
 conflicting packages - not installing libopencv-ml-dev:arm64
No apport report written because MaxReports is reached already
                                                              dpkg: regarding .../08-libopencv-features2d-dev_4.2.0+dfsg-5_arm64.deb containing libopencv-features2d-dev:arm64:
 libopencv-dev conflicts with libopencv-features2d-dev
  libopencv-features2d-dev:arm64 (version 4.2.0+dfsg-5) is to be installed.

dpkg: error processing archive /tmp/apt-dpkg-install-5J9wC7/08-libopencv-features2d-dev_4.2.0+dfsg-5_arm64.deb (--unpack):
 conflicting packages - not installing libopencv-features2d-dev:arm64
No apport report written because MaxReports is reached already
                                                              dpkg: regarding .../09-libopencv-objdetect-dev_4.2.0+dfsg-5_arm64.deb containing libopencv-objdetect-dev:arm64:
 libopencv-dev conflicts with libopencv-objdetect-dev
  libopencv-objdetect-dev:arm64 (version 4.2.0+dfsg-5) is to be installed.

dpkg: error processing archive /tmp/apt-dpkg-install-5J9wC7/09-libopencv-objdetect-dev_4.2.0+dfsg-5_arm64.deb (--unpack):
 conflicting packages - not installing libopencv-objdetect-dev:arm64
No apport report written because MaxReports is reached already
                                                              dpkg: regarding .../10-libopencv-photo-dev_4.2.0+dfsg-5_arm64.deb containing libopencv-photo-dev:arm64:
 libopencv-dev conflicts with libopencv-photo-dev
  libopencv-photo-dev:arm64 (version 4.2.0+dfsg-5) is to be installed.

dpkg: error processing archive /tmp/apt-dpkg-install-5J9wC7/10-libopencv-photo-dev_4.2.0+dfsg-5_arm64.deb (--unpack):
 conflicting packages - not installing libopencv-photo-dev:arm64
No apport report written because MaxReports is reached already
                                                              dpkg: regarding .../11-libopencv-video-dev_4.2.0+dfsg-5_arm64.deb containing libopencv-video-dev:arm64:
 libopencv-dev conflicts with libopencv-video-dev
  libopencv-video-dev:arm64 (version 4.2.0+dfsg-5) is to be installed.

dpkg: error processing archive /tmp/apt-dpkg-install-5J9wC7/11-libopencv-video-dev_4.2.0+dfsg-5_arm64.deb (--unpack):
 conflicting packages - not installing libopencv-video-dev:arm64
No apport report written because MaxReports is reached already
                                                              dpkg: regarding .../12-libopencv-shape-dev_4.2.0+dfsg-5_arm64.deb containing libopencv-shape-dev:arm64:
 libopencv-dev conflicts with libopencv-shape-dev
  libopencv-shape-dev:arm64 (version 4.2.0+dfsg-5) is to be installed.

dpkg: error processing archive /tmp/apt-dpkg-install-5J9wC7/12-libopencv-shape-dev_4.2.0+dfsg-5_arm64.deb (--unpack):
 conflicting packages - not installing libopencv-shape-dev:arm64
No apport report written because MaxReports is reached already
                                                              dpkg: regarding .../13-libopencv-stitching-dev_4.2.0+dfsg-5_arm64.deb containing libopencv-stitching-dev:arm64:
 libopencv-dev conflicts with libopencv-stitching-dev
  libopencv-stitching-dev:arm64 (version 4.2.0+dfsg-5) is to be installed.

dpkg: error processing archive /tmp/apt-dpkg-install-5J9wC7/13-libopencv-stitching-dev_4.2.0+dfsg-5_arm64.deb (--unpack):
 conflicting packages - not installing libopencv-stitching-dev:arm64
No apport report written because MaxReports is reached already
                                                              dpkg: regarding .../14-libopencv-superres-dev_4.2.0+dfsg-5_arm64.deb containing libopencv-superres-dev:arm64:
 libopencv-dev conflicts with libopencv-superres-dev
  libopencv-superres-dev:arm64 (version 4.2.0+dfsg-5) is to be installed.

dpkg: error processing archive /tmp/apt-dpkg-install-5J9wC7/14-libopencv-superres-dev_4.2.0+dfsg-5_arm64.deb (--unpack):
 conflicting packages - not installing libopencv-superres-dev:arm64
No apport report written because MaxReports is reached already
                                                              dpkg: regarding .../15-libopencv-ts-dev_4.2.0+dfsg-5_arm64.deb containing libopencv-ts-dev:arm64:
 libopencv-dev conflicts with libopencv-ts-dev
  libopencv-ts-dev:arm64 (version 4.2.0+dfsg-5) is to be installed.

dpkg: error processing archive /tmp/apt-dpkg-install-5J9wC7/15-libopencv-ts-dev_4.2.0+dfsg-5_arm64.deb (--unpack):
 conflicting packages - not installing libopencv-ts-dev:arm64
No apport report written because MaxReports is reached already
                                                              dpkg: regarding .../16-libopencv-videostab-dev_4.2.0+dfsg-5_arm64.deb containing libopencv-videostab-dev:arm64:
 libopencv-dev conflicts with libopencv-videostab-dev
  libopencv-videostab-dev:arm64 (version 4.2.0+dfsg-5) is to be installed.

dpkg: error processing archive /tmp/apt-dpkg-install-5J9wC7/16-libopencv-videostab-dev_4.2.0+dfsg-5_arm64.deb (--unpack):
 conflicting packages - not installing libopencv-videostab-dev:arm64
No apport report written because MaxReports is reached already
                                                              dpkg: regarding .../17-libopencv-calib3d-dev_4.2.0+dfsg-5_arm64.deb containing libopencv-calib3d-dev:arm64:
 libopencv-dev conflicts with libopencv-calib3d-dev
  libopencv-calib3d-dev:arm64 (version 4.2.0+dfsg-5) is to be installed.

dpkg: error processing archive /tmp/apt-dpkg-install-5J9wC7/17-libopencv-calib3d-dev_4.2.0+dfsg-5_arm64.deb (--unpack):
 conflicting packages - not installing libopencv-calib3d-dev:arm64
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 /tmp/apt-dpkg-install-5J9wC7/00-libopencv-dev_4.2.0+dfsg-5_arm64.deb
 /tmp/apt-dpkg-install-5J9wC7/01-libopencv-core-dev_4.2.0+dfsg-5_arm64.deb
 /tmp/apt-dpkg-install-5J9wC7/02-libopencv-flann-dev_4.2.0+dfsg-5_arm64.deb
 /tmp/apt-dpkg-install-5J9wC7/03-libopencv-imgproc-dev_4.2.0+dfsg-5_arm64.deb
 /tmp/apt-dpkg-install-5J9wC7/04-libopencv-imgcodecs-dev_4.2.0+dfsg-5_arm64.deb
 /tmp/apt-dpkg-install-5J9wC7/05-libopencv-videoio-dev_4.2.0+dfsg-5_arm64.deb
 /tmp/apt-dpkg-install-5J9wC7/06-libopencv-highgui-dev_4.2.0+dfsg-5_arm64.deb
 /tmp/apt-dpkg-install-5J9wC7/07-libopencv-ml-dev_4.2.0+dfsg-5_arm64.deb
 /tmp/apt-dpkg-install-5J9wC7/08-libopencv-features2d-dev_4.2.0+dfsg-5_arm64.deb
 /tmp/apt-dpkg-install-5J9wC7/09-libopencv-objdetect-dev_4.2.0+dfsg-5_arm64.deb
 /tmp/apt-dpkg-install-5J9wC7/10-libopencv-photo-dev_4.2.0+dfsg-5_arm64.deb
 /tmp/apt-dpkg-install-5J9wC7/11-libopencv-video-dev_4.2.0+dfsg-5_arm64.deb
 /tmp/apt-dpkg-install-5J9wC7/12-libopencv-shape-dev_4.2.0+dfsg-5_arm64.deb
 /tmp/apt-dpkg-install-5J9wC7/13-libopencv-stitching-dev_4.2.0+dfsg-5_arm64.deb
 /tmp/apt-dpkg-install-5J9wC7/14-libopencv-superres-dev_4.2.0+dfsg-5_arm64.deb
 /tmp/apt-dpkg-install-5J9wC7/15-libopencv-ts-dev_4.2.0+dfsg-5_arm64.deb
 /tmp/apt-dpkg-install-5J9wC7/16-libopencv-videostab-dev_4.2.0+dfsg-5_arm64.deb
 /tmp/apt-dpkg-install-5J9wC7/17-libopencv-calib3d-dev_4.2.0+dfsg-5_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Podemos purgar el paquete libopencv-dev:

moore@nanux:~$ sudo dpkg --purge --force-all libopencv-dev

Podemos reiniciar la instalación:

moore@nanux:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  enchant example-content fwupdate gdal-data gir1.2-gtksource-3.0 libaec0 libargon2-0 libaribb24-0 libarmadillo9 libarpack2 libavcodec-dev libavformat-dev libavresample-dev libavresample4
  libavutil-dev libbasicusageenvironment1 libbison-dev libcddb2 libcfitsio8 libcharls2 libdap25 libdapclient6v5 libdc1394-22-dev libdvbpsi10 libdvdread4 libebml4v5 libenchant1c2a libepsilon1
  libevent-2.1-6 libexif-dev libexif-doc libfreexl1 libfyba0 libgdal26 libgdcm-dev libgdcm3.0 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgfortran4 libgl2ps1.4 libgphoto2-dev libgroupsock8
  libgspell-1-1 libgtksourceview-3.0-1 libgtksourceview-3.0-common libgweather-3-15 libhdf4-0-alt libhdf5-103 libhdf5-openmpi-103 libhunspell-1.6-0 libhwloc5 libilmbase-dev libirs-export160
  libisccfg-export160 libixml10 libjbig-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev libjsoncpp1 libkf5archive5 libkf5auth5 libkf5iconthemes-data libkf5iconthemes5 libkf5itemviews-data
  libkf5itemviews5 libkmlbase1 libkmldom1 libkmlengine1 liblept5 liblivemedia62 liblivemedia77 liblua5.2-0 liblzma-dev libmad0 libmatroska6v5 libmicrodns0 libminiupnpc10 libminizip1 libnetcdf-c++4
  libnetcdf15 libnfs11 libodbc1 libogdi4.1 libopencv-calib3d-dev libopencv-calib3d4.2 libopencv-contrib-dev libopencv-contrib4.2 libopencv-core-dev libopencv-core4.2 libopencv-dnn-dev
  libopencv-dnn4.2 libopencv-features2d-dev libopencv-features2d4.2 libopencv-flann-dev libopencv-flann4.2 libopencv-highgui-dev libopencv-highgui4.2 libopencv-imgcodecs-dev libopencv-imgcodecs4.2
  libopencv-imgproc-dev libopencv-imgproc4.2 libopencv-ml-dev libopencv-ml4.2 libopencv-objdetect-dev libopencv-objdetect4.2 libopencv-photo-dev libopencv-photo4.2 libopencv-shape-dev
  libopencv-shape4.2 libopencv-stitching-dev libopencv-stitching4.2 libopencv-superres-dev libopencv-superres4.2 libopencv-video-dev libopencv-video4.2 libopencv-videoio-dev libopencv-videoio4.2
  libopencv-videostab-dev libopencv-videostab4.2 libopencv-viz-dev libopencv-viz4.2 libopencv4.2-java libopencv4.2-jni libopenexr-dev libopenmpi2 libopenmpt-modplug1 libpanel-applet3 libphonon4qt5-4
  libphonon4qt5-data libplacebo7 libpq5 libproj15 libprotobuf-lite10 libprotobuf-lite17 libqhull7 libqt5script5 libraw1394-dev libraw1394-tools libraw16 libresid-builder0c2a libsane1 libsdl-image1.2
  libsdl1.2debian libsidplay2 libsocket++1 libspatialaudio0 libspatialite7 libssh2-1 libsuperlu5 libswresample-dev libswscale-dev libsz2 libtesseract4 libtiff-dev libtiffxx5 libupnp13 libupnp6
  liburiparser1 libusageenvironment3 libva-wayland2 libvlc5 libvlccore9 libvtk6.3 libxerces-c3.2 multiarch-support netcat-traditional odbcinst odbcinst1debian2 phonon4qt5 phonon4qt5-backend-vlc
  php7.2-cli php7.2-common php7.2-json php7.2-opcache php7.2-readline php7.2-sqlite3 php7.2-xml pppconfig pppoeconf proj-bin proj-data python3-asn1crypto python3-oauth python3-zope.interface vlc-data
  vlc-plugin-base vlc-plugin-video-output
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libopencv-calib3d-dev libopencv-core-dev libopencv-features2d-dev libopencv-flann-dev libopencv-highgui-dev libopencv-imgcodecs-dev libopencv-imgproc-dev libopencv-ml-dev libopencv-objdetect-dev
  libopencv-photo-dev libopencv-shape-dev libopencv-stitching-dev libopencv-superres-dev libopencv-video-dev libopencv-videoio-dev libopencv-videostab-dev
The following NEW packages will be installed:
  libopencv-calib3d-dev libopencv-core-dev libopencv-features2d-dev libopencv-flann-dev libopencv-highgui-dev libopencv-imgcodecs-dev libopencv-imgproc-dev libopencv-ml-dev libopencv-objdetect-dev
  libopencv-photo-dev libopencv-shape-dev libopencv-stitching-dev libopencv-superres-dev libopencv-video-dev libopencv-videoio-dev libopencv-videostab-dev
0 upgraded, 16 newly installed, 0 to remove and 1 not upgraded.
800 not fully installed or removed.
Need to get 0 B/5,371 kB of archives.
After this operation, 36.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
...
Processing triggers for php7.4-cli (7.4.3-4ubuntu2.4) ...
Processing triggers for rygel (0.38.3-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
Processing triggers for sgml-base (1.29.1) ...

Queda un paquete para forzar una actualización:

moore@nanux:~$ apt list --upgradable
Listing... Done
orca/focal-updates 3.36.2-1ubuntu1~20.04.1 all [upgradable from: 3.28.0-3ubuntu1]

El lector de pantalla Orca para ciegos puede ser actualizado:

moore@nanux:~$ sudo apt install orca -y

Podemos limpiar los paquetes no utilizados:

moore@nanux:~$ sudo apt autoremove

Podemos reiniciar el Jetson:

moore@nanux:~$ sudo systemctl reboot

El sistema ha sido actualizado:

moore@laptop ~ % ssh nanux
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: Sun Nov 22 19:25:44 2020 from 192.168.1.10

moore@nanux:~$ 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

Después de la actualización, el núcleo sigue en 4.9.140-tegra:

moore@nanux:~$ uname -a
Linux nanux.lan.net 4.9.140-tegra #1 SMP PREEMPT Wed Mar 13 00:32:22 PDT 2019 aarch64 aarch64 aarch64 GNU/Linux

moore@nanux:~$ jetson_release
'DISPLAY' environment variable not set... skipping surface info
 - NVIDIA Jetson Nano (Developer Kit Version)
   * Jetpack 4.2 [L4T 32.1.0]
   * NV Power Mode: MAXN - Type: 0
   * jetson_stats.service: active
 - Libraries:
   * CUDA: 10.0.166
   * cuDNN: 7.3.1.28
   * TensorRT: 5.0.6.3
   * Visionworks: 1.6.0.500n
   * OpenCV: 3.3.1 compiled CUDA: NO
   * VPI: NOT_INSTALLED
   * Vulkan: 1.2.131

También hice una actualización de un Jetson Xavier AGX y tuve los mismos errores de cromo y opencv. No fue una actualización fácil, pero el sistema pudo ser actualizado a Ubuntu Foca Fossa 20.04 LTS.


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

EN | FR | ES

Búsqueda