questionAndy's avatar

Error installing homestead box

So i am installing homestead step by step using the official laravel guide, but got an error, is this a bug or am i missing something? It says that there are no available versions that matches constraints, but then they show 13.0.0 as available version so why does it throw such an errror? I did not edit any files. Straight up git clone, init.bat, vagrant up and got this error.

vagrant up Bringing machine 'homestead' up with 'virtualbox' provider... ==> homestead: Box 'laravel/homestead' could not be found. Attempting to find and install... homestead: Box Provider: virtualbox homestead: Box Version: >= 13.0.0, < 14.0.0 ==> homestead: Loading metadata for box 'laravel/homestead' homestead: URL: https:// vagrantcloud com/api/v2/vagrant/laravel/homestead The box you're attempting to add has no available version that matches the constraints you requested. Please double-check your settings. Also verify that if you specified version constraints, that the provider you wish to use is available for these constraints.

Box: laravel/homestead Address: https:// vagrantcloud com/api/v2/vagrant/laravel/homestead Constraints: >= 13.0.0, < 14.0.0 Available versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.4, 0.2.5, 0.2.6, 0.2.7, 0.3.0, 0.3.3, 0.4.0, 0.4.1, 0.4.2, 0.4.4, 0.5.0, 0.6.0, 0.6.1, 1.0.0, 1.0.1, 1.1.0, 2.0.0, 2.1.0, 2.2.0, 3.0.0, 3.1.0, 4.0.0, 5.0.1, 5.1.0, 5.2.0, 6.0.0, 6.1.0, 6.2.0, 6.3.0, 6.4.0, 7.0.0, 7.1.0, 7.2.1, 8.0.0.pre.alpha1, 8.0.0.pre.alpha2, 8.0.0.pre.alpha3, 8.0.0.pre.alpha4, 8.0.0.pre.beta, 8.0.0, 8.0.1, 8.1.0, 8.2.0, 8.2.1, 9.0.0, 9.0.1, 9.1.0, 9.1.1, 9.2.0, 9.3.0, 9.4.0, 9.5.0, 9.5.1, 9.6.0, 9.6.1, 9.7.2, 10.0.0, 10.1.0, 10.1.1, 11.0.0, 11.1.0, 11.3.0, 11.4.0, 11.5.0, 12.0.0, 12.1.0, 12.2.0, 13.0.0

(i edited links, cause it doesnt let me include links on the first day of account creation)

0 likes
8 replies
aurawindsurfing's avatar

It is asking for version higher then 13.00 while you have only up to 13.0.0 available while current version is 14.5.0 https://github.com/laravel/homestead

Check docs again, see if you are copying from the most up to date installation guide.

Also check which script that you are executing has this requrement Homestead.yaml? Not sure which one it is?

questionAndy's avatar

@aurawindsurfing the constraints are >= 13.0.0, so it should still detect 13.0.0 no? Also i tried leaving constraints only <14.0.0, and it installed 12.2.0 version. I am using this guide https:// laravel .com/docs/10.x/homestead. I assume it gets the box from here https:// app.vagrantup .com/laravel/boxes/homestead , but it just cant find the 13.0.0 version for some reason. The constraints are written in homestead.rb file.

aurawindsurfing's avatar

@questionAndy did you try equivalent of

apt-get update

not sure what machine you are at, but it looks like you libs are out of date. Or maybe even it would be as trivial as updating your global composer:

composer global update
questionAndy's avatar

@aurawindsurfing i am on windows 10, i reinstalled latest versions of both vagrant and virtual box, in ~/homestead directory did composer update, it updated, but error remains. I tried installing the 12.2.0 version and updating, but it says that the box laravel/homestead is running the latest version.

questionAndy's avatar
questionAndy
OP
Best Answer
Level 2

i tried installing an older version of vagrant (2.3.7) and virtual box (7.0.8), followed the steps in the laravel guide and it worked. So there is something in newer versions of vagrant that breaks it.

poz's avatar

Has anyone ever solved this? I've been stuck for days.

Voyowsky-6874182's avatar

In my case it was the architecture. Solved it by adding this line to Vagrant file:

config.vm.box_architecture = "amd64"

Please or to participate in this conversation.