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

Debian packages do not properly conflict with distro subpackages mongodb-server, mongodb-dev, and mongodb-clients

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.5.4
    • Affects Version/s: None
    • Component/s: Packaging
    • Labels:
    • Environment:
      Ubuntu precise 64bit
    • ALL
    • Hide

      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)
      
      Show
      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)

      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.

            Assignee:
            ernie.hershey@mongodb.com Ernie Hershey (Inactive)
            Reporter:
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: