-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add check/mkdir for apt keyrings in nvidia-container role #226
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot find any evidence that this directory is used on versions of apt below 2.4
https://manpages.debian.org/bookworm/apt/apt-key.8.en.html#DEPRECATION
Debian 11 uses apt 2.2.4. e.g. compare
https://manpages.debian.org/bullseye/apt/sources.list.5.en.html
and
https://manpages.debian.org/bookworm/apt/sources.list.5.en.html
Can you show me the output of apt-get update && apt-get install nvidia-container-toolkit
on Debian 11 and/or any other OS using a version of apt below 2.4?
It doesn't show up in the GitHub PR diff, but after expanding I see that you're pointing to the directory explicitly with |
Yes that is why I think the code works, regardless of the apt version (at least the versions present on the relevant OS images). |
I would still like to see the output of |
Relevant output:
This output was modified to remove some error I made in retrieving the key correctly and creating a poorly formed sources file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. The approach surrounding binary/ASCII key files has been in flux as have the recommendations surrounding storage of non-packaged keys. I think this threads the needle appropriately across old and new Debian + derivatives.
Adds keyring directory for OSs that do not have it by default. Tested on Ubuntu 20.04 and 22.04, Deb 11 and12.