ubuntu - Vagrant Shell provisioning not installing -
i'm using hashicorp/precise64. (i got same error ubuntu/trusty64 , lot other boxes well.)
tried used following code provisioning, got error.
config.vm.provision "shell", inline: <<-shell sudo apt-get update sudo apt-get install -y python-pip python-dev python-setuptools build-essential sudo pip install numpy shell ==> default: sudo ==> default: : ==> default: pip: command not found
and after ssh vm, , tried call pip, got
vagrant@precise64:$ pip program 'pip' not installed. can install typing: sudo apt-get install python-pip
if sudo apt-get install python-pip, pip indeed installed. don't understand why couldn't install through shell.
i guess maybe has exposing installation paths?
starting on (removing vagrant box , instance) , adding -y flag both sudo apt-get update;sudo apt-get upgrade resolved issue.
i did 'sudo apt-get update;sudo apt-get upgrade' without -y flag , problem occurred.
though still don't understand why sudo apt-get install xxx work through ssh without having sudo apt-get -y update;sudo apt-get -y upgrade
Comments
Post a Comment