NVIDIA / nvidia-container-toolkit

Build and run containers leveraging NVIDIA GPUs
Apache License 2.0
2.18k stars 237 forks source link

install by apt get Unsupported distribution error. #607

Open TangBoheng opened 1 month ago

TangBoheng commented 1 month ago

I am following the installation guide to install nvidia-container-toolkit and when I update the apt source I got these error, it seems that the release of ubuntu18.04 doesn't exist anymore. Is there any other way to install nvidia-container-toolkit?

Ign:12 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64  InRelease                                       
Hit:13 http://mirrors.aliyun.com/ubuntu bionic-security InRelease                                        
Ign:14 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64  InRelease             
Hit:15 http://mirrors.aliyun.com/ubuntu bionic-updates InRelease                                        
Hit:16 http://mirrors.aliyun.com/ubuntu bionic-proposed InRelease                                
Ign:17 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64  InRelease 
Hit:18 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal InRelease
Hit:19 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease         
Err:20 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64  Release
  Could not handshake: Error in the pull function. 
Err:21 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64  Release
  Could not handshake: Error in the pull function. 
Err:22 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64  Release
  Could not handshake: Error in the pull function. 
Reading package lists... Done                        
E: The repository 'https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64  Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64  Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64  Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
### Tasks
elezar commented 1 month ago

Hi @TangBoheng. Which installation guide are you following?

I see that your repository URLs still refer to ubuntu18.04. The distribution-specific packages were deprecated with the v1.14.0 release and we have moved to generic deb packages.

Please remove and NVIDIA Container Toolkit repository lists from /etc/apt/sources.list.d and follow the instructions outlined in the updated documentation: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html#installing-the-nvidia-container-toolkit