E: Package 'nsight-systems' has no installation candidate

Asked by Edmond Febrinicko Armay

edmondium@LAPTOP-1Q9H40K6:~/Linux$ nsys
-bash: nsys: command not found

edmondium@LAPTOP-1Q9H40K6:~/Linux$ apt search nsight-systems
Sorting... Done
Full Text Search... Done
nsight-systems/mantic 2022.4.2.50~12.0.1-2 amd64
  (none)

nsight-systems-target/mantic 2022.4.2.50~12.0.1-2 amd64
  NVIDIA Nsight Systems (target specific libraries)

edmondium@LAPTOP-1Q9H40K6:~/Linux$ sudo apt install nsight-systems
[sudo] password for edmondium:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package nsight-systems is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'nsight-systems' has no installation candidate

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu nvidia-cuda-toolkit Edit question
Assignee:
No assignee Edit question
Solved by:
Edmond Febrinicko Armay
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes, what output do you receive for the following commands:

uname -a
lsb_release -crid
sudo apt update
apt policy nsight-systems
grep -i multiverse /etc/apt/sources.list

Revision history for this message
Edmond Febrinicko Armay (edmondium) said :
#2

edmondium@LAPTOP-1Q9H40K6:~$ uname -a
Linux LAPTOP-1Q9H40K6 5.15.133.1-microsoft-standard-WSL2 #1 SMP Thu Oct 5 21:02:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
edmondium@LAPTOP-1Q9H40K6:~$ lsb_release -crid
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.10
Release: 23.10
Codename: mantic
edmondium@LAPTOP-1Q9H40K6:~$ sudo apt update
[sudo] password for edmondium:
Hit:1 http://security.ubuntu.com/ubuntu mantic-security InRelease
Hit:2 https://repo.arrayfire.com/debian all InRelease
Hit:3 http://archive.ubuntu.com/ubuntu mantic InRelease
Get:4 http://archive.ubuntu.com/ubuntu mantic-updates InRelease [109 kB]
Hit:5 http://archive.ubuntu.com/ubuntu mantic-backports InRelease
Get:6 http://archive.ubuntu.com/ubuntu mantic-updates/main amd64 Packages [86.2 kB]
Get:7 http://archive.ubuntu.com/ubuntu mantic-updates/universe amd64 Packages [28.4 kB]
Fetched 223 kB in 5s (45.9 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
edmondium@LAPTOP-1Q9H40K6:~$ apt policy nsight-systems
nsight-systems:
  Installed: (none)
  Candidate: (none)
  Version table:
     2022.4.2.50~12.0.1-2 -1
        500 http://archive.ubuntu.com/ubuntu mantic/multiverse amd64 Packages
edmondium@LAPTOP-1Q9H40K6:~$ grep -i multiverse /etc/apt/sources.list
## multiverse WILL NOT receive any review or updates from the Ubuntu
deb http://archive.ubuntu.com/ubuntu/ mantic multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy multiverse
deb http://archive.ubuntu.com/ubuntu/ mantic-updates multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates multiverse
deb http://archive.ubuntu.com/ubuntu/ mantic-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ mantic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu/ jammy-security multiverse

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

This is unexpected:

edmondium@LAPTOP-1Q9H40K6:~$ apt policy nsight-systems
nsight-systems:
  Installed: (none)
  Candidate: (none)
  Version table:
     2022.4.2.50~12.0.1-2 -1
        500 http://archive.ubuntu.com/ubuntu mantic/multiverse amd64 Packages

I have never seen an output that lists an available package, but claims that there is no installation candidate.

Have you made specific setting in your apt configuration that may causing this?

Is there any output for the command
grep -A 2 nsight /etc/apt/preferences /etc/apt/preferences.d/*

Revision history for this message
Edmond Febrinicko Armay (edmondium) said :
#4

edmondium@LAPTOP-1Q9H40K6:~$ grep -A 2 nsight /etc/apt/preferences.d/*
/etc/apt/preferences.d/cuda-repository-pin-600:Package: nsight-compute
/etc/apt/preferences.d/cuda-repository-pin-600-Pin: origin *ubuntu.com*
/etc/apt/preferences.d/cuda-repository-pin-600-Pin-Priority: -1
--
/etc/apt/preferences.d/cuda-repository-pin-600:Package: nsight-systems
/etc/apt/preferences.d/cuda-repository-pin-600-Pin: origin *ubuntu.com*
/etc/apt/preferences.d/cuda-repository-pin-600-Pin-Priority: -1

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

This is part of an explanation.
For a reason unknown to me there are files that instruct the package management system not to install the packages listed, including nsight-systems

Do you have any idea, where that file comes from? I assume it is part of NVidia CUDA. Do you (or did you) have NVidia CUDA software installed?

What is the output of
cat /etc/apt/preferences.d/cuda-repository-pin-600

Speculating: Maybe the Ubuntu nsight-* programs and the NVidia CUDA software are incompatible and so NVidia prevents installing them.

Revision history for this message
Edmond Febrinicko Armay (edmondium) said :
#6

edmondium@LAPTOP-1Q9H40K6:~$ sudo apt install nvidia-cuda-toolkit
[sudo] password for edmondium:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
nvidia-cuda-toolkit is already the newest version (12.0.140~12.0.1-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
edmondium@LAPTOP-1Q9H40K6:~$ cat /etc/apt/preferences.d/cuda-repository-pin-600
Package: nsight-compute
Pin: origin *ubuntu.com*
Pin-Priority: -1

Package: nsight-systems
Pin: origin *ubuntu.com*
Pin-Priority: -1

Package: *
Pin: release l=NVIDIA CUDA
Pin-Priority: 600

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

Do you use CUDA?

What output do you receive for the command

apt --simulate install nsight-systems=2022.4.2.50~12.0.1-2 -1

Revision history for this message
Edmond Febrinicko Armay (edmondium) said :
#8

yes, i use cuda.

edmondium@LAPTOP-1Q9H40K6:~$ apt --simulate install nsight-systems=2022.4.2.50~12.0.1-2 -1
E: Command line option '1' [from -1] is not understood in combination with the other options.
edmondium@LAPTOP-1Q9H40K6:~$ apt --simulate install nsight-systems=2022.4.2.50~12.0.1-2
NOTE: This is only a simulation!
      apt needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  ibverbs-providers libibumad3 libibverbs1 libjpeg62 libopengl0 librdmacm1 libucx0 nsight-systems-target
The following NEW packages will be installed:
  ibverbs-providers libibumad3 libibverbs1 libjpeg62 libopengl0 librdmacm1 libucx0 nsight-systems
  nsight-systems-target
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Inst libibverbs1 (47.0-1 Ubuntu:23.10/mantic [amd64])
Inst ibverbs-providers (47.0-1 Ubuntu:23.10/mantic [amd64])
Inst libjpeg62 (1:6b2-3.1 Ubuntu:23.10/mantic [amd64])
Inst librdmacm1 (47.0-1 Ubuntu:23.10/mantic [amd64])
Inst libucx0 (1.15.0~rc3-1 Ubuntu:23.10/mantic [amd64])
Inst libibumad3 (47.0-1 Ubuntu:23.10/mantic [amd64])
Inst nsight-systems-target (2022.4.2.50~12.0.1-2 Ubuntu:23.10/mantic [amd64])
Inst libopengl0 (1.6.0-1 Ubuntu:23.10/mantic [amd64])
Inst nsight-systems (2022.4.2.50~12.0.1-2 Ubuntu:23.10/mantic [amd64])
Conf libibverbs1 (47.0-1 Ubuntu:23.10/mantic [amd64])
Conf ibverbs-providers (47.0-1 Ubuntu:23.10/mantic [amd64])
Conf libjpeg62 (1:6b2-3.1 Ubuntu:23.10/mantic [amd64])
Conf librdmacm1 (47.0-1 Ubuntu:23.10/mantic [amd64])
Conf libucx0 (1.15.0~rc3-1 Ubuntu:23.10/mantic [amd64])
Conf libibumad3 (47.0-1 Ubuntu:23.10/mantic [amd64])
Conf nsight-systems-target (2022.4.2.50~12.0.1-2 Ubuntu:23.10/mantic [amd64])
Conf libopengl0 (1.6.0-1 Ubuntu:23.10/mantic [amd64])
Conf nsight-systems (2022.4.2.50~12.0.1-2 Ubuntu:23.10/mantic [amd64])
edmondium@LAPTOP-1Q9H40K6:~$ nsys
-bash: nsys: command not found

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

Sorry for the error with the "-1", but you corrected it perfectly.

The package management system allows installing packages, even with a negative pin priority (like what's there on your system; see the output of the simulation above).

I do not know what will happen when you install nsight-systems together with CUDA.
If you dare, run the command

sudo apt install nsight-systems=2022.4.2.50~12.0.1-2

Revision history for this message
Edmond Febrinicko Armay (edmondium) said :
#10

edmondium@LAPTOP-1Q9H40K6:~$ sudo apt install nsight-systems=2022.4.2.50~12.0.1-2
[sudo] password for edmondium:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  ibverbs-providers libibumad3 libibverbs1 libjpeg62 libopengl0 librdmacm1 libucx0 nsight-systems-target
The following NEW packages will be installed:
  ibverbs-providers libibumad3 libibverbs1 libjpeg62 libopengl0 librdmacm1 libucx0 nsight-systems nsight-systems-target
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 181 MB of archives.
After this operation, 642 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu mantic/main amd64 libibverbs1 amd64 47.0-1 [67.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu mantic/main amd64 ibverbs-providers amd64 47.0-1 [367 kB]
Get:3 http://archive.ubuntu.com/ubuntu mantic/universe amd64 libjpeg62 amd64 1:6b2-3.1 [83.1 kB]
Get:4 http://archive.ubuntu.com/ubuntu mantic/main amd64 librdmacm1 amd64 47.0-1 [70.7 kB]
Get:5 http://archive.ubuntu.com/ubuntu mantic/universe amd64 libucx0 amd64 1.15.0~rc3-1 [985 kB]
Get:6 http://archive.ubuntu.com/ubuntu mantic/main amd64 libibumad3 amd64 47.0-1 [28.9 kB]
Get:7 http://archive.ubuntu.com/ubuntu mantic/multiverse amd64 nsight-systems-target amd64 2022.4.2.50~12.0.1-2 [35.3 MB]
Get:8 http://archive.ubuntu.com/ubuntu mantic/main amd64 libopengl0 amd64 1.6.0-1 [34.1 kB]
Get:9 http://archive.ubuntu.com/ubuntu mantic/multiverse amd64 nsight-systems amd64 2022.4.2.50~12.0.1-2 [144 MB]
Fetched 181 MB in 1min 5s (2,805 kB/s)
Selecting previously unselected package libibverbs1:amd64.
(Reading database ... 129209 files and directories currently installed.)
Preparing to unpack .../0-libibverbs1_47.0-1_amd64.deb ...
Unpacking libibverbs1:amd64 (47.0-1) ...
Selecting previously unselected package ibverbs-providers:amd64.
Preparing to unpack .../1-ibverbs-providers_47.0-1_amd64.deb ...
Unpacking ibverbs-providers:amd64 (47.0-1) ...
Selecting previously unselected package libjpeg62:amd64.
Preparing to unpack .../2-libjpeg62_1%3a6b2-3.1_amd64.deb ...
Unpacking libjpeg62:amd64 (1:6b2-3.1) ...
Selecting previously unselected package librdmacm1:amd64.
Preparing to unpack .../3-librdmacm1_47.0-1_amd64.deb ...
Unpacking librdmacm1:amd64 (47.0-1) ...
Selecting previously unselected package libucx0:amd64.
Preparing to unpack .../4-libucx0_1.15.0~rc3-1_amd64.deb ...
Unpacking libucx0:amd64 (1.15.0~rc3-1) ...
Selecting previously unselected package libibumad3:amd64.
Preparing to unpack .../5-libibumad3_47.0-1_amd64.deb ...
Unpacking libibumad3:amd64 (47.0-1) ...
Selecting previously unselected package nsight-systems-target:amd64.
Preparing to unpack .../6-nsight-systems-target_2022.4.2.50~12.0.1-2_amd64.deb ...
Unpacking nsight-systems-target:amd64 (2022.4.2.50~12.0.1-2) ...
Selecting previously unselected package libopengl0:amd64.
Preparing to unpack .../7-libopengl0_1.6.0-1_amd64.deb ...
Unpacking libopengl0:amd64 (1.6.0-1) ...
Selecting previously unselected package nsight-systems.
Preparing to unpack .../8-nsight-systems_2022.4.2.50~12.0.1-2_amd64.deb ...
Unpacking nsight-systems (2022.4.2.50~12.0.1-2) ...
Setting up libibverbs1:amd64 (47.0-1) ...
Setting up libjpeg62:amd64 (1:6b2-3.1) ...
Setting up ibverbs-providers:amd64 (47.0-1) ...
Setting up libibumad3:amd64 (47.0-1) ...
Setting up libopengl0:amd64 (1.6.0-1) ...
Setting up librdmacm1:amd64 (47.0-1) ...
Setting up libucx0:amd64 (1.15.0~rc3-1) ...
Setting up nsight-systems-target:amd64 (2022.4.2.50~12.0.1-2) ...
Setting up nsight-systems (2022.4.2.50~12.0.1-2) ...
Processing triggers for libc-bin (2.38-1ubuntu6) ...
/sbin/ldconfig.real: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link

Scanning processes...

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
edmondium@LAPTOP-1Q9H40K6:~$ nsys
 usage: nsys [--version] [--help] <command> [<args>] [application] [<application args>]

 The most commonly used nsys commands are:
        profile Run an application and capture its profile into a QDSTRM file.
        launch Launch an application ready to be profiled.
        start Start a profiling session.
        stop Stop a profiling session and capture its profile into a QDSTRM file.
        cancel Cancel a profiling session and discard any collected data.
        stats Generate statistics from an existing nsys-rep or SQLite file.
        status Provide current status of CLI or the collection environment.
        shutdown Disconnect launched processes from the profiler and shutdown the profiler.
        sessions list List active sessions.
        export Export nsys-rep file into another format.
        analyze Run rules on an existing nsys-rep or SQLITE file.
        nvprof Translate nvprof switches to nsys switches and execute collection.

 Use 'nsys --help <command>' for more information about a specific command.

 To run a basic profiling session: nsys profile ./my-application
 For more details see "Profiling from the CLI" at https://docs.nvidia.com/nsight-systems
edmondium@LAPTOP-1Q9H40K6:~$ nsys-ui
QStandardPaths: wrong permissions on runtime directory /run/user/1000/, 0755 instead of 0700
QStandardPaths: wrong permissions on runtime directory /run/user/1000/, 0755 instead of 0700
OpenGL version: "4.5 (Compatibility Profile) Mesa 23.2.1-1ubuntu3"
QStandardPaths: wrong permissions on runtime directory /run/user/1000/, 0755 instead of 0700

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

A very minor additional remark, not related to your problem:

deb http://archive.ubuntu.com/ubuntu/ mantic multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy multiverse
etc.

You should modify the "deb-src" lines (that are commented out) in the /etc/apt/sources.list configuration file and replace "jammy" by "mantic".
This is a precaution, if you want to enable source download somewhere in future.

Revision history for this message
Manfred Hampl (m-hampl) said :
#12

And another comment:

According to https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#environment-setup there seems to be a NVidia-provided nsys version in /opt/nvidia/nsight-compute/ which maybe is the reason that the Ubuntu-provided version is set not to be automatically installed.

Revision history for this message
rocky5566 (rockyr) said :
#13

"Facing the 'nsight-systems' installation issue too. Did you find a workaround or solution? Any tips would be much appreciated!"