Since a few days, I suddenly get errors trying to use the CUDA repositories on Ubuntu 20.04.
Following the steps from the instructions on a fresh Ubuntu 20.04 system:
apt-get update
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Ign:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease
Get:6 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 Release [697 B]
Get:7 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 Release.gpg [836 B]
Ign:8 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 Packages
Ign:8 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 Packages
Ign:8 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 Packages
Err:8 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 Packages
404 Not Found [IP: XXXXXX]
Fetched 330 kB in 1s (392 kB/s)
Reading package lists...
E: Failed to fetch https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/by-hash/SHA256/751939d95516afc289908a19e447f0acc1506367f72ed356431a2b1a469cc8ca 404 Not Found [IP: XXXXXX]
E: Some index files failed to download. They have been ignored, or old ones used instead.
True enough, the file https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/by-hash/SHA256/751939d95516afc289908a19e447f0acc1506367f72ed356431a2b1a469cc8ca can not be fetched.
and the hash mentioned above. Am I the only one seeing this, or are the Ubuntu 20.04 repositories broken / is the Acquire-By-Hash feature on mistakenly even though the repo is deployed without it?
Thanks, indeed that also works for me! It also fixes things on other Debian-based OSs, I observe the same on Debian 10.
I wonder where’s the best place to raise this as a bug to get it fixed in the actual repository?
Thanks!
Indeed, it seems fixed for Focal now, it seems they have disabled the Acquire-By-Hash setting in the Release file. The Debian 10 repos, however, still have by-hash active:
Then a couple of days ago, it suddenly stopped working in other regions (with no CDN redirect). As such, for the cuDNN and TensorRT releases that went out yesterday (for select distros), I set this property to False.
Today, I fixed this for the remaining .deb repositories: Debian 10, Ubuntu 14.04, and WSL.