Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I install Vagrant 1.0.6. with an already manually installed VirtualBox 4.2.6 on Ubuntu 12.04? All of my known ways fail:

  1. Download *.deb file for 64bit and dpkg --install vagrant_x86_64.deb gives me the error Vagrant not installed. Use apt-get install vagrant after using vagrant up.
  2. Using apt-get install vagrant wants to remove (!) my manual VirtualBox installation.

What to do?

share|improve this question

2 Answers

Find you installed vagrant in /opt/vagrant and create a symlink on you local bin.

sudo ln -s /opt/vagrant/bin/vagrant /usr/local/bin/vagrant

Hope that helps.

share|improve this answer

Recommended way of installing vagrant is through RubyGems.

If you have up-to-date ruby version installed, just gem install vagrant.

You can install ruby using package management, of course. However, rbenv/ruby-build or RVM is highly recommended, it's more flexible and works great in terms of managing ruby versions.

Update: since 1.2, recommended way of installing Vagrant is using the installers for your OS.

share|improve this answer
Currently the vagrant documentation says,"But note that the packages [not the ruby gem] are the preferred and best supported method of installation." The answer about the symbolic link worked for me. P.S. Agree, however, about RVM in generally and specifically if using the vagrant gem. – GSP Feb 13 at 1:25
Cool. Good to see it worked fine for you. I actually never tried to install the vagrant .deb package as I already have Ruby;-) – Terry Wang Feb 17 at 23:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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