Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-36780

Debian packages for MongoDB 4.0.1 missing

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 4.0.1
    • Component/s: Packaging
    • Labels:
      None
    • Environment:
      Debian Stretch and Debian Jessie
    • ALL
    • Hide

      Reproduced in a Docker container:

      $ sudo docker run --rm -ti debian:stretch

      First add the required packages to set up the APT repository:

      # apt-get update
      [...]
      # apt-get install -y --no-install-recommends dirmngr gnupg2 sudo
      [...]

      Then follow the steps specified in the documentation for installing a specific release of MongoDB:

      # sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
      Executing: /tmp/apt-key-gpghome.nCpERTrkFs/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
      gpg: key 68818C72E52529D4: public key "MongoDB 4.0 Release Signing Key <packaging@mongodb.com>" imported
      gpg: Total number processed: 1
      gpg: imported: 1

      # echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
      deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main

      # sudo apt-get update
      Ign:1 http://deb.debian.org/debian stretch InRelease
      Hit:2 http://security.debian.org stretch/updates InRelease
      Hit:3 http://deb.debian.org/debian stretch-updates InRelease
      Hit:4 http://deb.debian.org/debian stretch Release
      Ign:6 http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 InRelease
      Get:7 http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 Release [1492 B]
      Get:8 http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 Release.gpg [801 B]
      Get:9 http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0/main amd64 Packages [2132 B]
      Fetched 4425 B in 0s (5681 B/s)
      Reading package lists... Done

      # sudo apt-get install -y mongodb-org=4.0.1 mongodb-org-server=4.0.1 mongodb-org-shell=4.0.1 mongodb-org-mongos=4.0.1 mongodb-org-tools=4.0.1
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      E: Version '4.0.1' for 'mongodb-org' was not found
      E: Version '4.0.1' for 'mongodb-org-server' was not found
      E: Version '4.0.1' for 'mongodb-org-shell' was not found
      E: Version '4.0.1' for 'mongodb-org-mongos' was not found
      E: Version '4.0.1' for 'mongodb-org-tools' was not found

      Show
      Reproduced in a Docker container: $ sudo docker run --rm -ti debian:stretch First add the required packages to set up the APT repository: # apt-get update [...] # apt-get install -y --no-install-recommends dirmngr gnupg2 sudo [...] Then follow the steps specified in the documentation for installing a specific release of MongoDB: # sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4 Executing: /tmp/apt-key-gpghome.nCpERTrkFs/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4 gpg: key 68818C72E52529D4: public key "MongoDB 4.0 Release Signing Key <packaging@mongodb.com>" imported gpg: Total number processed: 1 gpg: imported: 1 # echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main # sudo apt-get update Ign:1 http://deb.debian.org/debian stretch InRelease Hit:2 http://security.debian.org stretch/updates InRelease Hit:3 http://deb.debian.org/debian stretch-updates InRelease Hit:4 http://deb.debian.org/debian stretch Release Ign:6 http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 InRelease Get:7 http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 Release [1492 B] Get:8 http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 Release.gpg [801 B] Get:9 http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0/main amd64 Packages [2132 B] Fetched 4425 B in 0s (5681 B/s) Reading package lists... Done # sudo apt-get install -y mongodb-org=4.0.1 mongodb-org-server=4.0.1 mongodb-org-shell=4.0.1 mongodb-org-mongos=4.0.1 mongodb-org-tools=4.0.1 Reading package lists... Done Building dependency tree Reading state information... Done E: Version '4.0.1' for 'mongodb-org' was not found E: Version '4.0.1' for 'mongodb-org-server' was not found E: Version '4.0.1' for 'mongodb-org-shell' was not found E: Version '4.0.1' for 'mongodb-org-mongos' was not found E: Version '4.0.1' for 'mongodb-org-tools' was not found
    • Build 2018-08-27
    • 1

      MongoDB 4.0.1 was released 6 August 2018 and the installation documentation refers to version 4.0.1 under Install a specific release of MongoDB, but this version does not appear to exist in the APT repository:

      $ apt-cache policy mongodb-org
      mongodb-org:
        Installed: (none)
        Candidate: 4.0.0
        Version table:
           4.0.0 500
              500 http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0/main amd64 Packages

      This appears to apply to both Debian Stretch and Debian Jessie. Looking at the APT release file for Stretch and Jessie, they do not appear to have been updated since the end of June.

       

            Assignee:
            zakhar.kleyman@mongodb.com Zakhar Kleyman
            Reporter:
            olavmrk Olav Morken
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: