Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Currently I'm trying to remove MongoDB, but when I try to execute using one of the commands below;

sudo apt-get purge mongodb mongodb-clients mongodb-server mongodb-dev
sudo apt-get purge mongodb-10gen
sudo apt-get autoremove

gives me an output as nothing relating to the package that I've installed

root@master:/# sudo apt-get purge mongodb mongodb-clients mongodb-server mongodb-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'mongodb' is not installed, so not removed
Package 'mongodb-clients' is not installed, so not removed
Package 'mongodb-dev' is not installed, so not removed
Package 'mongodb-server' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

root@master:/# sudo apt-get purge mongodb-10gen
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'mongodb-10gen' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

root@master:/# apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

All the commands simply outputs as they're not installed. Any advise on this will be great.

share|improve this question
2  
Code shows that package is not installed.However you can fix broken packages by sudo apt-get -f install –  Pandya May 21 at 5:19
1  
While you try what @Pandya said. Could you also try executing dpkg --get-selections | grep -v deinstall | grep "mongodb" and post the output if you see any packages or matches. This command will output packages relating to the word mongodb while printing all the installed packages. :) –  AzkerM May 21 at 5:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.