Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-15636

[SERVER] Instructions for installing PGP keys on apt-based distros should change

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: 6.0.0, 6.1.0
    • Component/s: manual, Server
    • 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`.

            Assignee:
            kenneth.dyer@mongodb.com Kenneth Dyer
            Reporter:
            dylan.richardson@mongodb.com Dylan Richardson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              1 year, 2 weeks, 3 days ago