Unofficial Vagrant Debian Repository

About this site

This was previously an unofficial Debian repository for Vagrant, hosted by Wolfgang Faust. However, it was deprecated after the official HashiCorp repository became available, and is no longer available as of April 30, 2021. You can still see the code for it on GitHub. For questions/comments/complaints/praise/etc, email me at wolfgangmcq+vagrant-deb@gmail.com.

To use the official repository

Run:

curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
sudo apt-get update

Switching from this repository to the official one

If you previously followed the instructions below to add the unofficial repository, remove that one with:

sudo rm /etc/apt/sources.list.d/wolfgang42-vagrant.list
sudo apt-key del AD319E0F7CFFA38B4D9F6E55CE3F3DE92099F7A4

Important: You will also need to force apt to "downgrade" the installed package to the version in the official repository. The easiest way to do that is to uninstall and reinstall the package:

sudo apt-get remove vagrant && sudo apt-get update && sudo apt-get install vagrant

After doing this, run dpkg -s vagrant and make sure that the reported version does not start with 1: — if it does you will not get any upgrades in the future!

(Why is this necessary? The packages from HashiCorp that this unofficial repository uses have an epoch, like 1:2.2.14. For some reason they dropped the epoch when creating packages for their new repository. As a result, after you remove the unofficial repository apt will think that the version you have installed is newer than any available from the official repository, and will never upgrade the package again.)