Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vagrant installation not recognized when installing plugins #133

Closed
marisacasillas opened this issue Jul 10, 2019 · 5 comments
Closed

Vagrant installation not recognized when installing plugins #133

marisacasillas opened this issue Jul 10, 2019 · 5 comments

Comments

@marisacasillas
Copy link

marisacasillas commented Jul 10, 2019

System:
Windows 10 Enterprise
Intel core i5-6300U CPU @ 2.4GHz
RAM usable: 7.89 GB/9 GB

I may be doing something obviously wrong since I don't normally use Windows, but I'm happy for you to tell me what I'm doing wrong here :)

  • I installed a unix terminal on this Windows machine following the instructions here: https://www.windowscentral.com/how-install-bash-shell-command-line-windows-10
  • I downloaded and installed Vagrant 2.2.4 (and 2.2.5, when that didn't work) for windows 64bit
  • I navigated in the terminal to the DiViMe folder
  • I typed into the command line: vagrant plugin install vagrant-aws vagrant-sshfs vagrant-vbguest

Here's what I get:

marcas@M17405292:~$ cd /mnt/c/Users/marcas/Documents/GitHub/DiViMe/
marcas@M17405292:/mnt/c/Users/marcas/Documents/GitHub/DiViMe$ vagrant plugin install vagrant-aws vagrant-sshts vagrant-vbguest
The program 'vagrant' is currently not installed. You can install it by typing:
sudo apt install vagrant

I checked and the files are definitely installed under C/HashiCorp/ so I'm not sure what the disconnect here is. I've tried repairing the Vagrant installation and deleting and reinstalling it. I've tried 2.2.4 and 2.2.5. I've re-started the computer after each change in the Vagrant installation.

Here's what I get when I try to sudo install Vagrant from the terminal, as it recommends in the output (a lot of not-founds and failures to fetch):

marcas@M17405292:/mnt/c/Users/marcas/Documents/GitHub/DiViMe$ sudo apt install vagrant
[sudo] password for marcas:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  binutils bsdtar build-essential bundler cpp cpp-5 dpkg-dev fakeroot fonts-lato g++ g++-5 gcc gcc-5 javascript-common libalgorithm-diff-perl
  libalgorithm-diff-xs-perl libalgorithm-merge-perl libarchive13 libasan2 libatomic1 libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libdpkg-perl
  libfakeroot libfile-fcntllock-perl libgcc-5-dev libgmp-dev libgmpxx4ldbl libgomp1 libisl15 libitm1 libjs-jquery liblsan0 libmpc3 libmpx0
  libquadmath0 libruby2.3 libstdc++-5-dev libtsan0 libubsan0 libxslt1.1 linux-libc-dev make manpages-dev rake ruby ruby-bundler ruby-childprocess
  ruby-dev ruby-did-you-mean ruby-domain-name ruby-erubis ruby-ffi ruby-http-cookie ruby-i18n ruby-listen ruby-log4r ruby-mime-types
  ruby-minitest ruby-molinillo ruby-net-http-persistent ruby-net-scp ruby-net-sftp ruby-net-ssh ruby-net-telnet ruby-netrc ruby-nokogiri
  ruby-power-assert ruby-rb-inotify ruby-rest-client ruby-sqlite3 ruby-test-unit ruby-thor ruby-unf ruby-unf-ext ruby2.3 ruby2.3-dev
  rubygems-integration sqlite3 unzip zip
Suggested packages:
  binutils-doc bsdcpio cpp-doc gcc-5-locales debian-keyring g++-multilib g++-5-multilib gcc-5-doc libstdc++6-5-dbg gcc-multilib autoconf automake
  libtool flex bison gdb gcc-doc gcc-5-multilib libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan2-dbg liblsan0-dbg libtsan0-dbg
  libubsan0-dbg libcilkrts5-dbg libmpx0-dbg libquadmath0-dbg apache2 | lighttpd | httpd lrzip glibc-doc gmp-doc libgmp10-doc libmpfr-dev
  libstdc++-5-doc make-doc ri publicsuffix sqlite3-doc virtualbox
The following NEW packages will be installed:
  binutils bsdtar build-essential bundler cpp cpp-5 dpkg-dev fakeroot fonts-lato g++ g++-5 gcc gcc-5 javascript-common libalgorithm-diff-perl
  libalgorithm-diff-xs-perl libalgorithm-merge-perl libarchive13 libasan2 libatomic1 libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libdpkg-perl
  libfakeroot libfile-fcntllock-perl libgcc-5-dev libgmp-dev libgmpxx4ldbl libgomp1 libisl15 libitm1 libjs-jquery liblsan0 libmpc3 libmpx0
  libquadmath0 libruby2.3 libstdc++-5-dev libtsan0 libubsan0 libxslt1.1 linux-libc-dev make manpages-dev rake ruby ruby-bundler ruby-childprocess
  ruby-dev ruby-did-you-mean ruby-domain-name ruby-erubis ruby-ffi ruby-http-cookie ruby-i18n ruby-listen ruby-log4r ruby-mime-types
  ruby-minitest ruby-molinillo ruby-net-http-persistent ruby-net-scp ruby-net-sftp ruby-net-ssh ruby-net-telnet ruby-netrc ruby-nokogiri
  ruby-power-assert ruby-rb-inotify ruby-rest-client ruby-sqlite3 ruby-test-unit ruby-thor ruby-unf ruby-unf-ext ruby2.3 ruby2.3-dev
  rubygems-integration sqlite3 unzip vagrant zip
0 upgraded, 84 newly installed, 0 to remove and 0 not upgraded.
Need to get 39.6 MB/48.4 MB of archives.
After this operation, 191 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 binutils amd64 2.26.1-1ubuntu1~16.04.3
  404  Not Found [IP: 91.189.88.149 80]
Ign:2 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libarchive13 amd64 3.1.2-11ubuntu0.16.04.3
Ign:3 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 bsdtar amd64 3.1.2-11ubuntu0.16.04.3
Ign:4 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libc-dev-bin amd64 2.23-0ubuntu7
Ign:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 linux-libc-dev amd64 4.4.0-71.92
Ign:6 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libc6-dev amd64 2.23-0ubuntu7
Err:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 binutils amd64 2.26.1-1ubuntu1~16.04.3
  404  Not Found [IP: 91.189.88.149 80]
Ign:7 http://security.ubuntu.com/ubuntu xenial-security/main amd64 cpp-5 amd64 5.4.0-6ubuntu1~16.04.4
Err:2 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libarchive13 amd64 3.1.2-11ubuntu0.16.04.3
  404  Not Found [IP: 91.189.88.149 80]
Ign:8 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libcc1-0 amd64 5.4.0-6ubuntu1~16.04.4
Err:3 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 bsdtar amd64 3.1.2-11ubuntu0.16.04.3
  404  Not Found [IP: 91.189.88.149 80]
Ign:9 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libgomp1 amd64 5.4.0-6ubuntu1~16.04.4
Err:4 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libc-dev-bin amd64 2.23-0ubuntu7
  404  Not Found [IP: 91.189.88.149 80]
Ign:10 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libitm1 amd64 5.4.0-6ubuntu1~16.04.4
Err:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 linux-libc-dev amd64 4.4.0-71.92
  404  Not Found [IP: 91.189.88.149 80]
Ign:11 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libatomic1 amd64 5.4.0-6ubuntu1~16.04.4
Err:6 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libc6-dev amd64 2.23-0ubuntu7
  404  Not Found [IP: 91.189.88.149 80]
Ign:12 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libasan2 amd64 5.4.0-6ubuntu1~16.04.4
Err:7 http://security.ubuntu.com/ubuntu xenial-security/main amd64 cpp-5 amd64 5.4.0-6ubuntu1~16.04.4
  404  Not Found [IP: 91.189.88.149 80]
Ign:13 http://security.ubuntu.com/ubuntu xenial-security/main amd64 liblsan0 amd64 5.4.0-6ubuntu1~16.04.4
Err:8 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libcc1-0 amd64 5.4.0-6ubuntu1~16.04.4
  404  Not Found [IP: 91.189.88.149 80]
Ign:14 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libtsan0 amd64 5.4.0-6ubuntu1~16.04.4
Err:9 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libgomp1 amd64 5.4.0-6ubuntu1~16.04.4
  404  Not Found [IP: 91.189.88.149 80]
Ign:15 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libubsan0 amd64 5.4.0-6ubuntu1~16.04.4
Ign:16 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libcilkrts5 amd64 5.4.0-6ubuntu1~16.04.4
Err:10 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libitm1 amd64 5.4.0-6ubuntu1~16.04.4
  404  Not Found [IP: 91.189.88.149 80]
Ign:17 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libmpx0 amd64 5.4.0-6ubuntu1~16.04.4
Err:11 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libatomic1 amd64 5.4.0-6ubuntu1~16.04.4
  404  Not Found [IP: 91.189.88.149 80]
Ign:18 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libquadmath0 amd64 5.4.0-6ubuntu1~16.04.4
Err:12 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libasan2 amd64 5.4.0-6ubuntu1~16.04.4
  404  Not Found [IP: 91.189.88.149 80]
Ign:19 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libgcc-5-dev amd64 5.4.0-6ubuntu1~16.04.4
Err:13 http://security.ubuntu.com/ubuntu xenial-security/main amd64 liblsan0 amd64 5.4.0-6ubuntu1~16.04.4
  404  Not Found [IP: 91.189.88.149 80]
Err:14 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libtsan0 amd64 5.4.0-6ubuntu1~16.04.4
  404  Not Found [IP: 91.189.88.149 80]
Ign:20 http://security.ubuntu.com/ubuntu xenial-security/main amd64 gcc-5 amd64 5.4.0-6ubuntu1~16.04.4
Err:15 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libubsan0 amd64 5.4.0-6ubuntu1~16.04.4
  404  Not Found [IP: 91.189.88.149 80]
Ign:21 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libstdc++-5-dev amd64 5.4.0-6ubuntu1~16.04.4
Err:16 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libcilkrts5 amd64 5.4.0-6ubuntu1~16.04.4
  404  Not Found [IP: 91.189.88.149 80]
Ign:22 http://security.ubuntu.com/ubuntu xenial-security/main amd64 g++-5 amd64 5.4.0-6ubuntu1~16.04.4
Err:17 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libmpx0 amd64 5.4.0-6ubuntu1~16.04.4
  404  Not Found [IP: 91.189.88.149 80]
Err:23 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdpkg-perl all 1.18.4ubuntu1.1
  404  Not Found [IP: 91.189.88.149 80]
Err:18 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libquadmath0 amd64 5.4.0-6ubuntu1~16.04.4
  404  Not Found [IP: 91.189.88.149 80]
Err:24 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 dpkg-dev all 1.18.4ubuntu1.1
  404  Not Found [IP: 91.189.88.149 80]
Err:19 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libgcc-5-dev amd64 5.4.0-6ubuntu1~16.04.4
  404  Not Found [IP: 91.189.88.149 80]
Err:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libruby2.3 amd64 2.3.1-2~16.04
  404  Not Found [IP: 91.189.88.149 80]
Err:20 http://security.ubuntu.com/ubuntu xenial-security/main amd64 gcc-5 amd64 5.4.0-6ubuntu1~16.04.4
  404  Not Found [IP: 91.189.88.149 80]
Err:26 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ruby2.3 amd64 2.3.1-2~16.04
  404  Not Found [IP: 91.189.88.149 80]
Err:21 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libstdc++-5-dev amd64 5.4.0-6ubuntu1~16.04.4
  404  Not Found [IP: 91.189.88.149 80]
Err:22 http://security.ubuntu.com/ubuntu xenial-security/main amd64 g++-5 amd64 5.4.0-6ubuntu1~16.04.4
  404  Not Found [IP: 91.189.88.149 80]
Err:27 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ruby2.3-dev amd64 2.3.1-2~16.04
  404  Not Found [IP: 91.189.88.149 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/b/binutils/binutils_2.26.1-1ubuntu1~16.04.3_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/liba/libarchive/libarchive13_3.1.2-11ubuntu0.16.04.3_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/liba/libarchive/bsdtar_3.1.2-11ubuntu0.16.04.3_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc-dev-bin_2.23-0ubuntu7_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_4.4.0-71.92_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dev_2.23-0ubuntu7_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/cpp-5_5.4.0-6ubuntu1~16.04.4_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libcc1-0_5.4.0-6ubuntu1~16.04.4_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libgomp1_5.4.0-6ubuntu1~16.04.4_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libitm1_5.4.0-6ubuntu1~16.04.4_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libatomic1_5.4.0-6ubuntu1~16.04.4_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libasan2_5.4.0-6ubuntu1~16.04.4_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/liblsan0_5.4.0-6ubuntu1~16.04.4_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libtsan0_5.4.0-6ubuntu1~16.04.4_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libubsan0_5.4.0-6ubuntu1~16.04.4_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libcilkrts5_5.4.0-6ubuntu1~16.04.4_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libmpx0_5.4.0-6ubuntu1~16.04.4_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libquadmath0_5.4.0-6ubuntu1~16.04.4_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libgcc-5-dev_5.4.0-6ubuntu1~16.04.4_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/gcc-5_5.4.0-6ubuntu1~16.04.4_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++-5-dev_5.4.0-6ubuntu1~16.04.4_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/g++-5_5.4.0-6ubuntu1~16.04.4_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/d/dpkg/libdpkg-perl_1.18.4ubuntu1.1_all.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg-dev_1.18.4ubuntu1.1_all.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/r/ruby2.3/libruby2.3_2.3.1-2~16.04_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/r/ruby2.3/ruby2.3_2.3.1-2~16.04_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/r/ruby2.3/ruby2.3-dev_2.3.1-2~16.04_amd64.deb  404  Not Found [IP: 91.189.88.149 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Advice?

@sarpu
Copy link

sarpu commented Jul 10, 2019

After installing vagrant 2.2.4, could you try running those commands from the powershell?

@fmetze
Copy link
Contributor

fmetze commented Jul 10, 2019

I think you need to execute the vagrant command in a "regular" windows shell, not a unix shell (like @sarpu is suggesting, I think). I think these commands might help: https://www.isunshare.com/windows-10/4-ways-to-open-command-prompt-in-windows-10.html

@marisacasillas
Copy link
Author

I installed 2.2.4 and ran the vagrant plugin install command from powershell as suggested by @sarpu (not command prompt). There were still some failures in installation
vagrant_plugin_output.txt

@fmetze
Copy link
Contributor

fmetze commented Jul 12, 2019

the installation of the plugins seems to have failed. can you try installing each of the plugins individually, and see which one fails, and maybe see why? the most important one of the three plugins is probably the "vbguest" one, but the others have helped in various situations, too. in your log-file, the system seems to try to install "aws" and fails, and it does not seem to try and install the other ones. the solution to your problem may be in the vagrant documentation, googling turns up e.g. https://www.wordspeak.org/posts/yak-shaving-with-vagrant-travis-ci-and-aws.html - but not sure if this applies to your situation.

@marisacasillas
Copy link
Author

Thanks! I installed the three plugins individually in the following order:

  1. vbguest
  2. sshfs
  3. aws (first attempt failed again, then I used this tip to get it to install)

After those installations, I was able to run vagrant up successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants