[SERVER-28536] Ubuntu mongodb-org metapackage does not have version deps pinned Created: 29/Mar/17  Updated: 21/Jun/17  Resolved: 04/Apr/17

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: 3.4.2, 3.4.3
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Elan Kugelmass Assignee: Brian Samek
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 14.04


Issue Links:
Documented
Duplicate
duplicates SERVER-17408 Debian installer for 2.6.8 does not i... Closed
duplicates SERVER-24459 Dependencies from meta package do not... Closed
Related
related to SERVER-9016 In redhat, installing old version of ... Closed
Operating System: ALL
Participants:

 Description   

Expected:
apt-get install mongodb-org=3.4.2 installs mongodb-org-shell, -server, -mongos, -tools, etc. at 3.4.2

Actual:
apt-get install mongodb-org=3.4.2 installs mongodb-org-shell, -server, -mongos, -tools, etc. at the latest version (3.4.3)

Diagnosis: The dependencies are not correctly defined in the .deb file. See apt-cache showpkg mongodb-org

apt-sources entry:
deb [arch=amd64] http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.4 multiverse



 Comments   
Comment by Brian Samek [ 04/Apr/17 ]

Since there appear to be other tickets about this issue, I am going to resolve this as a duplicate. Please watch SERVER-17408 for any updates.

Comment by Brian Samek [ 04/Apr/17 ]

We don't pin dependencies for .deb packages because dpkg-buildpackage does not support defining macros. In contrast, rpmbuild has a --define parameter. It looks like we mention this in the docs for 3.2 and earlier:

If you only install mongodb-org=3.2.12 and do not include the component packages, the latest version of each MongoDB package will be installed regardless of what version you specified.

You can use a similar command to the one mentioned on the page to install MongoDB and its dependencies at 3.4.2.

sudo apt-get install -y mongodb-org=3.4.2 mongodb-org-server=3.4.2 mongodb-org-shell=3.4.2 mongodb-org-mongos=3.4.2 mongodb-org-tools=3.4.2

This is, however, missing in the 3.4 documentation. I have filed an internal ticket with our docs team to add it.

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