首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么Vagrant在操作系统升级后会失败?

为什么Vagrant在操作系统升级后会失败?
EN

Ask Ubuntu用户
提问于 2019-04-28 11:44:06
回答 1查看 615关注 0票数 2

多个包升级像宝石,红宝石和它的插件。现在,当我运行vagrant up时,我得到:

代码语言:javascript
复制
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得以建立和运行?

编辑-1:

vagrant plugin repair显示器:

代码语言:javascript
复制
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

代码语言:javascript
复制
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.
EN

回答 1

Ask Ubuntu用户

发布于 2019-04-28 13:02:45

我删除了ruby & gems以及迷航目录~/.vagrant.d,并重新安装了vagrantrubygems。现在一切都开始运作了。似乎错误与rubygems有关。

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1138850

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档