Skip to content

Instantly share code, notes, and snippets.

@sola-msr
Created June 19, 2018 01:28
Show Gist options
  • Save sola-msr/0757d87e8dcc2c6e9686f8a5f9f043c6 to your computer and use it in GitHub Desktop.
Save sola-msr/0757d87e8dcc2c6e9686f8a5f9f043c6 to your computer and use it in GitHub Desktop.
【Vagrant】vagrant upするとエラーが発生するようになったので修正しました、という軌跡 ref: https://qiita.com/sola-msr/items/b36b647a12511098daac
>vagrant up
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
/sbin/ifdown 'eth1' || true
/sbin/ip addr flush dev 'eth1'
# Remove any previous network modifications from the interfaces file
sed -e '/^#VAGRANT-BEGIN/,$ d' /etc/network/interfaces > /tmp/vagrant-network-interfaces.pre
sed -ne '/^#VAGRANT-END/,$ p' /etc/network/interfaces | tac | sed -e '/^#VAGRANT-END/,$ d' | tac > /tmp/vagrant-network-interfaces.post
cat \
/tmp/vagrant-network-interfaces.pre \
/tmp/vagrant-network-entry \
/tmp/vagrant-network-interfaces.post \
> /etc/network/interfaces
rm -f /tmp/vagrant-network-interfaces.pre
rm -f /tmp/vagrant-network-entry
rm -f /tmp/vagrant-network-interfaces.post
/sbin/ifup 'eth1'
Stdout from the command:
Stderr from the command:
bash: line 5: /sbin/ifdown: No such file or directory
bash: line 21: /sbin/ifup: No such file or directory
>vagrant --version
Vagrant 1.9.7
>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: user requested 'vagrant-hostsupdater (> 0)'
Vagrantは初期段階で初期化に失敗しました:
プラグインが正しく初期化できませんでした。これは手動によるものかもしれません
Vagrantのホームディレクトリ内で行われた変更。
次のコマンドを実行してこの問題を自動的に修正しようとします。
vagrant plugin repair
Vagrantが最近更新された場合、このエラーは互換性がない可能性があります
依存関係のバージョン。この問題を解決するには、削除してから再インストールしてください
すべてのプラグイン。以下のコマンドを実行すると、Vagrantは自動的にこれを行うことができます。
vagrant plugin expunge --reinstall
または、インストールされているプラグインを最新のものに更新してみてください
バージョン:
vagrant plugin update
初期化中に指定されたエラーメッセージ:依存関係を解決できません:ユーザーが 'vagrant-hostsupdater(> 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]:
Vagrant expunge has been declined. Skipping removal of plugins.
Vagrant will now attempt to reinstall user plugins that were removed.
Installing the 'vagrant-hostsupdater' plugin. This can take a few minutes...
Fetching: vagrant-hostsupdater-1.1.1.160.gem (100%)
Installed the plugin 'vagrant-hostsupdater (1.1.1.160)'!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment