You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), contrary to apt-key deprecation notice #22041
My issue is about the documentation content or website
Type of issue
Information is incorrect
Description
The Docker installation instructions for Ubuntu currently store the GPG key in the deprecated /etc/apt/keyrings/ directory, which results in the following warning when running apt-get update:
Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Proposed Fix:
The installation guide should be updated to use /usr/share/keyrings/ instead of /etc/apt/keyrings/, following best practices for managing repository keys.
* Install an empty /etc/apt/keyrings directory.
This directory is intended to provide an alternative to
/usr/share/keyrings for placing keys used with signed-by.
If future updates to the key will be managed by an apt/dpkg package as recommended below, then it SHOULD be downloaded into /usr/share/keyrings using the same filename that will be provided by the package. If it will be managed locally , it SHOULD be downloaded into /etc/apt/keyrings instead.
That's useful data, but doesn't give us what we need to actually reproduce:
Yeah, if you're seeing this warning, something's wrong on your system. Do you have a simple reproducer?
My guess is you've got some leftover configuration from something else (maybe a previous install that didn't use /etc/apt/keyrings?) and that's what's tripping this warning.
(In my example reproducer above, it's also Ubuntu 24.04, and you can see there's no warnings from apt-get update.)
There hasn't been any activity on this issue for a long time.
If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment.
If not, this issue will be closed in 14 days. This helps our maintainers focus on the active issues.
Prevent issues from auto-closing with a /lifecycle frozen comment.
That's useful data, but doesn't give us what we need to actually reproduce:
Yeah, if you're seeing this warning, something's wrong on your system. Do you have a simple reproducer?
My guess is you've got some leftover configuration from something else (maybe a previous install that didn't use /etc/apt/keyrings?) and that's what's tripping this warning.
(In my example reproducer above, it's also Ubuntu 24.04, and you can see there's no warnings from apt-get update.)
Yes you were right about this, thanks for your help 🙂
Activity
thaJeztah commentedon Feb 16, 2025
Hm; this looks related to;
Quoting that PR's description, which was done after conferring with Debian maintainers (the contributor is a Debian maintainer as well);
cc @tianon
tianon commentedon Feb 18, 2025
Yeah, if you're seeing this warning, something's wrong on your system. Do you have a simple reproducer?
Here's what I get when I try to reproduce using the instructions from https://docs.docker.com/engine/install/ubuntu/ (lots of "setup" output removed for brevity):
(as you can see, no warnings or errors)
ukpagrace commentedon Feb 21, 2025
@tianon sorry for the late reply, I am running it on Ubuntu 24.04.1 LTS
Kernel: Linux 6.8.0-52-generic
Architecture: x86-64
tianon commentedon Feb 24, 2025
That's useful data, but doesn't give us what we need to actually reproduce:
My guess is you've got some leftover configuration from something else (maybe a previous install that didn't use
/etc/apt/keyrings?) and that's what's tripping this warning.(In my example reproducer above, it's also Ubuntu 24.04, and you can see there's no warnings from
apt-get update.)docker-robot commentedon May 25, 2025
There hasn't been any activity on this issue for a long time.
If the problem is still relevant, mark the issue as fresh with a
/remove-lifecycle stalecomment.If not, this issue will be closed in 14 days. This helps our maintainers focus on the active issues.
Prevent issues from auto-closing with a
/lifecycle frozencomment./lifecycle stale
ukpagrace commentedon May 25, 2025
Yes you were right about this, thanks for your help 🙂
thaJeztah commentedon May 25, 2025
Looks like it's resolved; let me close this ticket