NVIDIA / nvidia-container-toolkit

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

can't install on suse enterprise l;inux #608

Open Masber opened 1 month ago

Masber commented 1 month ago

Dear nvidia container community,

I am trying to install the libnvidia-continer repository on my SEL 15.5 withotu success. I followed the instructions https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html#installing-with-zypper

$ zypper ar https://nvidia.github.io/libnvidia-container/stable/rpm/nvidia-container-toolkit.repo nvidia
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
Adding repository 'nvidia' ....................................................................................................................................................................................................................................................[done]
Warning: GPG checking is disabled in configuration of repository 'nvidia'. Integrity and origin of packages cannot be verified.
Repository 'nvidia' successfully added

URI         : https://nvidia.github.io/libnvidia-container/stable/rpm/nvidia-container-toolkit.repo
Enabled     : Yes
GPG Check   : No
Autorefresh : No
Priority    : 99 (default priority)

Repository priorities in effect:                                                                                                                                                                                                                     (See 'zypper lr -P' for details)
       1 (raised priority)  :  1 repository
       2 (raised priority)  :  2 repositories
       3 (raised priority)  : 15 repositories
       5 (raised priority)  :  1 repository
       9 (raised priority)  :  2 repositories
      99 (default priority) : 17 repositories

and I am getting the following error when trying to refersh the repo:

$ zypper  refresh nvidia
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
Retrieving repository 'nvidia' metadata ......................................................................................................................................................................................................................................[error]
Repository 'nvidia' is invalid.
[nvidia|https://nvidia.github.io/libnvidia-container/stable/rpm/nvidia-container-toolkit.repo] Valid metadata not found at specified URL
History:
 - [nvidia|https://nvidia.github.io/libnvidia-container/stable/rpm/nvidia-container-toolkit.repo] Repository type can't be determined.

Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'nvidia' because of the above error.
Could not refresh the repositories because of errors.

Any idea on how to install libnvidia-container repos in Suse Enterprise Linux 15.5?

thank yo very much

elezar commented 1 month ago

I have just tested in an openSUSE Leap 15.6 container and run the following from our instructions:

sudo zypper ar https://nvidia.github.io/libnvidia-container/stable/rpm/nvidia-container-toolkit.repo

Note that this refers to two repos:

curl -s https://nvidia.github.io/libnvidia-container/stable/rpm/nvidia-container-toolkit.repo | grep name=
name=nvidia-container-toolkit
name=nvidia-container-toolkit-experimental

which may be causing your issues.

Running:

$ zypper refresh nvidia-container-toolkit
Repository 'nvidia-container-toolkit' is up to date.
Specified repositories have been refreshed.

succeeds.