在 kubuntu 下运行 homestead got checksum type is not supported 错误

问题描述

在kubuntu 18下运行homestead出现意外错误

$ vagrant up -- provision
This Vagrant environment has specified that it requires the Vagrant
version to satisfy the following version requirements:                                                                                                                                                                 

  >= 2.2.4                                                                                                                                                                                                             

You are running Vagrant 2.0.2,which does not satisfy                                                                                                                                                                  
these requirements. Please change your Vagrant version or update                                                                                                                                                       
the Vagrantfile to allow this Vagrant version. However,be warned                                                                                                                                                      
that if the Vagrantfile has specified another version,it probably has                                                                                                                                                 
good reason to do so,and changing that may cause the environment to                                                                                                                                                   
not function properly.                                           

我在 Vagrantfile 中更改了一行:

Vagrant.require_version '>= 2.0.2'

$ vagrant up --provision 
Bringing machine 'homes-ex1' up with 'virtualBox' provider...
==> homes-ex1: Box 'laravel/homestead' Could not be found. Attempting to find and install...
    homes-ex1: Box Provider: virtualBox
    homes-ex1: Box Version: >= 11.0.0,< 12.0.0
==> homes-ex1: Loading Metadata for Box 'laravel/homestead'
    homes-ex1: URL: https://vagrantcloud.com/laravel/homestead
==> homes-ex1: Adding Box 'laravel/homestead' (v11.3.0) for provider: virtualBox
    homes-ex1: Downloading: https://vagrantcloud.com/laravel/Boxes/homestead/versions/11.3.0/providers/virtualBox.Box
    homes-ex1: Calculating and comparing Box checksum...
#<Thread:0x0000562e1dc1b820@/usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/batch_action.rb:71 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
        33: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'
        32: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/machine.rb:188:in `action'
        31: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/machine.rb:188:in `call'
        30: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/environment.rb:592:in `lock'
        29: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/machine.rb:202:in `block in action'
        28: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/machine.rb:227:in `action_raw'
        27: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/runner.rb:66:in `run'
        26: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/util/busy.rb:19:in `busy'
        25: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/runner.rb:66:in `block in run'
        24: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/builder.rb:116:in `call'
        23: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/warden.rb:34:in `call'
        22: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/plugins/providers/virtualBox/action/check_virtualBox.rb:17:in `call'
        21: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/warden.rb:34:in `call'
        20: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/builtin/call.rb:53:in `call'
        19: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/runner.rb:66:in `run'
        18: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/util/busy.rb:19:in `busy'
        17: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/runner.rb:66:in `block in run'
        16: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/builder.rb:116:in `call'
        15: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/warden.rb:34:in `call'
        14: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
        13: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/warden.rb:34:in `call'
        12: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/builtin/handle_Box.rb:36:in `call'
        11: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/builtin/handle_Box.rb:36:in `synchronize'
        10: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/builtin/handle_Box.rb:42:in `block in call'
         9: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/builtin/handle_Box.rb:82:in `handle_Box'
         8: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/runner.rb:66:in `run'
         7: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/util/busy.rb:19:in `busy'
         6: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/runner.rb:66:in `block in run'
         5: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/builder.rb:116:in `call'
         4: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/warden.rb:34:in `call'
         3: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/builtin/Box_add.rb:118:in `call'
         2: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/builtin/Box_add.rb:283:in `add_from_Metadata'
         1: from /usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/builtin/Box_add.rb:352:in `Box_add'
/usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/builtin/Box_add.rb:538:in `validate_checksum': The specified checksum type is not supported by Vagrant: sha512. (Vagrant::Errors::BoxChecksumInvalidType)
Vagrant supports the following checksum types:

md5,sha1,sha256
The specified checksum type is not supported by Vagrant: sha512.
Vagrant supports the following checksum types:

md5,sha256

我有认的 Homestead.yaml :

ip: 192.168.10.10
memory: 2048
cpus: 2
provider: virtualBox
authorize: ~/.ssh/id_rsa.pub
keys:
    - ~/.ssh/id_rsa
folders:
    -
        map: /mnt/_work_sdb8/wwwroot/lar/homesteads/homes_ex1
        to: /home/vagrant/code
sites:
    -
        map: homestead.test
        to: /home/vagrant/code/public
databases:
    - homestead
features:
    -
        MysqL: true
    -
        mariadb: false
    -
        postgresql: false
    -
        ohmyzsh: false
    -
        webdriver: false
name: homes-ex1
hostname: homes-ex1

并没有看到哪个参数和哪里错了?

更新的区块: 搜索我在网上发现的决定,我必须将 Vagrant 升级到最新版本(2.2.6) 当我使用控制台在 ubuntu 下工作时,我进行了检查:

$ apt-cache show vagrant
Package: vagrant
Architecture: all
Version: 2.0.2+dfsg-2ubuntu8
Priority: optional
Section: universe/admin
Origin: Ubuntu

所以我的 kubuntu 没有 2.0.2 以上的版本

是否有手动安装 Vagrant 2.2.6 的方法

谢谢!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)