具体来说,我试图卸载mongodb,因为这是启动后,当我按htop键时得到的。

我不想也不需要mongodb了,我想删除它。所以我遵循了这里的指令。
我跑了
sudo service mongod stop得到了Failed to stop mongod.service: Unit mongod.service not loaded.
然后我继续努力,做了
sudo apt-get purge mongodb-org*并得到:
E: Unable to locate package mongodb-org*
E: Couldn't find any package by glob 'mongodb-org*'
E: Couldn't find any package by regex 'mongodb-org*'我该怎么办?
编辑:根据一个问题,我尝试了sudo apt list --installed *mongo*,输出是:
mongo-tools/bionic,now 3.6.3-0ubuntu1 amd64 [installed,automatic]
mongodb/bionic,now 1:3.6.3-0ubuntu1 amd64 [installed]
mongodb-clients/bionic,now 1:3.6.3-0ubuntu1 amd64 [installed,automatic]
mongodb-server/bionic,now 1:3.6.3-0ubuntu1 all [installed,automatic]
mongodb-server-core/bionic,now 1:3.6.3-0ubuntu1 amd64 [installed,automatic]我也试过dpkg -l | grep 'mongo'
ii mongo-tools 3.6.3-0ubuntu1 amd64 collection of tools for administering MongoDB servers
ii mongodb 1:3.6.3-0ubuntu1 amd64 object/document-oriented database (metapackage)
ii mongodb-clients 1:3.6.3-0ubuntu1 amd64 object/document-oriented database (client apps)
ii mongodb-server 1:3.6.3-0ubuntu1 all object/document-oriented database (managed server package)
ii mongodb-server-core 1:3.6.3-0ubuntu1 amd64 object/document-oriented database (server binaries package)发布于 2019-03-09 11:56:38
根据更新的问题,没有匹配mongodb-org*的包。卸载mongodb可能会通过
sudo apt purge mongodb*卸载芒果工具
sudo apt purge mongo-toolshttps://askubuntu.com/questions/1124278
复制相似问题