mongodb - How can I upgrade my 2.6.0 mongo to 2.6.latest? -
i running ubuntu , have mongo 2.6.0 installed.
recently new minor version of mongo appeared (2.6.2), reason can not upgrade apt-get update && apt-get upgrade
(which remember correctly upgraded minor versions when on 2.4.x version).
i assume can remove mongo , reinstall it, not sound appealing.
also know question not programming per se, think useful other people , has mongo-community. (but if finds off-topic, please move it)
here actual output:
ubuntu@ip-10-34-23-80:~$ 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 nail http://eu-west-1.ec2.archive.ubuntu.com trusty release.gpg nail http://eu-west-1.ec2.archive.ubuntu.com trusty-updates release.gpg nail http://eu-west-1.ec2.archive.ubuntu.com trusty release nail http://eu-west-1.ec2.archive.ubuntu.com trusty-updates release nail http://eu-west-1.ec2.archive.ubuntu.com trusty/main sources nail http://eu-west-1.ec2.archive.ubuntu.com trusty/universe sources nail http://eu-west-1.ec2.archive.ubuntu.com trusty/main amd64 packages nail http://eu-west-1.ec2.archive.ubuntu.com trusty/universe amd64 packages nail http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/main sources nail http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/universe sources nail http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/main amd64 packages nail 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] nail http://security.ubuntu.com trusty-security/main translation-en nail 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 bundle lists... done reading bundle lists... done building dependency tree reading state information... done calculating upgrade... done 0 upgraded, 0 newly installed, 0 remove , 0 not upgraded.
when sudo apt-cache policy mongodb-org
see no info 2.6.2
version.
mongodb-org: installed: 2.6.0 candidate: 2.6.0 version table: *** 2.6.0 0 100 /var/lib/dpkg/status
the right command update mongodb latest version is:
sudo apt-get install mongodb-org
you can check details bundle , it's versions with:
sudo apt-cache policy mongodb-org
it display this:
mongodb-org: installed: 2.6.1 candidate: 2.6.2 version table: 2.6.2 0 500 http://downloads-distro.mongodb.org/repo/ubuntu-upstart/ dist/10gen amd64 packages *** 2.6.1 0 500 http://downloads-distro.mongodb.org/repo/ubuntu-upstart/ dist/10gen amd64 packages 100 /var/lib/dpkg/status 2.6.0 0 500 http://downloads-distro.mongodb.org/repo/ubuntu-upstart/ dist/10gen amd64 packages
the previous name of package, mongodb repositories, mongodb-10gen
renamed mongodb-org
.
if seek install mongo
bundle with:
sudo apt-get install mongodb
it seek install mongodb ubuntu repositories (which much older).
be sure check offical installation page updates repo location etc.
edit
it seems bundle installed manually deb bundle or mongodb repo removed apt sources list.
either way, adding mongodb repo sources list , doing:
sudo apt-get update && sudo apt-get install mongodb-org
will install newest version of mongodb (just reference, link official installation docs).
mongodb
No comments:
Post a Comment