'Download mongodb compass and Install Using the Terminal
I follow the commands based on this link https://docs.mongodb.com/compass/master/install/
1. Download the package:
mongodb-compass_1.15.1_amd64.deb
2. Install Compass:
sudo dpkg -i mongodb-compass_1.15.1_amd64.deb;
(Reading database ... 195489 files and directories currently installed.)
Preparing to unpack mongodb-compass_1.15.1_amd64.deb ...
Unpacking mongodb-compass (1.15.1-1) ...
dpkg: dependency problems prevent configuration of mongodb-compass:
mongodb-compass depends on libgconf-2-4; however:
Package libgconf-2-4 is not installed.
dpkg: error processing package mongodb-compass (--install):
dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:
mongodb-compass
“How to fix ‘Installation’ error in Ubuntu” can anyone help my problem?
Solution 1:[1]
If you check you log you will see this error:
dpkg: dependency problems prevent configuration of mongodb-compass:
mongodb-compass depends on libgconf-2-4; however: Package
libgconf-2-4 is not installed.
So install libgconf-2-4.
apt-get install libgconf-2-4
Solution 2:[2]
In case there are multiple missing packages
sudo apt install ...
will be tedious. After running
sudo dpkg -i <package-name>
and getting dependency problems error you can run
sudo apt --fix-broken install
which will install all missing dependencies and after that running
sudo dpkg -i <package-name>
will install your needed package.
Solution 3:[3]
Use sudo apt install -f
and then sudo dpkg -i <your file.deb>
Solution 4:[4]
Run the following commands:-
sudo apt --fix-broken install
sudo apt-get install libgconf-2-4
sudo dpkg -i <<your deb package name .deb>>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Romeo Ninov |
Solution 2 | Lukas90 |
Solution 3 | Blastfurnace |
Solution 4 | jatin_5 |