Public bug reported: I can't run the mongodump utility in Ubuntu (from the internal packages).
I tried running a dump this way: mongodump -u xxxx -p xxxx --host somehost.com:27017 -d some_db -o backup And I got this reply: Error parsing command line: too many positional options have been specified on the command line try 'mongodump --help' for more information Then I purged the package using: apt purge mongodb And then added the official mongo repo as explained on the mongo website: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ Ran the same command again and voila! it worked. I tried search for the "too many positional" error and found out it might have something to do with some problematic minus or em-dash/en-dash but it's not the case because I wrote everything manually and the same command exactly worked with the official mongodb-org by mongo. ** Affects: mongodb (Ubuntu) Importance: Undecided Status: New ** Tags: mongo ** Tags added: mongo ** Description changed: I can't run the mongodump utility in Ubuntu (from the internal packages). I tried running a dump this way: mongodump -u xxxx -p xxxx --host somehost.com:27017 -d some_db -o backup And I got this reply: Error parsing command line: too many positional options have been specified on the command line try 'mongodump --help' for more information - Then I purged the package using: apt purge mongodb And then added the official mongo repo as explained on the mongo website: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ - Ran the same command again and viola! it worked. + Ran the same command again and voila! it worked. I tried search for the "too many positional" error and found out it might have something to do with some problematic minus or em-dash/en-dash but it's not the case because I wrote everything manually and the same command exactly worked with the official mongodb-org by mongo. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1668903 Title: mongodump "too many positional options have been specified on the command line" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mongodb/+bug/1668903/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs