Ln: failed to create symbolic link '/usr/share/gnome:/usr/share/cinnamon:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop/applications/vpi1_demos'

Hello to everyone,

I’ve upgraded the L4T from 32.1.2 to 32.5.1 by removing the sources located on /etc/apt/sources.list.d/nvidia-l4t-apt-source.list and using these new sources :

deb https://repo.download.nvidia.com/jetson/common r32.5 main
deb https://repo.download.nvidia.com/jetson/t210 r32.5 main

and then I gave apt-update & apt-upgrade

it worked,but unfortunately an error is occurred and I don’t know how to fix it. Can u give a look at the log below and please give me some suggestion for fixing the error ? thanks.

root@zio-desktop:/home/zio/Scrivania/Work/I9/Android-arm# apt upgrade

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done

The following packages were automatically installed and are no longer required:
  apt-clone archdetect-deb bogl-bterm busybox-static cryptsetup-bin
  dpkg-repack efibootmgr gir1.2-geocodeglib-1.0 gir1.2-timezonemap-1.0
  grub-common kde-window-manager kinit kio kpackagetool5 kpartx kwayland-data
  kwin-common kwin-data kwin-x11 libabw-0.1-1 libcdr-0.1-1
  libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2
  libdebian-installer4 libe-book-0.1-1 libeot0 libepubgen-0.1-1
  libetonyek-0.1-1 libexttextcat-2.0-0 libexttextcat-data libfreehand-0.1-1
  libfwup1 libkdecorations2-5v5 libkdecorations2private5v5 libkf5activities5
  libkf5attica5 libkf5completion-data libkf5completion5 libkf5declarative-data
  libkf5declarative5 libkf5doctools5 libkf5globalaccel-data libkf5globalaccel5
  libkf5globalaccelprivate5 libkf5idletime5 libkf5jobwidgets-data
  libkf5jobwidgets5 libkf5kcmutils-data libkf5kcmutils5 libkf5kiocore5
  libkf5kiontlm5 libkf5kiowidgets5 libkf5newstuff-data libkf5newstuff5
  libkf5newstuffcore5 libkf5package-data libkf5package5 libkf5plasma5
  libkf5quickaddons5 libkf5solid5 libkf5solid5-data libkf5sonnet5-data
  libkf5sonnetcore5 libkf5sonnetui5 libkf5textwidgets-data libkf5textwidgets5
  libkf5waylandclient5 libkf5waylandserver5 libkf5xmlgui-bin libkf5xmlgui-data
  libkf5xmlgui5 libkscreenlocker5 libkwin4-effect-builtins1 libkwineffects11
  libkwinglutils11 libkwinxrenderutils11 libllvm8 libmhash2 libmspub-0.1-1
  libmwaw-0.3-3 libmythes-1.2-0 libneon27-gnutls libodfgen-0.1-1
  liborcus-0.13-0 libpagemaker-0.0-0 libqgsttools-p1 libqt5designer5
  libqt5help5 libqt5multimedia5 libqt5multimedia5-plugins
  libqt5multimediaquick-p5 libqt5multimediawidgets5 libqt5opengl5
  libqt5quickwidgets5 libqt5sql5 libqt5test5 libraptor2-0 librasqal3 librdf0
  librevenge-0.0-0 libsuitesparseconfig5 liburcu6 libvisio-0.1-1
  libwpd-0.10-10 libwpg-0.3-3 libwps-0.4-4 libxcb-composite0 libxcb-cursor0
  libxcb-damage0 libxmlsec1 libxmlsec1-nss lp-solve os-prober
  python3-dbus.mainloop.pyqt5 python3-icu python3-pam python3-pyqt5
  python3-pyqt5.qtsvg python3-pyqt5.qtwebkit python3-sip
  qml-module-org-kde-kquickcontrolsaddons qml-module-qtmultimedia
  qml-module-qtquick2 rdate sg3-utils-udev tasksel tasksel-data
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up vpi1-demos (1.0.15) ...

ln: failed to create symbolic link '/usr/share/gnome:/usr/share/cinnamon:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop/applications/vpi1_demos': No such file or directory
dpkg: error processing package vpi1-demos (--configure):
 installed vpi1-demos package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of nvidia-vpi:
 nvidia-vpi depends on vpi1-demos (= 1.0.15); however:
  Package vpi1-demos is not configured yet.

dpkg: error processing package nvidia-vpi (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-jetpack:
 nvidia-jetpack depends on nvidia-vpi (= 4.5.1-b17); however:
  Package nvidia-vpi is not configured yet.

dpkg: error processing package nvidia-jetpack (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                    Errors were encountered while processing:
 vpi1-demos
 nvidia-vpi
 nvidia-jetpack
E: Sub-process /usr/bin/dpkg returned an error code (1)

below u can read some informations on my system :

root@zio-desktop:/home/zio/Scrivania/Work/I9/Tools/jetsonUtilities# ./jetsonInfo.py

NVIDIA Jetson Nano (Developer Kit Version)
L4T 32.5.1 [ JetPack UNKNOWN ]
Ubuntu 18.04.5 LTS
Kernel Version: 4.9.201+
CUDA 10.2.89
CUDA Architecture: 5.3
OpenCV version: 4.1.1
OpenCV Cuda: NO
CUDNN: 8.0.0.180
TensorRT: 7.1.3.0
Vision Works: 1.6.0.501
VPI: ii libnvvpi1 1.0.15 arm64 NVIDIA Vision Programming Interface library

maybe reflashing would be a solution?

let’s focus on the resolution of the problems instead of skipping them and restarting from scratch. your suggestion is the best one not to learn anything.

Those upgrades from the earlier releases did not use packages for much of any of the NVIDIA customization to Ubuntu for Jetsons. The installation of that software was more or less just unpacking of tarball files. There was never any intention of those releases to be able to perform a major release upgrade without a full flash, so “fixing” this is unlikely to succeed without an extraordinary effort.

Later R32.x releases (I forget when, but perhaps roughly R32.3) transitioned the NVIDIA content in the form of a Debian package (".deb" files). It is only with one of those as the base release that apt should succeed for such an upgrade, so I think you are out of luck. You could back up your Nano (SD card backup to host if a dev kit, clone backup to host if an eMMC model) first so you don’t lose content, but flashing is likely the only practical answer.

I’ve been lucky,man. I’ve removed the package snapd and everything went good.

I’ve just also met the issue and I’m pretty sure that there is a bug in installation scripts of the package ’ vpi1-demos’. They treat environment variable XDG_DATA_DIRS as only one directory, but it is the list of directories separated with ‘:’ : e.g. ‘XDG_DATA_DIRS=/usr/share/gnome:/usr/share/cinnamon:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop/applications/vpi1_demos’.

The correct fix of the problem lays on NVIDIA side and I will try to investigate the package deeper and report to them with more details.

But correct and quick workaround for now is just running

export XDG_DATA_DIRS=/usr/share

before running ‘apt-get upgrade’

1 Like