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

mongodb is uninstallable on Debian Squeeze from the official repos

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Blocker - P1 Blocker - P1
    • None
    • Affects Version/s: 2.2.0, 2.2.1, 2.2.2, 2.2.3
    • Component/s: Packaging
    • Environment:
      Debian Squeeze
    • Linux
    • Hide
      1. apt-get install mongodb-10gen
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        The following NEW packages will be installed:
        mongodb-10gen
        0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
        Need to get 0 B/51.9 MB of archives.
        After this operation, 127 MB of additional disk space will be used.
        Info: starting unrap-all...
        Selecting previously deselected package mongodb-10gen.
        (Reading database ... 32675 files and directories currently installed.)
        Unpacking mongodb-10gen (from .../mongodb-10gen_2.2.3_amd64.deb) ...
        Processing triggers for man-db ...
        Setting up mongodb-10gen (2.2.3) ...
        Starting database: mongodbstart-stop-daemon: unrecognized option '--interleave=all'
        Try 'start-stop-daemon --help' for more information.
        failed!
        invoke-rc.d: initscript mongodb, action "start" failed.
        dpkg: error processing mongodb-10gen (--configure):
        subprocess installed post-installation script returned error exit status 1
        configured to not write apport reports
        Errors were encountered while processing:
        mongodb-10gen

      E: Sub-process /usr/bin/dpkg returned an error code (1)

      Show
      apt-get install mongodb-10gen Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: mongodb-10gen 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/51.9 MB of archives. After this operation, 127 MB of additional disk space will be used. Info: starting unrap-all... Selecting previously deselected package mongodb-10gen. (Reading database ... 32675 files and directories currently installed.) Unpacking mongodb-10gen (from .../mongodb-10gen_2.2.3_amd64.deb) ... Processing triggers for man-db ... Setting up mongodb-10gen (2.2.3) ... Starting database: mongodbstart-stop-daemon: unrecognized option '--interleave=all' Try 'start-stop-daemon --help' for more information. failed! invoke-rc.d: initscript mongodb, action "start" failed. dpkg: error processing mongodb-10gen (--configure): subprocess installed post-installation script returned error exit status 1 configured to not write apport reports Errors were encountered while processing: mongodb-10gen E: Sub-process /usr/bin/dpkg returned an error code (1)

      Due to bug in /etc/init.d/mongodb script mongodb installation process (as explained in the official mongodb documentation) fails with following error:

      Setting up mongodb-10gen (2.2.3) ...
      Starting database: mongodbstart-stop-daemon: unrecognized option '--interleave=all'
      Try 'start-stop-daemon --help' for more information.
      failed!
      invoke-rc.d: initscript mongodb, action "start" failed.
      dpkg: error processing mongodb-10gen (--configure):
      subprocess installed post-installation script returned error exit status 1
      configured to not write apport reports
      Errors were encountered while processing:
      mongodb-10gen

      The patch provided fixes this while still chekcing for numactl availability.

        1. init.d.patch
          0.9 kB
          Mario Splivalo

            Assignee:
            ernie.hershey@mongodb.com Ernie Hershey (Inactive)
            Reporter:
            mmike Mario Splivalo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: