2017-06-01 59 views
0

我的生產Mongo數據庫被黑了,所有的數據庫都被刪除了。我現在想升級到Mongo的最新版本,但是我遇到了非常麻煩的問題。我在Linux Mint 17.1上。進出口以下說明操作:無法安裝最新的Mongdb

https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ 

當我運行:

sudo apt-get install -y mongodb-org 

我結束了錯誤:

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: 
mongodb-org : Depends: mongodb-org-shell but it is not going to be installed 
       Depends: mongodb-org-server but it is not going to be installed 
       Depends: mongodb-org-mongos but it is not going to be installed 
       Depends: mongodb-org-tools but it is not going to be installed 
E: Unable to correct problems, you have held broken packages. 

我可以嘗試下呢?正如我所說,我的應用程序是從黑客入侵,現在我甚至不能安裝Mongo ...

+0

請分享運行'apt list --installed | grep mongo''和''More /etc/apt/sources.list.d/* |貓' – helmy

回答

0

嘗試sudo apt-get install -f修復軟件包。

如果這不起作用,請確定是否需要所有4個軟件包,mongodb-org-server可能是您真正需要的唯一軟件包。

+0

試過sudo apt-get install -f,仍然出現同樣的錯誤 – Mark