because is in the wrong place.
not a vagrant issue, but easy to solve if you run vagrant ssh *sudo apt-get -y update* You will see the error fix: *sudo apt-get update* don't think -y is needed Thanks Alvaro On Wed, Feb 21, 2018 at 3:04 PM, hd hsd <[email protected]> wrote: > I have this on my vagrantfile.I have configured it to install software I > needed. > > config.vm.provision "shell", inline: <<-SHELL > cd /vagrant > chmod +x install.sh > sudo ./install.sh > > > SHELL > > *install.sh* > > *sudo apt-get -y update* > > why I can't use -y option. I always got this error > Command line option 'y' [from -y] is not known. > ==> default: ./install.sh: 12: ./install.sh: > : not found: > > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/vagrant/issues > IRC: #vagrant on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Vagrant" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/vagrant-up/1febba10-5004-49ff-914c-292776302304%40googlegroups.com > <https://groups.google.com/d/msgid/vagrant-up/1febba10-5004-49ff-914c-292776302304%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Alvaro -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/vagrant/issues IRC: #vagrant on Freenode --- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ey9vqtcxzYb132LJYVYRV_B7e821tcVpyjMD9XU9zp_DA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
