vagrant - 流浪汉的问题
问题描述
我是一个初学者,我试图使用命令“vagrant up”来设置一个虚拟机,但我一直得到这个:
Vagrant failed to initialize at a very early stage:
The plugins failed to initialize correctly. This may be due to manual
modifications made within the Vagrant home directory. Vagrant can
attempt to automatically correct this issue by running:
vagrant plugin repair
If Vagrant was recently updated, this error may be due to incompatible
versions of dependencies. To fix this problem please remove and re-install
all plugins. Vagrant can attempt to do this automatically by running:
vagrant plugin expunge --reinstall
Or you may want to try updating the installed plugins to their latest
versions:
vagrant plugin update
Error message given during initialization: incompatible character encodings: CP850 and Windows-1252
这太令人沮丧了,我试图找到解决方案几个小时,尝试使用vagrant plugin repair
, vagrant plugin expunge --reinstall
, vagrant plugin update
, 重新安装 Vagrant 几次......有人可以在这里帮助我吗?
解决方案
Vagrant 未能在很早的阶段初始化
通常是由您的系统问题引起的,而不是由 vagrant 引起的。
您的最终错误消息是:
Error message given during initialization: incompatible character encodings: CP850 and Windows-1252
此处描述了此问题。
给出的解决方案是:在键入chcp 1252
之前在命令行上键入vagrant up
.
我可以通过搜索找到这个答案CP850 vs Windows-1252 vagrant
当您遇到这样的问题时,您应该始终将错误消息或基于它的关键字放在搜索引擎中。其他人遇到并解决问题的机会很大。
推荐阅读
- python - 使用滑动日期栏为 Plotly 地图制作动画
- scala - Scala中的幻象存在类型
- python - Multiprocessing print statement doesn't work in Spyder IDE
- discord.py - 使用表情符号 Discord.py 写入文件 message.content 的问题
- javascript - 在 JavaScript 位置查找下一个单词的位置
- python - Python - bs4 - webscraping - 无法从网站获取整个 URL
- pandas - 使用 seaborn 绘图时,如何为色调参数指定多个变量?
- java - java - 读取文件并创建数组
- user-interface - tkinter GUI 在绘制 Arduino 的电压时冻结
- php - PHP - 按日期范围获取关联数组值,无需循环