Vagrant已损坏的索引文件C:\ Users\USERNAME\.vagrant.d/data/machine-index/index

Tho*_*ini 45 virtual-machine vagrant windows-8.1

我的Windows 8.1崩溃了.现在我的dist上有一些文件被破坏了.这包括我的流浪汉机器索引(如果命名正确但不知道它是这个文件 - > C:\ Users\USERNAME.vagrant.d/data/machine-index/index).

所以那里有很多二进制或十六进制的东西(再次不是shure因为我不会处理这些东西,所以如果我错了就纠正我!)如果我尝试启动所有内容后,Vagrant会发出以下消息开机.

vagrant up 返回此

The machine index which stores all required information about
running Vagrant environments has become corrupt. This is usually
caused by external tampering of the Vagrant data folder.

Vagrant cannot manage any Vagrant environments if the index is
corrupt. Please attempt to manually correct it. If you are unable
to manually correct it, then remove the data file at the path below.
This will leave all existing Vagrant environments "orphaned" and
they'll have to be destroyed manually.

Path: C:/Users/Username/.vagrant.d/data/machine-index/index
Run Code Online (Sandbox Code Playgroud)

Juk*_*nen 122

同样的事情发生在我身上.所以我刚刚从machine-index文件夹中删除了索引文件和.lock文件,以便让Vagrant再次工作.

  • 这对我也有用.只是不要忘记删除BOTH文件(如果存在)index.lock和index.我首先删除.lock但它没有工作:) (3认同)