![如何在全新安装的 Ubuntu 17.04 上恢复主路径上丢失的基本文件夹?](https://linux22.com/image/1061182/%E5%A6%82%E4%BD%95%E5%9C%A8%E5%85%A8%E6%96%B0%E5%AE%89%E8%A3%85%E7%9A%84%20Ubuntu%2017.04%20%E4%B8%8A%E6%81%A2%E5%A4%8D%E4%B8%BB%E8%B7%AF%E5%BE%84%E4%B8%8A%E4%B8%A2%E5%A4%B1%E7%9A%84%E5%9F%BA%E6%9C%AC%E6%96%87%E4%BB%B6%E5%A4%B9%EF%BC%9F.png)
我尝试在安装了 Virtual Box 和 Vagrant 的新安装的 Ubuntu 17.04 上运行vagrant init
,vagrant up
但输出vagrant up
是:
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'base' 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 'base' (v0) for provider: virtualbox
default: Downloading: base
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
Couldn't open file /home/james/base
答案1
不要做vagrant
,但从这里它表明你的命令应该是这样的:
vagrant init hashicorp/precise32
不是
vagrant init
因此,您缺少一个box
名称,请将其更改为您想要设置的名称。
答案2
啊,我知道为什么它不起作用。我没有为 指定任何内容vagrant init
。
这似乎有效:
vagrant init ubuntu/zesty64
vagrant up
是的,乔治也认识到了这个错误。