I am trying to install apt on my Linux EC2 Micro Instance. I am trying to do as it is mentioned in the first answer of this question. But when I try to edit and save the sources.list file, I am getting the following error. "/etc/apt/sources.list" E212: Can't open file for writing
I have logged in as ec2-user and changed to root using sudo su -. But Still I am not able to save the file. Can you please help me to fix this.