How do I upgrade Vagrant to latest version in Ubuntu?

$ sudo apt-get update
$ sudo apt-get install vagrant
$ vagrant -v
Vagrant 1.4

Latest version is 1.6.5


The official Download Vagrant webpage has all the available downloads for the latest version of Vagrant (2.0.1). Please download the proper package for your operating system (Linux deb) and architecture (32-bit or 64-bit OS). You can find SHA256 checksums for packages here.

Download the .deb file and double-click it to open it for installation in the Ubuntu software application. The names of the vagrant .deb files are as follows:

  • 32-bit architecture: vagrant_2.0.1_i686.deb
  • 64-bit architecture: vagrant_2.0.1_x86_64.deb

...where 2.0.1 in the above is the version number of the latest version of Vagrant from the official download Vagrant webpage, which changes whenever the latest version of Vagrant is updated. The latest version of Vagrant from the official download Vagrant website current to the last time this answer was edited is Vagrant 2.2.4.

If you download the text file that has the SHA256 checksums for Vagrant packages, you will find the same two package names and their SHA256 checksums.


If you don’t want to have to update manually, I’ve created a repository which provides the latest packages from HashiCorp Vagrant in a PPA format. To use it, you’ll need to add the repository to your Ubuntu repository sources like this:

sudo bash -c 'echo deb https://vagrant-deb.linestarve.com/ any main > /etc/apt/sources.list.d/wolfgang42-vagrant.list'
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key AD319E0F7CFFA38B4D9F6E55CE3F3DE92099F7A4
sudo apt-get update

Now install as usual:

sudo apt-get install vagrant

These are the same files as on the Vagrant download page, just put into a repository.

  • Note the keyserver has changed from above: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key AD319E0F7CFFA38B4D9F6E55CE3F3DE92099F7A4 – MacroMan Aug 12 at 10:28
  • @MacroMan The MIT keyserver should continue to work; I just changed the instructions to the Ubuntu one because the MIT keyserver was having issues for a while. – Wolfgang Aug 12 at 22:12
  • The MIT keyserver didn't work yesterday at all, whereas I've never had the Ubuntu key server fail on me. Sure seems more reliable to put that one and avoid problems for people. – MacroMan Aug 13 at 9:25
  • @MacroMan Good to know that it's been having problems again. I agree and have edited the post to put the Ubuntu one there as well. – Wolfgang Aug 14 at 17:56

For servers, the following will first authenticate and then install Vagrant version 2.0.2 (currently the latest) on Ubuntu x64:

curl -O https://releases.hashicorp.com/vagrant/2.0.2/vagrant_2.0.2_x86_64.deb
curl -O https://releases.hashicorp.com/vagrant/2.0.2/vagrant_2.0.2_SHA256SUMS
curl -O https://releases.hashicorp.com/vagrant/2.0.2/vagrant_2.0.2_SHA256SUMS.sig
curl -sS https://keybase.io/hashicorp/key.asc | gpg --import
gpg --verify vagrant_2.0.2_SHA256SUMS.sig vagrant_2.0.2_SHA256SUMS
shasum -a 256 -c <(cat vagrant_2.0.2_SHA256SUMS | grep 64.deb) -s
sudo apt install ./vagrant_2.0.2_x86_64.deb
  • I tried this on WSL (updated W10) but it didn't install, nor gave any error messages. – 1.61803 Jun 3 '18 at 0:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.