Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 5640  / 3 Years ago, sun, october 10, 2021, 6:42:16

I've already installed VirtualBox version 4.1.18_Ubuntu from this source:



deb http://download.virtualbox.org/virtualbox/debian quantal contrib


Apparently the above source was used to install VirtualBox 4.2 which was automatically removed when I installed the vagrant. So, I suppose that the current installed version is from the default Ubuntu source.



When I installed the vagrant (from the default Ubuntu 12.10 source) and tried to run my box with vagrant up I got this error message:



Vagrant has detected that you have a version of VirtualBox installed
that is not supported. Please install one of the supported versions
listed below to use Vagrant:

4.0, 4.1


Is there any way to run vagrant with my VirtualBox? Installing newest vagrant version could be also as a solution (the current one: 1.0.3).



I tried: sudo apt-get purge virtualbox* virtualbox-4.2 vagrant and sudo apt-get install vagrant, it didn't help.


More From » 12.10

 Answers
6

To solve this same problem, I purged the Ubuntu virtualbox packages, and added lines to /etc/apt/sources.list



#Virtualbox
deb http://download.virtualbox.org/virtualbox/debian quantal contrib


Update the apt listings:



sudo apt-get update


Install the headers for your kernel if they're not installed (because virtualbox install needs them):



sudo apt-get install linux-headers-$(uname -r)


Install virtualbox:



sudo apt-get install virtualbox-4.2


Download and install the latest .deb for vagrant, and all works.


[#30745] Monday, October 11, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
calcur

Total Points: 189
Total Questions: 80
Total Answers: 95

Location: Burkina Faso
Member since Thu, Dec 15, 2022
1 Year ago
;