【问题标题】:Having issue with Vagrant I cant install any VagrantboxVagrant 有问题我无法安装任何 Vagrant Box
【发布时间】:2017-06-12 03:07:03
【问题描述】:

我看到了 scotch.io vagrant box,我很满意。所以我继续下载virtualbox和vagrant。还下载了 scotch.io vagrantfile。但是当我使用 cmd 在该目录中输入 vagrant up 时,我是一个 pc 用户。

它给出了这个错误

C:\Users\Myusername\Desktop\scotch-box-master>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'scotch/box' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
The box 'scotch/box' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Atlas, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:

URL: ["https://atlas.hashicorp.com/scotch/box"]
Error: 

所以我尝试安装它尝试下载的精确 64 框,但它返回如下错误

C:\Users\Myusername\Desktop\Vagrant>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'precise64' 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 'precise64' (v0) for provider: virtualbox
    default: Downloading: http://files.vagrantup.com/precise64.box
    default: Progress: 100% (Rate: 24/s, Estimated time remaining: --:--:--)
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

请帮我解决这个错误。 所以我刚刚下载了precision64.tar文件,由于远程安装不起作用,我该如何在本地安装它

【问题讨论】:

    标签: vagrant vagrantfile vagrant-windows


    【解决方案1】:

    我在 Windows 上成功使用了 vagrant,它在 VirtualBox 上运行良好,但与从 OSX 或 Linux 开始相比存在缺陷。我找到的最佳建议在这里:http://tech.osteel.me/posts/2015/01/25/how-to-use-vagrant-on-windows.html 例如,我需要学习开始作为管理员的命令窗口,尤其是解决符号链接问题。不过,我在 Mac 上使用了 scotchbox,它开箱即用,效果很好,所以首先摆弄已知的 Windows 问题可能会让你到达那里?

    【讨论】:

    • 感谢@George M 的回答我继续下载 Precise64.tar 文件我如何在本地安装它我在哪里放置这个文件
    • 如果不能下载任何盒子,问题出在VirtualBox的配置上,而不是盒子本身..
    • 我没有看到任何与我的问题相关的解决方案
    • 您是克隆了存储库,还是只下载了 Vagrantfile?
    • 最后你检查了这个类似的问题吗? stackoverflow.com/questions/43320441/…
    【解决方案2】:

    是的,上面的用户说我要做的就是检查我的电脑名称是否有任何特殊字符 ed -/@#$% 等,然后删除特殊字符。所有人和 vagrant 都在非常正确地下载盒子

    【讨论】:

      猜你喜欢
      • 2014-10-01
      • 2015-09-14
      • 2018-05-08
      • 2019-10-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-07-06
      • 2015-02-13
      相关资源
      最近更新 更多