ConfigurationError: Server at 127.0.0.1:27017 reports wire version 0, but this version of PyMongo requires at least 2 (MongoDB 2.6)
It's pretty annoying and weird issue.
But this problem is solved with just downgrading pymongo
library for me.
pip install pymongo==3.4.0
Found answer in this : http://d-prototype.com/archives/10939
I am having the same issue using version 2.4.10 on a Raspberry Pi 3. I found interesting information here: https://jira.mongodb.org/browse/SERVER-26715
According to the above Jira task, it seems that this is a bug of MongoDB that was fixed in version 3.4. However, I found that comment stating that 3.4 is not supported on Raspbian because it is a 32-bits OS. This is confirmed here... we can only install 3.2 on Raspbian now apparently.
An alternative would be to install 64bits SuSE on the Pi or run MongoDB 3.4 in Docker.
Let me know if you have found something else...
First you change the server from ubuntu software center follow step
1- Search Software & update in ubuntu software center
2- Select Download from
select Other
then right side select Select best server
it will take some time if it's complete
try to re install mongodb from this command
Step 1
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
Step 2
sudo apt-get update
step 3
sudo apt-get install -y mongodb-org