I fail to install mongodb on my server (ssh; linux-gnu). Get the following trace:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
mongodb-org-mongos mongodb-org-server mongodb-org-tools
The following NEW packages will be installed:
mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-tools
0 upgraded, 4 newly installed, 0 to remove and 47 not upgraded.
Need to get 0 B/46.7 MB of archives.
After this operation, 149 MB of additional disk space will be used.
Selecting previously deselected package mongodb-org-server.
(Reading database ... 73280 files and directories currently installed.)
Unpacking mongodb-org-server (from .../mongodb-org-server_3.0.5_amd64.deb) ...
Selecting previously deselected package mongodb-org-mongos.
Unpacking mongodb-org-mongos (from .../mongodb-org-mongos_3.0.5_amd64.deb) ...
Selecting previously deselected package mongodb-org-tools.
Unpacking mongodb-org-tools (from .../mongodb-org-tools_3.0.5_amd64.deb) ...
Selecting previously deselected package mongodb-org.
Unpacking mongodb-org (from .../mongodb-org_3.0.5_amd64.deb) ...
Processing triggers for man-db ...
Setting up mongodb-org-server (3.0.5) ...
Starting database: mongod failed!
invoke-rc.d: initscript mongod, action "start" failed.
dpkg: error processing mongodb-org-server (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up mongodb-org-mongos (3.0.5) ...
configured to not write apport reports
Setting up mongodb-org-tools (3.0.5) ...
dpkg: dependency problems prevent configuration of mongodb-org:
mongodb-org depends on mongodb-org-server; however:
Package mongodb-org-server is not configured yet.
dpkg: error processing mongodb-org (--configure):
dependency problems - leaving unconfigured
configured to not write apport reports
Errors were encountered while processing:
mongodb-org-server
mongodb-org
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have been following instructions from official documentation.
I tried to repair it, but it didn't help.
mongod --repair
2015-08-03T09:11:28.456+0200 I STORAGE [initandlisten] exception in initAndListen: 29 Data directory /data/db not found., terminating
2015-08-03T09:11:28.456+0200 I CONTROL [initandlisten] dbexit: rc: 100
I was also trying to install locales, but it also didn't help.
How can I get around this and install mongodb? What can be the error?
After successfully installing MongoDB (via Homebrew) on Yosemite, these instructions were displayed:
To have launchd start mongodb at login:
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
Then to load mongodb now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
Or, if you don't want/need launchctl, you can just run:
mongod --config /usr/local/etc/mongod.conf
"/usr/local/etc/mongod.conf" contains the "dbpath" argument. After reviewing that file I was also able to start MongoDB as follows:
$ mongod --dbpath /usr/local/var/mongodb
On a Linux environment your paths are probably different, but I hope this helps answer your question and provides you with some direction to solve your problem.
Related
I have tried purging and reinstalling mongo db several times but I continuously get the following error when installing. It seems like the problem comes in when trying to install additional packages and trying to remove mogodb, mongodb-clients, and mongodb-server:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
mongodb-org-database-tools-extra mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
The following packages will be REMOVED:
mongodb mongodb-clients mongodb-server
The following NEW packages will be installed:
mongodb-org mongodb-org-database-tools-extra mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
0 upgraded, 6 newly installed, 3 to remove and 23 not upgraded.
3 not fully installed or removed.
Need to get 0 B/49.8 MB of archives.
After this operation, 124 MB of additional disk space will be used.
(Reading database ... 268876 files and directories currently installed.)
Removing mongodb (1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5) ...
Removing mongodb-server (1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5) ...
Removing mongodb-clients (1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5) ...
Selecting previously unselected package mongodb-org-shell.
(Reading database ... 268856 files and directories currently installed.)
Preparing to unpack .../0-mongodb-org-shell_4.4.6_amd64.deb ...
Unpacking mongodb-org-shell (4.4.6) ...
Preparing to unpack .../1-mongodb-org-server_4.4.6_amd64.deb ...
Unpacking mongodb-org-server (4.4.6) ...
dpkg: error processing archive /tmp/apt-dpkg-install-i8t6ED/1-mongodb-org-server_4.4.6_amd64.deb (--unpack):
trying to overwrite '/usr/bin/mongod', which is also in package mongodb-server-core 1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../2-mongodb-org-mongos_4.4.6_amd64.deb ...
Unpacking mongodb-org-mongos (4.4.6) ...
dpkg: error processing archive /tmp/apt-dpkg-install-i8t6ED/2-mongodb-org-mongos_4.4.6_amd64.deb (--unpack):
trying to overwrite '/usr/bin/mongos', which is also in package mongodb-server-core 1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Selecting previously unselected package mongodb-org-database-tools-extra.
Preparing to unpack .../3-mongodb-org-database-tools-extra_4.4.6_amd64.deb ...
Unpacking mongodb-org-database-tools-extra (4.4.6) ...
Selecting previously unselected package mongodb-org-tools.
Preparing to unpack .../4-mongodb-org-tools_4.4.6_amd64.deb ...
Unpacking mongodb-org-tools (4.4.6) ...
Selecting previously unselected package mongodb-org.
Preparing to unpack .../5-mongodb-org_4.4.6_amd64.deb ...
Unpacking mongodb-org (4.4.6) ...
Errors were encountered while processing:
/tmp/apt-dpkg-install-i8t6ED/1-mongodb-org-server_4.4.6_amd64.deb
/tmp/apt-dpkg-install-i8t6ED/2-mongodb-org-mongos_4.4.6_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
If I try to fix the problem using
sudo apt --fix-broken install
I get these errors again:
dpkg: error processing archive /var/cache/apt/archives/mongodb-org-server_4.4.6_amd64.deb (--unpack):
trying to overwrite '/usr/bin/mongod', which is also in package mongodb-server-core 1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../mongodb-org-mongos_4.4.6_amd64.deb ...
Unpacking mongodb-org-mongos (4.4.6) ...
dpkg: error processing archive /var/cache/apt/archives/mongodb-org-mongos_4.4.6_amd64.deb (--unpack):
trying to overwrite '/usr/bin/mongos', which is also in package mongodb-server-core 1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/mongodb-org-server_4.4.6_amd64.deb
/var/cache/apt/archives/mongodb-org-mongos_4.4.6_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
additional information:
mongodb-org : Depends: mongodb-org-server but it is not going to be installed
Depends: mongodb-org-mongos but it is not going to be installed
Looks like other attempts to purge mongodb from my computer were insufficient, but I found this solution:
sudo apt remove mongodb
sudo apt purge mongodb
sudo apt autoremove
this removed all instances of mongodb and reinstalling it produced no errors
i install mongo db from a website guide then i folllowed the step until i got this error on installation
I was try using install -f & apt update --fix-missing but still not working
root#danil-Lenovo-ideapad-120S-14IAP:/usr/bin# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-program-options1.65.1 libgoogle-perftools4 libtcmalloc-minimal4 libyaml-cpp0.5v5 mongo-tools mongodb-server-core
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
mongodb-org-mongos mongodb-org-server mongodb-org-tools
The following NEW packages will be installed:
mongodb-org-mongos mongodb-org-server mongodb-org-tools
0 upgraded, 3 newly installed, 0 to remove and 13 not upgraded.
2 not fully installed or removed.
Need to get 0 B/77,2 MB of archives.
After this operation, 266 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 267730 files and directories currently installed.)
Preparing to unpack .../mongodb-org-server_3.6.18_amd64.deb ...
Unpacking mongodb-org-server (3.6.18) ...
dpkg: error processing archive /var/cache/apt/archives/mongodb-org-server_3.6.18_amd64.deb (--unpack):
trying to overwrite '/usr/bin/mongod', which is also in package mongodb-server-core 1:3.6.3-0ubuntu1.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../mongodb-org-mongos_3.6.18_amd64.deb ...
Unpacking mongodb-org-mongos (3.6.18) ...
dpkg: error processing archive /var/cache/apt/archives/mongodb-org-mongos_3.6.18_amd64.deb (--unpack):
trying to overwrite '/usr/bin/mongos', which is also in package mongodb-server-core 1:3.6.3-0ubuntu1.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../mongodb-org-tools_3.6.18_amd64.deb ...
Unpacking mongodb-org-tools (3.6.18) ...
dpkg: error processing archive /var/cache/apt/archives/mongodb-org-tools_3.6.18_amd64.deb (--unpack):
trying to overwrite '/usr/bin/bsondump', which is also in package mongo-tools 3.6.3-0ubuntu1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/mongodb-org-server_3.6.18_amd64.deb
/var/cache/apt/archives/mongodb-org-mongos_3.6.18_amd64.deb
/var/cache/apt/archives/mongodb-org-tools_3.6.18_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
i run this command sudo apt install python3.7.
E: The package libglu1-mesa:i386 needs to be reinstalled, but I can't find an archive for it.
this error massage still showing.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
python3.7-venv python3.7-doc
The following NEW packages will be installed:
python3.7
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
Need to get 0 B/528 kB of archives.
After this operation, 439 kB of additional disk space will be used.
Selecting previously unselected package python3.7.
(Reading database ... 199040 files and directories currently installed.)
Preparing to unpack .../python3.7_3.7.7-1+bionic1_amd64.deb ...
Unpacking python3.7 (3.7.7-1+bionic1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Setting up python3.7 (3.7.7-1+bionic1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
dpkg: error processing package libglu1-mesa:i386 (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Errors were encountered while processing:
libglu1-mesa:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)
use sudo apt-get install software-properties-gtk
I'm using linux mint. I'm trying to install php5-cli, but after execution a corresponding bash command I've the following log:
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-cli is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 353 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up php5-common (5.4.6-1ubuntu1.5) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing php5-common (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up man-db (2.6.3-1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing man-db (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of libapache2-mod-php5:
libapache2-mod-php5 depends on php5-common (= 5.4.6-1ubuntu1.5); however:
Package php5-common is not configured yet.
dpkg: error processing libapache2-mod-php5 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-cli:
php5-cli depends on php5-common (= 5.4.6-1ubuntu1.5); however:
Package php5-common is not configured yet.
dpkg: error processing php5-cli (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
php5-common
man-db
libapache2-mod-php5
php5-cli
E: Sub-
process /usr/bin/dpkg returned an error code (1)
If I'm trying to execute sudo apt-get install man-db or sudo apt-get install libapache2-mod-php5 I have the same errors. Why it occurred?
I had this same error after symlinking the /etc/php5/cli/php.ini from /etc/php5/apache/php.ini
I deleted the symlink and then called
sudo apt-get -f install
all is good!
before above you should do
sudo mv /etc/php5/cli/php.ini /etc/php5/cli/php.bak
I am trying to install icinga-web and I am getting following error:-
I tried installing both the icinga-core and icinga-idoutils but I still get this error.
apt-get install icinga-web
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
icinga-web : Depends: icinga-core (>= 1.7.0) but 1.6.1-2 is to be installed
Depends: icinga-idoutils (>= 1.7.0) but 1.6.1-2 is to be installed
E: Unable to correct problems, you have held broken packages.
Just FYI,
apt-get install icinga-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
pkg-config libpthread-stubs0 libfontconfig1-dev x11proto-kb-dev xtrans-dev x11proto-input-dev libxpm-dev libfreetype6-dev libxau-dev xorg-sgml-doctools libx11-dev libx11-doc libxcb1-dev x11proto-core-dev libxdmcp-dev
libpthread-stubs0-dev
Use 'apt-get autoremove' to remove them.
Suggested packages:
nagios-nrpe-plugin
The following NEW packages will be installed:
icinga-core
0 upgraded, 1 newly installed, 0 to remove and 117 not upgraded.
Need to get 0 B/287 kB of archives.
After this operation, 804 kB of additional disk space will be used.
Selecting previously unselected package icinga-core.
(Reading database ... 38940 files and directories currently installed.)
Unpacking icinga-core (from .../icinga-core_1.6.1-2_amd64.deb) ...
Processing triggers for man-db ...
Setting up icinga-core (1.6.1-2) ...
* There is no configuration file for Icinga.
invoke-rc.d: initscript icinga, action "start" failed.
apt-get install icinga-idoutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
pkg-config libpthread-stubs0 libfontconfig1-dev x11proto-kb-dev xtrans-dev x11proto-input-dev libxpm-dev libfreetype6-dev libxau-dev xorg-sgml-doctools libx11-dev libx11-doc libxcb1-dev x11proto-core-dev libxdmcp-dev
libpthread-stubs0-dev
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
icinga-idoutils
0 upgraded, 1 newly installed, 0 to remove and 117 not upgraded.
Need to get 0 B/221 kB of archives.
After this operation, 1,442 kB of additional disk space will be used.
Selecting previously unselected package icinga-idoutils.
(Reading database ... 38947 files and directories currently installed.)
Unpacking icinga-idoutils (from .../icinga-idoutils_1.6.1-2_amd64.deb) ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Setting up icinga-idoutils (1.6.1-2) ...
dbconfig-common: writing config to /etc/dbconfig-common/icinga-idoutils.conf
Creating config file /etc/dbconfig-common/icinga-idoutils.conf with new version
Creating config file /etc/icinga/ido2db.cfg with new version
granting access to database icinga for icinga-idoutils#localhost: success.
verifying access for icinga-idoutils#localhost: success.
creating database icinga: success.
verifying database icinga exists: success.
populating database via sql... done.
dbconfig-common: flushing administrative password
This problem is resolved.
I have deleted corrupted packages from (/var/lib/dpkg/status)
Package system broken - E: Sub-process /usr/bin/dpkg returned an error code (1)
And re-install all icinga packages again using icinga PPA.
Thanks for your help.