Instantly share code, notes, and snippets.
Last activeSeptember 20, 2024 15:33
Save cregx/6015ac4592ea75795815a22c50302166 to your computer and use it in GitHub Desktop.
How to update Vagrant box laravel/homestead to a new version
hsumudupriya commentedSep 20, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Update the clone of the laravel/homestead repository if thevagrant box update command in the 2nd step fails as below.
$ vagrant box update==> homestead5-6: Checking for updates to 'laravel/homestead' homestead5-6: Latest installed version: 12.0.0 homestead5-6: Version constraints: >= 12.0.0, < 13.0.0 homestead5-6: Provider: virtualboxThere was an error while downloading the metadata for this box.The error message is shown below:schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.Use the commands below to update the clone of the laravel/homestead repository.
git fetch origingit pullExecute thevagrant plugin update command if you run into the error below.
$ vagrant box updateVagrant failed to initialize at a very early stage:The plugins failed to initialize correctly. This may be due to manualmodifications made within the Vagrant home directory. Vagrant canattempt to automatically correct this issue by running: vagrant plugin repairIf Vagrant was recently updated, this error may be due to incompatibleversions of dependencies. To fix this problem please remove and re-installall plugins. Vagrant can attempt to do this automatically by running: vagrant plugin expunge --reinstallOr you may want to try updating the installed plugins to their latestversions: vagrant plugin updateError message given during initialization: Unable to resolve dependency: user requested 'vagrant-vbguest (= 0.30.0)'Remove the existing version of the box using the command below if thevagrant box update command fails to fetch the newer version.
$ vagrant box update==> homestead: Checking for updates to 'laravel/homestead' homestead: Latest installed version: 12.0.0 homestead: Version constraints: >= 14.0.2, < 15.0.0 homestead: Provider: virtualbox homestead: Architecture: "amd64"==> homestead: Box 'laravel/homestead' (v12.0.0) is running the latest version.$ vagrant box listlaravel/homestead (virtualbox, 12.0.0)Remove the existing version of the box using the command below
vagrant box remove laravel/homesteadThen run thevagrant up command. It will download the newer version of the laravel/homestead box and install it before starting the box.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment






