卸載了vagrant 後,從新安裝vagrant後 ,執行 vagrant box list 報錯

1024號,又忘了發一篇文章了,今年又領不到1024圖片了,哇哇。。。

前段時間不小心,把vagrant給卸載了,今天又想用vagrant了,發現沒有了,沒辦法,有重新安裝了一遍,但是,發現老是報錯,錯誤如下:

 vagrant box list
Bundler, the underlying system used to manage Vagrant plugins,
is reporting that a plugin or its dependency can't be found.
This is usually caused by manual tampering with the 'plugins.json'
file in the Vagrant home directory. To fix this error, please
remove that file and reinstall all your plugins using `vagrant
plugin install`.
H:/Program Files/Vagrant/embedded/gems/gems/bundler-1.12.5/lib/bundler/resolvrb:356:in `block in verify_gemfile_dependencies_are_found!': Could not find g'vagrant-vbguest x86-mingw32' in any of the gem sources listed in your Gemfilr available on this machine. (Bundler::GemNotFound)
        from H:/Program Files/Vagrant/embedded/gems/gems/bundler-1.12.5/lib/bler/resolver.rb:331:in `each'
        from H:/Program Files/Vagrant/embedded/gems/gems/bundler-1.12.5/lib/bler/resolver.rb:331:in `verify_gemfile_dependencies_are_found!'
        from H:/Program Files/Vagrant/embedded/gems/gems/bundler-1.12.5/lib/bler/resolver.rb:200:in `start'
        from H:/Program Files/Vagrant/embedded/gems/gems/bundler-1.12.5/lib/bler/resolver.rb:184:in `resolve'
        from H:/Program Files/Vagrant/embedded/gems/gems/bundler-1.12.5/lib/bler/definition.rb:200:in `resolve'
        from H:/Program Files/Vagrant/embedded/gems/gems/bundler-1.12.5/lib/bler/definition.rb:140:in `specs'
        from H:/Program Files/Vagrant/embedded/gems/gems/bundler-1.12.5/lib/bler/definition.rb:185:in `specs_for'
        from H:/Program Files/Vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vant.rb:76:in `<top (required)>'
        from H:/Program Files/Vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ekernel_require.rb:128:in `require'
        from H:/Program Files/Vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ekernel_require.rb:128:in `rescue in require'
        from H:/Program Files/Vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ekernel_require.rb:39:in `require'
        from H:/Program Files/Vagrant/embedded/gems/gems/vagrant-1.8.6/bin/vant:105:in `<main>'

百度了半天沒有發現問題,在overstack上發現了,類似的問題,瞅了瞅(全英文的沒帶仔細看,呵呵),貌似和我遇到的問題,不一樣,無奈之下,我讀了讀這段錯誤:

重點看下面這句話

This is usually caused by manual tampering with the 'plugins.json'
file in the Vagrant home directory. 

意思是,你的家目錄下的 plugins.json 有問題

於是我進入 當前登錄用戶的家目錄:

C:\Users\zkr

找到一個 .vagrant.d目錄,發現有個 json文件,於是,我把 .vagrant.d 刪除,重新執行了一下命令,ok,問題解決了。

發片文章,希望能幫助到其他人。

 

 

 

 

 

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章