-
Type: Task
-
Resolution: Duplicate
-
Priority: Major - P3
-
Affects Version/s: 6.0.0, 6.1.0
-
Labels:None
My understanding based on this Github issue is that `apt-key` will not be available starting in Debian 12, which is coming sometime early next year. We should make sure all of our documentation is updated for this change. I believe it is possible to migrate this documentation before that date, as the new recommended pattern should work for all of the versions of Debian/Ubuntu we support.
New recommended steps based on this Debian wiki article:
Install our binary (NOT ascii-armored, probably worth a callout) key to a local keyring
wget -0 /usr/share/keyrings/mongodb-org-6.0.gpg https://pgp.mongodb.com/server-6.0.pub
Install our repository locally, noting which specific key should be used for validation
echo "deb [signed-by=/usr/share/keyrings/mongodb-org-6.0.gpg] http://repo.mongodb.org/apt/debian buster/mongodb-org/6.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
My guess is that there are more projects other than the server that should have their documentation updated, but I could only easily find the server's instructions for this. I was having quite a bit of trouble finding official Debian sources announcing this decision, but our current installation instructions do emit a deprecation warning about `apt-key`.