install vagrant version 1.5 or greater on 14.10
Is there a way to install a newer version than in the repository?
Ubuntu installs vagrant 1.4.3 at the moment, but I need at least 1.5
Check out the Vagrant downloads page. It has a 1.7.1 available.
@rubo77's answer is good for a quick and dirty fix.
I prefer to upgrade single packages from future versions with a bit more finesse.
Advantages of this approach:
"apt-get upgrade" will track the vivid version of vagrant for security updates, bug fixes, etc.
Nothing will get updated to the vivid versions unless you specify [package-name]/vivid on the apt command-line
After this change, you don't have to back out the changes to the configs and you can easily get other packages from vivid on demand
First, set the pin preference to 99 (below the manual-install-only threshold) for the vivid release:
cat <<EOF | sudo tee /etc/apt/preferences.d/vivid-manual-only
Package: *
Pin: release n=vivid
Pin-Priority: 99
EOF
Second, create a repo sources file pointing to the vivid repos:
grep '\sutopic\s' /etc/apt/sources.list | sudo tee /etc/apt/sources.list.d/vivid.list
sudo sed 's/utopic/vivid/g' -i /etc/apt/sources.list.d/vivid.list
Now update the package indexes:
sudo apt-get update
At this point, apt-cache policy
will show us that the system is aware of the package in the vivid repo, but will not automatically install any of them (because of the priority "99"):
ubuntu@ip-172-31-27-91:~$ apt-cache policy vagrant
vagrant:
Installed: 1.4.3+dfsg1-1
Candidate: 1.4.3+dfsg1-1
Version table:
1.6.5+dfsg1-2 0
99 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
*** 1.4.3+dfsg1-1 0
500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ utopic/universe amd64 Packages
ubuntu@ip-172-31-27-91:~$
Now you can install the more recent version manually with "apt-get install [package]/[release]:
sudo apt-get install vagrant/vivid
Install vagrant from Ubuntu 15.04 beta by changing the sources to vivid
for the install:
sudo sed 's/utopic/vivid/g' -i /etc/apt/sources.list
sudo apt-get update
sudo apt-get install vagrant
sudo sed 's/vivid/utopic/g' -i /etc/apt/sources.list
sudo apt-get update
This will install vagrant 1.6.5 at the moment
I've created a repository at http://vagrant-deb.linestarve.com/ which provides the latest packages from vagrantup.com so you don't have to update manually.
These are the same files as on the Vagrant download page, just put into a repository.