[SERVER-11196] Debian packages do not properly conflict with distro subpackages mongodb-server, mongodb-dev, and mongodb-clients Created: 15/Oct/13  Updated: 11/Jul/16  Resolved: 20/Oct/13

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

Type: Bug Priority: Minor - P4
Reporter: David Storch Assignee: Ernie Hershey
Resolution: Done Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu precise 64bit


Issue Links:
Duplicate
is duplicated by SERVER-8354 Debian package fails to install if mo... Closed
is duplicated by SERVER-6910 In the .deb should conflict with mong... Closed
Gantt Dependency
Operating System: ALL
Steps To Reproduce:

Example for mongo-org-unstable-server not conflicting with mongodb-server:

vagrant@precise64:~$ sudo apt-get install mongodb-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libboost-filesystem1.46.1 libboost-program-options1.46.1 libboost-system1.46.1
  libboost-thread1.46.1 libpcrecpp0 mongodb-clients
The following NEW packages will be installed:
  libboost-filesystem1.46.1 libboost-program-options1.46.1 libboost-system1.46.1
  libboost-thread1.46.1 libpcrecpp0 mongodb-clients mongodb-server
0 upgraded, 7 newly installed, 0 to remove and 154 not upgraded.
Need to get 20.9 MB of archives.
After this operation, 50.8 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main libpcrecpp0 amd64 8.12-4 [16.2 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/universe libboost-system1.46.1 amd64 1.46.1-7ubuntu3 [14.6 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise/universe libboost-filesystem1.46.1 amd64 1.46.1-7ubuntu3 [50.7 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ precise/main libboost-program-options1.46.1 amd64 1.46.1-7ubuntu3 [146 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ precise/universe libboost-thread1.46.1 amd64 1.46.1-7ubuntu3 [39.5 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ precise-updates/universe mongodb-clients amd64 1:2.0.4-1ubuntu2.1 [16.5 MB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ precise-updates/universe mongodb-server amd64 1:2.0.4-1ubuntu2.1 [4,167 kB]
Fetched 20.9 MB in 3s (6,317 kB/s)
Selecting previously unselected package libpcrecpp0.
(Reading database ... 51095 files and directories currently installed.)
Unpacking libpcrecpp0 (from .../libpcrecpp0_8.12-4_amd64.deb) ...
Selecting previously unselected package libboost-system1.46.1.
Unpacking libboost-system1.46.1 (from .../libboost-system1.46.1_1.46.1-7ubuntu3_amd64.deb) ...
Selecting previously unselected package libboost-filesystem1.46.1.
Unpacking libboost-filesystem1.46.1 (from .../libboost-filesystem1.46.1_1.46.1-7ubuntu3_amd64.deb) ...
Selecting previously unselected package libboost-program-options1.46.1.
Unpacking libboost-program-options1.46.1 (from .../libboost-program-options1.46.1_1.46.1-7ubuntu3_amd64.deb) ...
Selecting previously unselected package libboost-thread1.46.1.
Unpacking libboost-thread1.46.1 (from .../libboost-thread1.46.1_1.46.1-7ubuntu3_amd64.deb) ...
Selecting previously unselected package mongodb-clients.
Unpacking mongodb-clients (from .../mongodb-clients_1%3a2.0.4-1ubuntu2.1_amd64.deb) ...
Selecting previously unselected package mongodb-server.
Unpacking mongodb-server (from .../mongodb-server_1%3a2.0.4-1ubuntu2.1_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up libpcrecpp0 (8.12-4) ...
Setting up libboost-system1.46.1 (1.46.1-7ubuntu3) ...
Setting up libboost-filesystem1.46.1 (1.46.1-7ubuntu3) ...
Setting up libboost-program-options1.46.1 (1.46.1-7ubuntu3) ...
Setting up libboost-thread1.46.1 (1.46.1-7ubuntu3) ...
Setting up mongodb-clients (1:2.0.4-1ubuntu2.1) ...
Setting up mongodb-server (1:2.0.4-1ubuntu2.1) ...
Adding system user `mongodb' (UID 106) ...
Adding new user `mongodb' (UID 106) with group `nogroup' ...
Not creating home directory `/home/mongodb'.
Adding group `mongodb' (GID 111) ...
Done.
Adding user `mongodb' to group `mongodb' ...
Adding user mongodb to group mongodb
Done.
mongodb start/running, process 1676
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
vagrant@precise64:~$ sudo apt-get install mongodb-org-unstable-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  mongodb-org-unstable-server
0 upgraded, 1 newly installed, 0 to remove and 154 not upgraded.
Need to get 8,094 kB of archives.
After this operation, 20.6 MB of additional disk space will be used.
Get:1 http://distro-deb2.build.10gen.cc/rebrand/ubuntu-upstart/ dist/mongodb mongodb-org-unstable-server amd64 2.5.2 [8,094 kB]
Fetched 8,094 kB in 1s (6,291 kB/s)
Selecting previously unselected package mongodb-org-unstable-server.
(Reading database ... 51166 files and directories currently installed.)
Unpacking mongodb-org-unstable-server (from .../mongodb-org-unstable-server_2.5.2_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/mongodb-org-unstable-server_2.5.2_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/mongod', which is also in package mongodb-server 1:2.0.4-1ubuntu2.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/mongodb-org-unstable-server_2.5.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Participants:

 Description   

The .deb control files are missing a few more entries in the "Conflicts" field. Each of our new subpackages (e.g. mongodb-org-unstable-server, mongodb-org-unstable-tools, etc.) conflicts with the distro metapackage "mongodb", but fails to conflict with mongodb-server, mongodb-dev, and mongodb-clients.



 Comments   
Comment by auto [ 20/Oct/13 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-11196 ensure .deb and rpm packages conflict with mongodb-server, mongodb-dev, and mongodb-clients

Signed-off-by: Ernie Hershey <ernie.hershey@10gen.com>
Branch: master
https://github.com/mongodb/mongo/commit/04c63390531b22857bd8110761b5cf631278f9b6

Comment by David Storch [ 18/Oct/13 ]

Pull request containing a fix: https://github.com/mongodb/mongo/pull/526

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