Laravel Homestead/Vagrant 框错误:Vagrant 不支持指定的校验和类型:sha512

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/59133168/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 18:23:20  来源:igfitidea点击:

Laravel Homestead/Vagrant box error : The specified checksum type is not supported by Vagrant: sha512

laravelvagrant

提问by Harsha Madusanka

I am trying to install laravel homestead and can't get past adding the homestead box.

我正在尝试安装 laravel homestead 并且无法通过添加 homestead 框。

The instruction is: vagrant box add laravel/homestead

指令是: vagrant box add laravel/homestead

After completing the download process following error appears.

完成下载过程后出现以下错误。

C:\Users\HARSHA - PC PRO>vagrant box add laravel/homestead
==> box: Loading metadata for box 'laravel/homestead'
    box: URL: https://vagrantcloud.com/laravel/homestead
==> box: Adding box 'laravel/homestead' (v9.0.1) for provider: virtualbox
    box: Downloading: https://vagrantcloud.com/laravel/boxes/homestead/versions/9.0.1/providers/virtualbox.box
==> box: Box download is resuming from prior download progress
    box: Download redirected to host: vagrantcloud-files-production.s3.amazonaws.com
    box: Progress: 100% (Rate: 188k/s, Estimated time remaining: --:--:--)
    box: Calculating and comparing box checksum...
The specified checksum type is not supported by Vagrant: sha512.
Vagrant supports the following checksum types:

md5, sha1, sha256

I'm on Windows 10 64 bit PC and have tried these instructions with the virtualbox(Version 6.0.0 r127566 (Qt5.6.2)) and vagrant_2.2.2_x86_64 version.

我在 Windows 10 64 位 PC 上并已尝试使用 virtualbox(版本 6.0.0 r127566 (Qt5.6.2))和 vagrant_2.2.2_x86_64 版本的这些说明。

I'm trying to install Laravel homestead and am not aware of resolving this since I am new to the Laravel vagrant. I searched the web for the particular problem and I could not find any solution pertaining to the above, so any help is appreciated.

我正在尝试安装 Laravel homestead 并且不知道解决这个问题,因为我是 Laravel vagrant 的新手。我在网上搜索了特定问题,但找不到与上述相关的任何解决方案,因此感谢您提供任何帮助。

回答by Julian AMOEDO

As mentioned in Vagrant's CHANGELOG.md file, new checksum types are now supported. Simply updating Vagrantto its latest version (2.2.6) should do the trick.

正如 Vagrant 的CHANGELOG.md 文件中提到的,现在支持新的校验和类型。只需将 Vagrant 更新到最新版本 (2.2.6) 就可以解决问题。

You can then do vagrant box updateto upgrade the Homestead box.

然后你可以vagrant box update升级 Homestead 盒子。

回答by Nikolas

In my case I saw in the logs that the version trying to get installed was v9.2.2-alpha1

就我而言,我在日志中看到尝试安装的版本是v9.2.2-alpha1

box: Adding box 'laravel/homestead' (v9.2.2-alpha1) for provider: virtualbox

框:为提供者添加框“laravel/homestead”(v9.2.2-alpha1):virtualbox

What worked for me is defining the version by using the following parameter

对我有用的是使用以下参数定义版本

--box-version=9.1.1

i.e.

IE

vagrant box add laravel/homestead --checksum-type=sha256 --box-version=9.1.1

Also, try to download and install the latest version of vagrant.

另外,尝试下载并安装最新版本的 vagrant。

回答by Kiran Maniya

You are using the unsupported checksum type.try installing with --checksum-typeparameter. Given below,

您正在使用不受支持的校验和类型--checksum-type。请尝试使用参数进行安装。下面给出,

vagrant box add laravel/homestead --checksum-type sha256

Here is the Docsto refer to while using command-line.

这是使用命令行时要参考的文档

回答by Jeka Yaroshenko

Try 2.2.7 version.

尝试 2.2.7 版本。

vagrant -v

流浪者 -v

Vagrant 2.2.7

流浪者 2.2.7

==> box: Successfully added box 'laravel/homestead' (v9.3.0) for 'virtualbox'!

==> 盒子:成功为“virtualbox”添加盒子“laravel/homestead”(v9.3.0)!