安装vagrant报错OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

简介: 安装vagrant报错OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 541、报错详情安装vagrant,在运行vagrant up时,报错

1、报错详情


安装vagrant,在运行vagrant up时,报错


An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 54


这个错误是因为网络太慢,下载virtualbox.box失败,可以换个网络再试一下。


如果网络实在太慢的话,可以试试下面的方法,我们可以手动下载virtualbox.box


2、手动下载并安装virtualbox.box


(1)下载并移动安装包


点击下载:


https://vagrantcloud.com/laravel/boxes/homestead/versions/7.1.0/providers/virtualbox.box


下载完成后将下载后的安装包重新命名为virtualbox.box


并将文件移动到安装vagrant的文件夹下面

#语句实例:移动到vagrant的文件夹下面,需要将~/rails-va路径换成自己的安装vagrant的文件夹的路径
rm virtualbox.box ~/rails-va


(2)手动导入virtualbox.box


在安装vagrant的文件夹下面(我电脑上面的路径是~/rails-va)继续执行下面语句


vagrant box add ubuntu virtualbox.box 


执行成功后,会返回下面的结果


==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'ubuntu' (v0) for provider: 
    box: Unpacking necessary files from: file:///Users/maoningyi/rails-va/virtualbox.box
==> box: Successfully added box 'ubuntu' (v0) for 'virtualbox'!


(3)检查是否导入成功


vagrant box list


出现下面语句就说明导入成功了


ubuntu (virtualbox, 0)


(4)继续执行vagrant up


~/rails-va$ vagrant up
#系统返回的结果
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'virtualbox.box' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'virtualbox.box' (v0) for provider: virtualbox
    default: Unpacking necessary files from: file:///Users/maoningyi/rails-va/virtualbox.box
==> default: Successfully added box 'virtualbox.box' (v0) for 'virtualbox'!
==> default: Importing base box 'virtualbox.box'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: rails-va_default_1577761656747_39956
Vagrant is currently configured to create VirtualBox synced folders with
the `SharedFoldersEnableSymlinksCreate` option enabled. If the Vagrant
guest is not trusted, you may want to disable this option. For more
information on this option, please refer to the VirtualBox manual:
  https://www.virtualbox.org/manual/ch04.html#sharedfolders
This option can be disabled globally with an environment variable:
  VAGRANT_DISABLE_VBOXSYMLINKCREATE=1
or on a per folder basis within the Vagrantfile:
  config.vm.synced_folder '/host/path', '/guest/path', SharedFoldersEnableSymlinksCreate: false
==> default: Vagrant has detected a configuration issue which exposes a
==> default: vulnerability with the installed version of VirtualBox. The
==> default: current guest is configured to use an E1000 NIC type for a
==> default: network adapter which is vulnerable in this version of VirtualBox.
==> default: Ensure the guest is trusted to use this configuration or update
==> default: the NIC type using one of the methods below:
==> default: 
==> default:   https://www.vagrantup.com/docs/virtualbox/configuration.html#default-nic-type
==> default:   https://www.vagrantup.com/docs/virtualbox/networking.html#virtualbox-nic-type
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection reset. Retrying...
    default: 
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default: 
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders…
    default: /vagrant => /Users/maoningyi/rails-va


再执行vagrant ssh就可以成功登陆到Ubuntu系统


~/rails-va$ vagrant ssh
#系统返回的结果
Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-45-generic x86_64)
 _                               _                 _ 
| |                             | |               | |
| |__   ___  _ __ ___   ___  ___| |_ ___  __ _  __| |
| '_ \ / _ \| '_ ` _ \ / _ \/ __| __/ _ \/ _` |/ _` |
| | | | (_) | | | | | |  __/\__ \ ||  __/ (_| | (_| |
|_| |_|\___/|_| |_| |_|\___||___/\__\___|\__,_|\__,_|
* Homestead 8.0.0 released! PHP 7.3 is now the default! 
* Settler v7.0.0 released! Make sure you update
* Need PHP 5.6 or 7.0? Homestead 7.x Settler 6.4.0
0 packages can be updated.
0 updates are security updates.
vagrant@vagrant:~$
目录
相关文章
|
2月前
|
网络安全 Apache
Apache服务器安装SSL证书
Apache服务器安装SSL证书
54 0
|
3天前
|
人工智能 网络安全 开发工具
视觉智能开放平台操作报错合集之服务部署在pdd的服务器,调用报错:The SSL connection could not be established,该如何解决
在使用视觉智能开放平台时,可能会遇到各种错误和问题。虽然具体的错误代码和消息会因平台而异,但以下是一些常见错误类型及其可能的原因和解决策略的概述,包括但不限于:1. 认证错误、2. 请求参数错误、3. 资源超限、4. 图像质量问题、5. 服务不可用、6. 模型不支持的场景、7. 网络连接问题,这有助于快速定位和解决问题。
|
2月前
LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60
LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60
30 0
|
2月前
|
XML 网络安全 开发工具
如何下载并安装 SAP ABAPGit,并完成 ABAP 服务器上 SSL 证书的配置试读版
如何下载并安装 SAP ABAPGit,并完成 ABAP 服务器上 SSL 证书的配置试读版
|
2月前
|
前端开发 应用服务中间件 网络安全
http转为https,ssl证书安装及nginx配置
http转为https,ssl证书安装及nginx配置
99 1
|
2月前
|
Linux 网络安全 Python
解决方案:Centos7运行Django项目报错no module named _ssl
解决方案:Centos7运行Django项目报错no module named _ssl
31 0
|
2月前
|
关系型数据库 网络安全 对象存储
Flink报错问题之Flink报错java.io.EOFException: SSL peer shut down incorrectly如何解决
Flink报错通常是指在使用Apache Flink进行实时数据处理时遇到的错误和异常情况;本合集致力于收集Flink运行中的报错信息和解决策略,以便开发者及时排查和修复问题,优化Flink作业的稳定性。
|
2月前
|
网络安全 数据安全/隐私保护
JavaMail给QQ邮箱发邮件报错,没有SSL加密
JavaMail给QQ邮箱发邮件报错,没有SSL加密
|
2月前
|
JavaScript 应用服务中间件 网络安全
nginx 配置 解决 vue history模式下空白 ,以及SSL证书安装
nginx 配置 解决 vue history模式下空白 ,以及SSL证书安装
|
2月前
|
应用服务中间件 Linux 网络安全
Linux【脚本 06】HTTPS转发HTTP安装OpenSSL、Nginx(with-http_ssl_module)及自签名的X.509数字证书生成(一键部署生成脚本分享)
Linux【脚本 06】HTTPS转发HTTP安装OpenSSL、Nginx(with-http_ssl_module)及自签名的X.509数字证书生成(一键部署生成脚本分享)
83 1