Você pode me ajudar com esse problema, por favor? Eu atualizei (apt-get upgrade) meu sistema Debian GNU / Linux 7.6 (wheezy) mas para Falha na instalação do problema com o espaço em disco do Installation-or-update-software-not-possible / 157772 # 157772. Depois de ter liberado espaço em disco, mas o MongoDB não é iniciado. Eu tentei vários procedimentos.
Primeiro apt-get --purge remove mongodb-org:
invoke-rc.d: unknown initscript, /etc/init.d/mongod not found.
dpkg: error processing mongodb-org-server (--configure):
subprocess installed post-installation script returned error exit status 100
Errors were encountered while processing:
mongodb-org-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Em /etc/init.d/
foi:
mongod -> /lib/init/upstart-job
Eu removi isso e substituí-lo por mongod de outra instalação do mongoDB de outro sistema. Então a desinstalação estava correta.
Depois de executar apt-get install -y mongodb-org
, mas falhou com:
invoke-rc.d: unknown initscript, /etc/init.d/mongod not found.
dpkg: error processing mongodb-org-server (--configure):
subprocess installed post-installation script returned error exit status 100
Setting up MongoDB package-org-Mongos (2.6.4) ...
Setting up MongoDB package-org-tools (2.6.4) ...
dpkg: unmet dependencies prevent configuration package MongoDB-org:
MongoDB-org depends on MongoDB-org-server; but:
MongoDB package-org-server is not configured yet.
Em /etc/init.d/
foi:
mongod -> /lib/init/upstart-job
mongod.dpkg-bak
Eu removi o mongod e renomei mongod.dpkg-bak
para mongod
. Então a instalação estava correta. Mas o MongoDB não inicia.
Reading package lists ... Done
It creates a dependency tree
Reading state information ... Done
MongoDB-org is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation will be used to drive other 0 B.
Setting up MongoDB package-org-server (2.6.4) ...
[FAIL] Starting database: mongodb 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
dpkg: unmet dependencies prevent configuration package MongoDB-org:
MongoDB-org depends on MongoDB-org-server; but:
MongoDB package-org-server is not configured yet.
dpkg: error processing MongoDB-org (--configure):
dependency problem - leave it unconfigured
Errors were encountered while processing:
MongoDB-org-server
MongoDB-org
E: Subprocesso / usr / bin / dpkg retornou um código de erro (1)
Se eu executar service mongod start
:
[FAIL] Starting database: mongodb failed!
Mas /var/log/mongod/mongod.log
não contém nenhuma entrada a partir desse momento.
Muito obrigado pela ajuda.
dpkg-query -l "Saída do MongoDB-org *":
+++-=================================-=====================-=====================-=======================================================================
iU mongodb-org 2.6.4 i386 MongoDB open source document-oriented database system (metapackage)
ii mongodb-org-mongos 2.6.4 i386 MongoDB sharded cluster query router
iF mongodb-org-server 2.6.4 i386 MongoDB database server
ii mongodb-org-shell 2.6.4 i386 MongoDB shell client
ii mongodb-org-tools 2.6.4 i386 MongoDB tools
un mongodb-org-unstable <none> (no description available)
un mongodb-org-unstable-mongos <none> (no description available)
un mongodb-org-unstable-server <none> (no description available)
un mongodb-org-unstable-shell <none> (no description available)
un mongodb-org-unstable-tools <none> (no description available)
dpkg --configure mongodb-org-servidor mongodb-org:
Setting up mongodb-org-server (2.6.4) …
[FAIL] Starting database: mongodb 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
dpkg: unmet dependencies prevent configuration package MongoDB-org:
MongoDB-org depends on MongoDB-org-server; but:
MongoDB package-org-server is not configured yet.
dpkg: error processing MongoDB-org (--configure):
dependency problem - leave it unconfigured
Errors were encountered while processing:
MongoDB-org-server
MongoDB-org
dpkg --configure --force-depends mongodb-org-servidor mongodb-org:
Setting up mongodb-org-server (2.6.4) …
[FAIL] Starting database: mongodb 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
dpkg: dependency problems, but configuring as per your requirement:
mongodb-org depends on mongodb-org-server; however:
MongoDB package-org-server is not configured yet.
Setting org-package MongoDB (2.6.4) ...
Errors were encountered while processing:
mongodb-org-server