The fact that you don't have sudo installed tells me you might have chosen the wrong instance type. I'd say stop that instance (unless you have critical data or code on that box) and start a new micro 64-bit micro instance with 64-bit Ubuntu. Once you are in the instance via ssh, run: sudo script_name_here.sh it should prompt you for your password, and then proceed to install.
On Tuesday, July 17, 2012 10:07:23 AM UTC-4, lyn2py wrote: > > Hello guys, still need help with this... thanks. > > On Tuesday, July 17, 2012 8:25:03 AM UTC+8, lyn2py wrote: >> >> I tried and it said, command not found. I did: >> sudo ./setup-web2py-ubuntu.sh >> >> Or how should the command be? >> >> Thanks for the help! >> >> >> On Tuesday, July 17, 2012 2:11:33 AM UTC+8, rdodev wrote: >>> >>> Run with 'sudo' in front. >>> >>> On Monday, July 16, 2012 1:46:28 PM UTC-4, lyn2py wrote: >>>> >>>> Hi, >>>> >>>> I have browsed a few older threads on this but didn't manage to find an >>>> answer. Hope I can get help here. >>>> >>>> I started an instance with Ubuntu image, per the instructions here: >>>> http://www.scribd.com/doc/26436821/Howto-deploy-Web2py-on-amazon-Ec2 >>>> >>>> And got stuck at this command: >>>> ./setup-web2py-ubuntu.sh >>>> >>>> because "Permission Denied"... what should I do? >>>> >>>> Here is a snippet of the output: >>>> >>>>> installing useful packages >>>>> >>>>> ========================== >>>>> >>>>> E: Could not open lock file /var/lib/apt/lists/lock - open (13: >>>>>> Permission denied) >>>>> >>>>> E: Unable to lock directory /var/lib/apt/lists/ >>>>> >>>>> E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission >>>>>> denied) >>>>> >>>>> E: Unable to lock the administration directory (/var/lib/dpkg/), are >>>>>> you root? >>>>> >>>>> E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission >>>>>> denied) >>>>> >>>>> E: Unable to lock the administration directory (/var/lib/dpkg/), are >>>>>> you root? >>>>> >>>>> E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission >>>>>> denied) >>>>> >>>>> E: Unable to lock the administration directory (/var/lib/dpkg/), are >>>>>> you root? >>>>> >>>>> E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission >>>>>> denied) >>>>> >>>>> E: Unable to lock the administration directory (/var/lib/dpkg/), are >>>>>> you root? >>>>> >>>>> --