I cant figure out how to install mongodb on ubuntu server running on pi 4 because the official documentation is outdated and all tutorials are telling me to add the key and the update but that doesnt work.
Related
I have tried installing MongoDB on my system by following many tutorials but none of them actually work.
On the official MongoDB documentation they have not provided any information for installation on Ubuntu 22.10 or 22.04lts, there is only installation guide for ubuntu 20.04 and below.
I am running ubuntu 22.10 and I really need to install MongoDB to continue my web development.
Please Help.
I have tried adding repositories.
Referred to these links,
but none of them seems to work.
https://tutorialforlinux.com/2022/11/19/mongodb-ubuntu-22-10-installation-step-by-step/3/
https://techviewleo.com/install-mongodb-on-ubuntu-linux/
Terminal Screenshot
I am trying to run a MongoDB server with a node.js server and express on a Raspberry Pi 4. I have installed the MongoDB server using sudo apt-get install mongodb. When I try to start the node server I get the following error.
MongoNetworkError: failed to connect to server [localhost:27017] on first connect [MongoError: Server at localhost:27017 reports maximum wire version 0, but this version of the Node.js Driver requires at least 2 (MongoDB 2.6)]
I have read that it is because of the MongoDB version which is db version v2.4.14. I have tried updating by removing the old mongodb and following instructions at https://hevodata.com/blog/install-mongodb-on-ubuntu/ and doing sudo apt-get install -y mongodb-org, however I then get this error on the terminal:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mongodb-org
As my best known,
mongodb 4 need to run on 64-bit Linux.
If you are using Raspbian or similar OS installed by noobs,
it should be all in 32-bit.
You can only use some old version of mongodb (latest version of mongodb 32 bit is 3.2),
or
you can try to install some 64-bit Linux on your own.
You can try the method on this website.
https://andyfelong.com/2019/03/mongodb-4-0-6-64-bit-on-raspberry-pi-3/
Keyserver not available error.
I am trying to install MongoDB on my system. I try to follow the steps given in the following website - Click Here
I am getting the 'keyserver not available' error as given in the image above due to which I am not able to install MongoDB on my Ubuntu 18.04 LTS.
Always try to refer the official documentation for these purposes. The article you have linked is an outdated one and it's actually trying to install xenial version on Bionice beaver, which can be done but not recommended.
Use the below offical mongodb documentation to install the MongoDB community version on your Ubuntu 18.04 machine.
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
I have installed mongoDB into my Node.js (I implemented on Cloud 9 platform) with this command sudo apt-get install -y mongodb-org, after I installed it, I tried to run my mongoDB with command line ./mongod . However, it showed the message like the picture here, which made me unable to keep it running, I have used information from this question to help me, but it could not work ,what may be the problem of it?
I am trying to upgrade my Python 3.2.4 to the newer 3.3.1 on my Raspberry Pi using the Raspian Wheezy Distro, but for some reason this won't work. I only need it to use the new ipaddress module introduced, however, this is giving me some issues. I am not getting any errors, just the entire proccess doesn't seem to work with the Pi.
I have tried :
apt-get install python3
apt-get update python-3.2.4
Nothing is giving me any luck, any ideas?
Try apt-get install package=version.