HPC-SDK Ubuntu APT Repository instructions fail with 404

Following the instructions for installing the hpc-sdk according to the website documentation fails with 404 error.

The error seems to be related to the following:

  1. In the repository’s Packages index, every package is listed with a leading ./ in the filename. (e.g., Filename: ./nvhpc-26-3_26.3.0_amd64.deb ).
  2. Apt constructs the download URL, by concatinating the base URL and the filename verbatim, requesting the raw path: /hpc-sdk/ubuntu/amd64/./nvhpc-26-3_26.3-0_amd64.deb
  3. It seems that S3 treats /./ as a literal part of the S3 object key. Since the actual S3 object which does not exist and fails.

Using wget, or curl works as expected to download the packages.

The issue can be reproduced by the following one liner:

docker run --rm -it ubuntu:22.04 bash -c " \
apt-get update && apt-get install -y curl gnupg sudo && \
curl -sL 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] Index of /hpc-sdk/ubuntu/amd64 /’ | sudo tee /etc/apt/sources.list.d/nvhpc.list && \
sudo apt-get update -y && \
sudo apt-get install -y nvhpc-26-3 \
"

This has been reported already and we are working on a fix. It should be ready sometime today after it is tested.

This issue has been resolved. Please try again and let us know if you still need further help.

Works now, thank you for the fix