I tried to install python-psycopg2
But the installation fails and I get this error:
E: mongodb-10gen: subprocess installed post-installation script returned error exit status 1
Preparing to replace python-psycopg2 2.4.2-1 (using .../python-psycopg2_2.4.2-1_i386.deb) ...
Unpacking replacement python-psycopg2 ...
Setting up mongodb-10gen (2.2.1) ...
* Starting database mongodb [fail]
invoke-rc.d: initscript mongodb, action "start" failed.
dpkg: error processing mongodb-10gen (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
Setting up python-psycopg2 (2.4.2-1) ...
Errors were encountered while processing:
mongodb-10gen
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up mongodb-10gen (2.2.1) ...
* Starting database mongodb [fail]
invoke-rc.d: initscript mongodb, action "start" failed.
dpkg: error processing mongodb-10gen (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
mongodb-10gen
I'm puzzled. I'm not sure why I'm getting a mongodb error while installing this. Any suggestions to fix this?
mongodb-10geninstallation wasn't left previously incomplete? Have you tried uninstallingmongodb-10gen, installingpython-psycopg2and then reinstallingmongodb-10gen? I am not aware of any dependency between the two packages. – Pedro Romano Nov 10 '12 at 17:58apt-get -f installdoes it try to install MongoDB too? You might have an incomplete install of the package, so the issue isn't with psycopg2 at all. – Craig Ringer Nov 11 '12 at 3:13