Installed successfully MongoDB Compass on Ubuntu 18.10. But when I try to run it, it refuses to start without showing anything. I am a newbie in MongoDB. What to do?
9 Answers
Try with following commands. These steps worked for me.
wget https://downloads.mongodb.com/compass/mongodb-compass_1.15.1_amd64.deb
sudo dpkg -i mongodb-compass_1.15.1_amd64.deb
sudo apt --fix-broken install
sudo apt -y install libgconf2-4
mongodb-compass;
-
1Worked on Ubuntu 18 with mongodb-compass_1.20.1_amd64.deb . Commented Dec 10, 2019 at 13:55
-
Yes.. seems 1.15.1 has some issues with latest versions of Ubuntu.. Has issues with Ubuntu 19.10 eoan. Tried with 1.20.1 Commented Mar 3, 2020 at 9:56
-
When I download mongodb compass for ubuntu if shows this file is harm for your computer. Commented May 13, 2021 at 3:41
Try these command in terminal :
1. $ wget https://downloads.mongodb.com/compass/mongodb-compass_1.12.1_amd64.deb; (Try to get the latest one)
2. $ sudo dpkg -i mongodb-compass_1.12.1_amd64.deb
-
$ mongodb-compass;
Worked for me.I'm also using Ubuntu 18.10
(Try to change the version of the mongodb compass - lower than 15- v)
-
Thank you Nimesh. It worked but I need minimum 1.15.1 and theres already 1.16.0 released. How to get them? Commented Nov 15, 2018 at 15:06
-
1
Segmentation fault (core dumped)
. After following the exact same thing on the Mongo official website, MongoDB, I have the above error! Please, any solution to this? Reading around, I saw it means it's trying to access an area of memory it doesn't have permission to.– Sammy65Commented Nov 18, 2018 at 21:43 -
2Thanks Nimesh. I had to perform one extra step to get mine to work. Adding it here as it may be convenient for people who had the same issue as me.
sudo apt install libgtk2.0-0:i386
Reference: askubuntu.com/questions/836142/… answer by askubuntu.com/users/256317/fkraiem. Commented Nov 26, 2018 at 5:58 -
Perfect. The latest 1.16.x version would give me about 10 seconds of UI time after the loading screen then hangup requiring a process kill. Commented Dec 13, 2018 at 10:15
-
I had the same issue with ubuntu 18.10. This issue still exists with versions 15 and 16. Earlier versions works fine in ubuntu 18.10.
1) wget https://downloads.mongodb.com/compass/mongodb-compass_1.14.1_amd64.deb
2) sudo dpkg -i mongodb-compass_1.14.1_amd64.deb
3) mongodb-compass
-
Does not work, computer says no: HTTP request sent, awaiting response... 403 Forbidden Commented Feb 23, 2019 at 17:47
-
2The new download url is downloads.mongodb.com/compass/mongodb-compass_1.14.1_amd64.deb Commented Feb 28, 2019 at 9:15
We just released Compass 1.18-beta.1, Compass will work again on Ubuntu 18.10 and other recent Linux distributions. You can download it from here: https://www.mongodb.com/download-center/compass.
-
This produces a 403 (downloads.mongodb.com/compass/beta/…). Commented Mar 16, 2019 at 18:57
-
1@Massimiliano Marcon I've tried on Ubuntu 19.04 64x, it works. Thank you for this update.– AmaniCommented May 1, 2019 at 16:10
-
@Massimiliano Marcon for me the current stable version
1.28.1
is not opening over ssh invscode
. It is showing this error :(mongodb-compass:7866): Gtk-WARNING **: 03:35:44.937: cannot open display:
whereas the GUI is opening in the VM itself.– y_159Commented Aug 25, 2021 at 7:46 -
@y_159 do I understand correctly that you have ssh-ed into a the machine where Compass is installed and then you ran
mongodb-compass
from the shell? If that is the case, then it can't work: as the errors says, there is no display that can be used to open Compass (or any other tool with a UI). You can probably set up X11 forwarding but that might be a bit of a hassle. Commented Aug 26, 2021 at 9:10 -
@MassimilianoMarcon yes this is the case. I'm on windows 10 platform and using
vscode
to ssh to the ubuntu VM created inside virtualbox.– y_159Commented Aug 26, 2021 at 11:33
Try these command in terminal :
wget https://downloads.mongodb.com/compass/mongodb-compass_1.14.1_amd64.deb;
sudo dpkg -i mongodb-compass_1.14.1_amd64.deb;
mongodb-compass;
try to use version less then 15.It solved my issue.
It is not allowed to download a full version on this way, it can only be done for the community versions, f.e:
1) wget https://downloads.mongodb.com/compass/mongodb-compass-community_1.15.1_amd64.deb
This you can download, but has the same problem.
I downloaded the mongodb-compass-community_1.12.1_amd64.deb with wget. I installed it with dpkg -i, and it works.
Almost the same solution for Ubuntu 20.04
wget https://downloads.mongodb.com/compass/mongodb-compass_1.21.1_amd64.deb
sudo dpkg -i mongodb-compass_1.21.1_amd64.deb
sudo apt --fix-broken install
mongodb-compass
-
1fix-broken did nothing for me , but install 1.22.1 was good enough Commented Oct 13, 2020 at 6:16
After installing the dpkg, need to run the following commands from the terminal
1. sudo apt --fix-broken install
2. sudo apt -y install libgconf2-4
3. mongodb-compass;
I have run the following commands in ubuntu 20.04 and successfully:
sudo wget https://downloads.mongodb.com/compass/mongodb-compass_1.29.6_amd64.deb
sudo apt install --fix-broken install
sudo dpkg -i mongodb-compass_1.29.6_amd64.deb
mongodb-compass
I hope this will help someone else there.
-
-
1@gmauch i think it's not the same as all because when i use that one. i see it's not work for me and when i try to change the order and i see it worked as my expected. So not the same as all Commented Dec 23, 2021 at 23:24