Can't install Nvidia tools

AFTER THE SUCCESSFUL ALL ACTION BELOW,

curl 
https://developer.download.nvidia.com/hpc-sdk/ubuntu/DEB-GPG-KEY-NVIDIA-HPC-SDK
 | sudo gpg --dearmor -o 
/usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg
echo 'deb 
[signed-by=/usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg] 
https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' | sudo tee
 /etc/apt/sources.list.d/nvhpc.list
sudo apt-get update -y

AT THE END,
sudo apt-get install -y nvhpc-25-3

THE FOLLOWING MESSAGE WAS OCCUR,

"Unable to locate package nvhpc-25-3"!

PLEASE, HELP!

Ubuntu 24.04

My suspicion is that your client is not contacting the repository source correctly.

There’s a couple of things I’d like to check.

Run the command ā€œcat /etc/apt/sources.list.d/nvhpc.listā€ and let’s see what’s exactly in that file.

I’d also like to see the output from ā€œapt search nvhpc-25-3ā€. This is what I get and is what I would expect:
Sorting… Done
Full Text Search… Done
nvhpc-25-3/unknown 25.3-0 amd64
NVIDIA HPC SDK 25.3

nvhpc-25-3-cuda-multi/unknown 25.3-0 amd64
CUDA 11.8 files for NVIDIA HPC SDK 25.3-0

Hello, thank you for response !
ā€œNo such file or directoryā€ in the first case and
Sorting… Done
Full Text Search… Done
in the second case. That all.

Among other things, the file /etc/apt/sources.list.d/nvhpc.list lists where to download the nvhpc sources. So if that file is empty, that’s a major problem.

Does the directory /etc/apt/sources.list.d exist?

This directory exists with the two items inside: ā€œubuntu.soursesā€ and ā€œubuntu.sourses.curtin.origā€.
However, the directory /usr/share/keyrings/ contains a ā€œnvidia-hpcsdk-archive-keyring.gpgā€ file.

I think you need to figure out why this command

echo ā€˜deb
[signed-by=/usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg]
Index of /hpc-sdk/ubuntu/amd64 /’ | sudo tee
/etc/apt/sources.list.d/nvhpc.list

did not actually write the file /etc/apt/sources.list.d/nvhpc.list?

Is the disk full? Permissions? Sudo not configured correctly?

You can always create the file with sudo vi /etc/apt/sources.list.d/nvhpc.list and put this line into that file:

deb [signed-by=/usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg]
Index of /hpc-sdk/ubuntu/amd64 /

That all needs to be on one line and don’t forget the / at the very end of the line.

After all the torment, I decided to repeat the installation process, and everything worked out. THANK YOU FOR YOUR SUPPORT!!!

0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 5,276 MB of archives.
After this operation, 18.0 GB of additional disk space will be used.
Get:1 Index of /hpc-sdk/ubuntu/amd64 nvhpc-25-3 25.3-0 [5,276 MB]
Fetched 5,276 MB in 1min 32s (57.3 MB/s)
Selecting previously unselected package nvhpc-25-3.
(Reading database … 264083 files and directories currently installed.)
Preparing to unpack …/nvhpc-25-3_25.3-0_amd64.deb …
Unpacking nvhpc-25-3 (25.3-0) …
Setting up nvhpc-25-3 (25.3-0) …
malik@malik-HP-ZBook-Power-15-6-inch-G9-Mobile-Workstation-PC:~$