我正在運行ubuntu並安裝了Mongo 2.6.0。如何將2.6.0 mongo升級到2.6.latest?
最近出現了一個新的小版本的Mongo(2.6.2),但出於某種原因,我無法通過apt-get update && apt-get upgrade
升級到它(我記得我在2.4.x版本時正確升級了小版本)。
我認爲我可以刪除mongo並重新安裝它,但這聽起來不太吸引人。
另外我知道這個問題本身不是編程,但我認爲這對其他人很有用,而且SO也有很好的mongo社區。 (但是,如果有人發現了它真正的題外話,請移動它)
下面是實際的輸出:
[email protected]:~$ sudo apt-get update && sudo apt-get upgrade
Ign http://eu-west-1.ec2.archive.ubuntu.com trusty InRelease
Ign http://eu-west-1.ec2.archive.ubuntu.com trusty-updates InRelease
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty Release.gpg
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty-updates Release.gpg
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty Release
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty-updates Release
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty/main Sources
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty/universe Sources
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty/main amd64 Packages
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/main Sources
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/universe Sources
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/universe amd64 Packages
Ign http://security.ubuntu.com trusty-security InRelease
Get:1 http://security.ubuntu.com trusty-security Release.gpg [933 B]
Ign http://eu-west-1.ec2.archive.ubuntu.com trusty/main Translation-en_US
Ign http://eu-west-1.ec2.archive.ubuntu.com trusty/main Translation-en
Ign http://eu-west-1.ec2.archive.ubuntu.com trusty/universe Translation-en_US
Ign http://eu-west-1.ec2.archive.ubuntu.com trusty/universe Translation-en
Ign http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/main Translation-en_US
Ign http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/main Translation-en
Ign http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/universe Translation-en_US
Ign http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/universe Translation-en
Get:2 http://security.ubuntu.com trusty-security Release [58.5 kB]
Get:3 http://security.ubuntu.com trusty-security/main Sources [20.6 kB]
Get:4 http://security.ubuntu.com trusty-security/universe Sources [4,727 B]
Get:5 http://security.ubuntu.com trusty-security/main amd64 Packages [61.3 kB]
Get:6 http://security.ubuntu.com trusty-security/universe amd64 Packages [21.5 kB]
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Ign http://security.ubuntu.com trusty-security/main Translation-en_US
Ign http://security.ubuntu.com trusty-security/universe Translation-en_US
Fetched 168 kB in 2s (76.9 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
當我做sudo apt-cache policy mongodb-org
我沒有看到有關2.6.2
版本。
mongodb-org:
Installed: 2.6.0
Candidate: 2.6.0
Version table:
*** 2.6.0 0
100 /var/lib/dpkg/status
我想你應用升級時可能有一個外殼或東西打開。我以前做過。退出所有工具,也許只是嘗試重新安裝「工具」包,否則只是再次安裝。在後一種情況下先取下。 –
謝謝@NeilLunn,我有我的開發機器和2臺服務器,並嘗試過幾次。它更新了很多東西,但不是mongo。所有的環境也是如此。 –
我得到的是你知道它沒有更新如何?它只是由shell提示嗎?或者日誌中的服務器版本報告不能更改?試圖運行apt-get升級的輸出是什麼?這是否甚至表示包被提取或有錯誤?我假裝你在談論你的開發環境,所以這不是主題,但你可以真正涵蓋更多的問題。也看看所有這些東西,都有日誌。 –