Make it executable first. Right-click on it, go to Properties and select the Permissions tab. Check the 'executable' boxes for all 3 entries and close. Then try again. Or better: invoke the script from a root terminal, as you'll need root permissions to install software
