Mise à jour du NVIDIA Jetson Nano de Ubuntu Bionic Beaver à Focal Fossa


TLDR: Avant de lancer la mise à jour, vous devez supprimer les paquets chromium et libopencv-dev. Vous devriez ainsi éviter de rencontrer les problèmes détailléez plus bas.

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

Commençons par le début.

Vérifier la version actuelle

Nous allons mettre à jour un Jetson Nano :

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

Nous vérifions d’abord les versions actuellement installées :

[email protected]:~$ 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

Nous pouvons vérifier la version du noyau :

[email protected]:~$ 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

Nous pouvous utiliser l’utilitaire pip jetson_stats pour contrôler les versions installées :

[email protected]:~$ 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

Préparation de la mise à jour

Vous devez d’abord mettre à jour tous les paquets avant de faire une mise à jour majeure.

Si vous essayez une mise à jour “do-release-upgrade”, vous obtiendrez cette erreur :

Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.

Tout d’abord, resynchronisez les fichiers d’index des paquets à partir de leurs sources :

[email protected]:~$ sudo apt update

Mettez à niveau tous vos paquets :

[email protected]:~$ sudo apt upgrade -y

Certains paquets répertoriés comme “kept-back” doivent être installés pour effectuer la mise à niveau :

[email protected]:~$ 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]

Ces paquets sont déjà installés :

[email protected]:~$ 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

Mettez à jour ces paquets avec la commande “install” :

[email protected]:~$  sudo apt install fwupd fwupdate fwupdate-signed -y

Vérifiez la version après la commande d’installation :

[email protected]:~$  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

Nettoyez les paquets non utilisés :

[email protected]:~$ sudo apt autoremove -y

Redémarrage :

[email protected]:~$  sudo systemctl reboot

Reconnectez-vous et lancez une mise à niveau de la distribution :

[email protected]:~$ 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 mise à jour est interrompue en raison du problème du paquet chromium-browser-l10n :

[email protected]:~$ 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

Contrôle des logs de snapd :

[email protected]:~$ 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.

Nous supprimons ces deux paquets chromium-browser et chromium-browser-l10n :

[email protected]:~$ sudo apt-get remove --purge chromium-browser chromium-browser-l10n

Nous pouvons aussi supprimer les paquets inutilisés suite à la première série de mise à jour :

[email protected]:~$ sudo apt autoremove

Nous pouvons reprendre l’installation :

[email protected]:~$ 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.

Les paquets restant peuvent être mis à jour :

[email protected]:~$ 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. 
...

Nous rencontrons un second problème :

[email protected]:~$ 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)

Nous pouvons purger le paquet libopencv-dev :

[email protected]:~$ sudo dpkg --purge --force-all libopencv-dev

Nous pouvons relancer l’installation :

[email protected]:~$ 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) ...

Il reste un paquet à forcer à mettre à jour :

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

Le lecteur d’écran Orca pour non voyant peut être mis à jour :

[email protected]:~$ sudo apt install orca -y

Nous pouvons nettoyer les paquets inutilisés :

[email protected]:~$ sudo apt autoremove

Nous pouvons redémarrer le Jetson :

[email protected]:~$ sudo systemctl reboot

Le système a été mis à jour :

[email protected] ~ % 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

[email protected]:~$ 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

Après l’upgrade le kernel est encore en 4.9.140-tegra:

[email protected]:~$ 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

[email protected]:~$ 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

J’ai également fait une mise à jour sur un Jetson Xavier AGX et j’ai eu les mêmes erreurs de chromium et d’opencv. Ce n’était pas une mise à jour qui s’est déroulée sans accros, mais le système a pu être mis à jour en 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

Recherche