Error when upgrading AGC Jetson on Ubuntu 18.04

I get the following warning whenever one of your packages is upgraded:

Warning: could not open file ‘/usr/share/applications/vpi1_demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/demos/nvidia-vpi_demo_remap-1.0.desktop’ – Too many levels of symbolic links

Things work just fine, but I thought you may be interested in looking into a fix.

As shown in the warning message, the “demos” file is a symbolic link which points to the folder where it resides:

$ ls -l /usr/share/applications/vpi1_demos/demos
lrwxrwxrwx 1 root root 41 Feb 28  2021 /usr/share/applications/vpi1_demos/demos -> /opt/nvidia/vpi1/share/applications/demos

I do not know exactly which package generated the error, but here the list of packages that were updated:

The following packages will be upgraded:
  bind9-host ghostscript ghostscript-x isc-dhcp-client isc-dhcp-common isc-dhcp-server libasn1-8-heimdal libbind9-160
  libdns-export1100 libdns1100 libgmp10 libgs9 libgs9-common libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal
  libheimntlm0-heimdal libhx509-5-heimdal libirs-export160 libisc-export169 libisc169 libisccc160 libisccfg-export160 libisccfg160
  libjpeg-turbo8 libjpeg-turbo8-dev libkrb5-26-heimdal liblwres160 libroken18-heimdal libtiff-dev libtiff5 libtiff5-dev libtiffxx5
  libwind0-heimdal linux-libc-dev python3-mako thunderbird thunderbird-gnome-support unzip
39 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I’m attaching the whole dist-upgrade command output.

20221015-upgrade.txt (15.5 KB)

As I said above, it worked just fine so I’m not in need of any help on this one. It’s just for you guys to have a chance to fix a small issue.

I assume deleting the unnecessary symlink rm /usr/share/applications/vpi1_demos will get rid of the errors. Probably not many people installs the vpi1-demos package and that’s why no one noticed the error.

Hi,

Thanks for reporting this.

We want to reproduce this issue in our environment as well.
It looks like you are using JetPack 4, could you please share the detailed version you are using?

Thanks.

$ apt show nvidia-jetpack -a
Package: nvidia-jetpack
Version: 4.5.1-b17
Priority: standard
Section: metapackages
Maintainer: NVIDIA Corporation
Installed-Size: 199 kB
Depends: nvidia-cuda (= 4.5.1-b17), nvidia-opencv (= 4.5.1-b17), nvidia-cudnn8 (= 4.5.1-b17), nvidia-tensorrt (= 4.5.1-b17), nvidia-visionworks (= 4.5.1-b17), nvidia-container (= 4.5.1-b17), nvidia-vpi (= 4.5.1-b17), nvidia-l4t-jetson-multimedia-api (>> 32.5-0), nvidia-l4t-jetson-multimedia-api (<< 32.6-0)
Homepage: http://developer.nvidia.com/jetson
Download-Size: 29.4 kB
APT-Manual-Installed: yes
APT-Sources: https://repo.download.nvidia.com/jetson/t194 r32.5/main arm64 Packages
Description: NVIDIA Jetpack Meta Package

Package: nvidia-jetpack
Version: 4.5-b129
Priority: standard
Section: metapackages
Maintainer: NVIDIA Corporation
Installed-Size: 199 kB
Depends: nvidia-cuda (= 4.5-b129), nvidia-opencv (= 4.5-b129), nvidia-cudnn8 (= 4.5-b129), nvidia-tensorrt (= 4.5-b129), nvidia-visionworks (= 4.5-b129), nvidia-container (= 4.5-b129), nvidia-vpi (= 4.5-b129), nvidia-l4t-jetson-multimedia-api (>> 32.5-0), nvidia-l4t-jetson-multimedia-api (<< 32.6-0)
Homepage: http://developer.nvidia.com/jetson
Download-Size: 29.4 kB
APT-Sources: https://repo.download.nvidia.com/jetson/t194 r32.5/main arm64 Packages
Description: NVIDIA Jetpack Meta Package

Does that give you the necessary information?

YES. Thanks a lot.