在遇到流浪困境时的应对方法

当你遭遇无家可归的困境时,应该怎样应对

这是一个备忘录,所以我会简单地写下并保留下来。

使用Vagrant时,处理Vagrant init或Vagrant add box时的错误方法。

如果出现以下错误消息,

$ vagrant box add centos https://github.com/2creatives/vagrant-centos/releases/download/v6.5.1/centos65-x86_64-20131205.box
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'centos' (v0) for provider: 
    box: Downloading: https://github.com/2creatives/vagrant-centos/releases/download/v6.5.1/centos65-x86_64-20131205.box
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

或者

$ vagrant init CentOS6.8
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'CentOS6.8' 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 'CentOS6.8' (v0) for provider: virtualbox
    default: Downloading: CentOS6.8
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

当遇到这种情况时

请尝试运行以下命令来测试 sudo rm /opt/vagrant/embedded/bin/curl。

这个人很有可能是在做坏事。

请提供更多的上下文,以便我能够准确地使用中文进行改写。

请参考1

广告
将在 10 秒后关闭
bannerAds