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
phonon-backend-gstreamer phonon-backend-gstreamer-common if i type apt-get upgrade now? before there were no updates on those
– rubo77
Jan 06 '15 at 00:30
apt-cache policy phonon-backend-gstreamer and see which sources it's considering...
– Steven K
Jan 06 '15 at 00:34
sources.list.d/vivid.list and now it is like yours
– rubo77
Jan 06 '15 at 00:53
deb http://mirror.netcologne.de/mariadb/repo/5.5/ubuntu trusty main
– rubo77
Jan 06 '15 at 00:57
/etc/apt/preferences.d/vivid-manual-only from 100 to 99, I think that might help. I'll change my answer to recommend 99 instead of 100 in case other readers are tracking non-standard repos.
– Steven K
Jan 06 '15 at 01:10
sed'ed source file, maybe you shouldnnt use sed for the creation in your answer, or at least disable backports in the vivid.list
– rubo77
Jan 06 '15 at 01:15
n=vivid instead of a=vivid in the vivid-manual-only file. Using a=vivid didn't work for ones with properties like a=vivid-security, but they all have n=vivid
– Steven K
Jan 06 '15 at 01:19
cp to grep the original sources.list and use only the vanilla utopic lines (utopic with a space before and after, not matching utopic-backports or utopic-security) for the new sources file. How does that work for you?
– Steven K
Jan 06 '15 at 01:27
vivid-security and vivid-updates?
– rubo77
Jan 06 '15 at 01:30
E: Release ‘vivid’ for ‘vagrant’ was not found
– Drew Noakes
Jun 05 '15 at 17:11
do-release-upgrade later. you have to delete that file before the upgrade, see http://askubuntu.com/questions/667500/no-updates-for-14-10/667503#667503
– rubo77
Aug 30 '15 at 21:50
apt-cache policy the distro with the highest priority is taken
– rubo77
Feb 10 '16 at 09:08
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.
Change the version number to the latest version