[SERVER-36780] Debian packages for MongoDB 4.0.1 missing Created: 21/Aug/18  Updated: 26/Aug/18  Resolved: 26/Aug/18

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: 4.0.1
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Olav Morken Assignee: Zakhar Kleyman
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian Stretch and Debian Jessie


Operating System: ALL
Steps To Reproduce:

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

Sprint: Build 2018-08-27
Participants:
Story Points: 1

 Description   

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.

 



 Comments   
Comment by Zakhar Kleyman [ 24/Aug/18 ]

Thank you for reporting this.

I've rebuilt Debian 8 repo as well, it should work now.

root@cf9ba3420419:/# apt-get update
Ign http://repo.mongodb.org jessie/mongodb-org/4.0 InRelease
Get:1 http://repo.mongodb.org jessie/mongodb-org/4.0 Release.gpg [801 B]
Get:2 http://security.debian.org jessie/updates InRelease [44.9 kB]
Get:3 http://repo.mongodb.org jessie/mongodb-org/4.0 Release [2395 B]
Get:4 http://security.debian.org jessie/updates/main amd64 Packages [646 kB]
Get:5 http://repo.mongodb.org jessie/mongodb-org/4.0/main amd64 Packages [2801 B]
Ign http://deb.debian.org jessie InRelease
Get:6 http://deb.debian.org jessie-updates InRelease [145 kB]
Get:7 http://deb.debian.org jessie Release.gpg [2420 B]
Get:8 http://deb.debian.org jessie Release [148 kB]
Get:9 http://deb.debian.org jessie-updates/main amd64 Packages [23.0 kB]
Get:10 http://deb.debian.org jessie/main amd64 Packages [9098 kB]
Fetched 10.1 MB in 3s (2529 kB/s)
Reading package lists... Done
root@cf9ba3420419:/# apt-cache policy mongodb-org
mongodb-org:
  Installed: (none)
  Candidate: 4.0.1
  Version table:
     4.0.1 0
        500 http://repo.mongodb.org/apt/debian/ jessie/mongodb-org/4.0/main amd64 Packages
     4.0.0 0
        500 http://repo.mongodb.org/apt/debian/ jessie/mongodb-org/4.0/main amd64 Packages

I apologize for the inconvenience.

Comment by Olav Morken [ 22/Aug/18 ]

Hi,

thank you for looking into this! I am now able to successfully install MongoDB 4.0.1 on Debian Stretch.

Not really a problem for me, since I have migrated away from Debian Jessie, but I should probably mention that Debian Jessie is also missing the 4.0.1-release. To reproduce using Docker, simply replace stretch with jessie in the docker run and echo commands.

 

Comment by Zakhar Kleyman [ 21/Aug/18 ]

Hello,

Thank you for reporting this, I'm able to reproduce the problem.

I've rebuilt the repo and can now install version 4.0.1

Can you please try again?

Generated at Thu Feb 08 04:44:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.