多个包升级像宝石,红宝石和它的插件。现在,当我运行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: Unable to resolve dependency: 'fog-libvirt (>= 0.3.0)' requires 'ruby-libvirt (>= 0.7.0)'我甚至通过vagrant删除了整个sudo apt-get remove --purge vagrant,但是在重新安装之后,错误仍然显示出来。
我试图重新安装sudo gem install ruby-libvirt,但什么也没发生。
我是否可以在Ubuntu上试用一些东西来解决这个问题,并使vagrant得以建立和运行?
vagrant plugin repair显示器:
Repairing currently installed plugins. This may take a few minutes...
Failed to automatically repair installed Vagrant plugins. To fix this
problem remove all user installed plugins and reinstall. Vagrant can
do this for you automatically by running the following command:
vagrant plugin expunge --reinstall
Failure message received during repair:
Unable to resolve dependency: user requested 'vagrant-libvirt (> 0)然后使用vagrant plugin expunge --reinstall:
This command permanently deletes all currently installed user plugins. It
should only be used when a repair command is unable to properly fix the
system.
Continue? [N]: Y
All user installed plugins have been removed from this Vagrant environment!
Vagrant will now attempt to reinstall user plugins that were removed.发布于 2019-04-28 13:02:45
我删除了ruby & gems以及迷航目录~/.vagrant.d,并重新安装了vagrant、ruby和gems。现在一切都开始运作了。似乎错误与ruby和gems有关。
https://askubuntu.com/questions/1138850
复制相似问题