[SERVER-17408] Debian installer for 2.6.8 does not include dependent packages when upgrading Created: 27/Feb/15  Updated: 01/Jun/22  Resolved: 01/Jun/22

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

Type: Bug Priority: Major - P3
Reporter: Annette Morrissey (Inactive) Assignee: Alex Neben
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-28536 Ubuntu mongodb-org metapackage does n... Closed
Related
related to SERVER-9016 In redhat, installing old version of ... Closed
Operating System: ALL
Steps To Reproduce:

Follow procedure in mongdb docs for Debian install

http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian/?_ga=1.72416531.1651868158.1409233912

Participants:

 Description   

"apt-get install -y mongodb-org" only upgrades the mongodb-org package, not the mongos, server, shell or tools packages, when upgrading to 2.6.8.

I believe this is because the control file does not specify a version number in the 'Depends' section.

Package: mongodb-org
Conflicts: mongo-10gen, mongo-10gen-enterprise, mongo-10gen-enterprise-server, mongo-10gen-server, mongo-10gen-unstable, mongo-10gen-unstable-enterprise, mongo-10gen-unstable-enterprise-mongos, mongo-10gen-unstable-enterprise-server, mongo-10gen-unstable-enterprise-shell, mongo-10gen-unstable-enterprise-tools, mongo-10gen-unstable-mongos, mongo-10gen-unstable-server, mongo-10gen-unstable-shell, mongo-10gen-unstable-tools, mongo18-10gen, mongo18-10gen-server, mongo20-10gen, mongo20-10gen-server, mongodb, mongodb-server, mongodb-dev, mongodb-clients, mongodb-10gen, mongodb-10gen-enterprise, mongodb-10gen-unstable, mongodb-10gen-unstable-enterprise, mongodb-10gen-unstable-enterprise-mongos, mongodb-10gen-unstable-enterprise-server, mongodb-10gen-unstable-enterprise-shell, mongodb-10gen-unstable-enterprise-tools, mongodb-10gen-unstable-mongos, mongodb-10gen-unstable-server, mongodb-10gen-unstable-shell, mongodb-10gen-unstable-tools, mongodb-enterprise-unstable, mongodb-enterprise-unstable-mongos, mongodb-enterprise-unstable-server, mongodb-enterprise-unstable-shell, mongodb-enterprise-unstable-tools, mongodb-org-unstable, mongodb-org-unstable-mongos, mongodb-org-unstable-shell, mongodb-org-unstable-tools, mongodb-org-unstable-server, mongodb-nightly, mongodb-nightly, mongodb-enterprise, mongodb-enterprise-mongos, mongodb-enterprise-server, mongodb-enterprise-shell, mongodb-enterprise-tools, mongodb-stable, mongodb18-10gen, mongodb20-10gen
Architecture: any
Depends: mongodb-org-shell, mongodb-org-server, mongodb-org-mongos, mongodb-org-tools

https://github.com/mongodb/mongo/blob/master/debian/mongodb-org.control
https://www.debian.org/doc/manuals/debian-faq/ch-pkg_basics.en.html#s-controlfile

The line should be “Depends: mongodb-org-shell (>= 2.6.8)" etc..

regards,
Annette



 Comments   
Comment by Ernie Hershey [ 27/Feb/15 ]

I don't think we can do this without hardcoding the version in the control file for every new version. For rpm's we specify the version dynamically but I don't think debian control files support interpolation in the same way, based on testing I did for SERVER-9016.

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