This install script is giving me the error Unable to locate package for most of the programs.#! /bin/bashapps=('python-dev','python-pip','python-numpy','python-scipy','python-matplotlib','ipython','ipython-notebook','python-pandas','python-sympy','python-nose','python-picamera','openssh-client','openssh-server','vim')sudo apt-get update# Loop over apps and install each one with default 'yes' flagfor app in ${apps[@]}do    sudo apt-get install $app -ydone # configure sshsudo cp /etc/ssh/sshd_confi /etc/ssh/sshd_config.originalsudo chmod a-w /etc/ssh/sshd_config.originalpiplist=('networkx','scikit-image')for app in ${piplist[@]}do    sudo pip install -U $appdone It only installed vim. So I imagine that my repo-list is not updated but I thought that is what 'sudo apt-get update' was for.When I ran sudo apt-get install python-dev, outside the script it did install the package.
Simple install script says it is unable to locate package
shell script;software installation;python;raspbian
Looks like your $app gets the comma appended for other package names than vim. Try removing the commas from the appsor Try sudo apt-get install $(echo $app | sed 's/,//g') -yinstead of sudo apt-get install $app -yand sudo pip install -U $(echo $app | sed 's/,//g')instead of sudo pip install -U $app