我的 Windows 8.1 刚刚崩溃了。现在我的分区上有一些文件已损坏。这包括我的 Vagrant 机器索引(不确定命名是否正确,但我知道它是这个文件 -> C:\Users\USERNAME.vagrant.d/data/machine-index/index)。
所以里面有很多二进制或十六进制的东西(再次不确定,因为我通常不处理这些东西,所以如果我错了请纠正我!)如果我尝试这样做,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
最佳答案
同样的事情也发生在我身上。因此,我只是从 machine-index 文件夹中删除了索引文件和 .lock 文件,以使 Vagrant 再次工作。
关于virtual-machine - Vagrant 损坏的索引文件 C :\Users\USERNAME\. vagrant.d/data/machine-index/index,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24911021/