First of all why would you want to do that? For many many reasons. One of the reasons I have was to bring up a machine every night which had all the code that I need to import and translate games. And I needed a dedicated machine with the base EC2 instance m1.small horsepower. I know of people who bring up 20-50 instances every night to do some heavy weight data processing before shutting down and killing those instances.
Here is what I would do:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo vi /etc/apt/sources.list
Here is the file content of sources.list:
deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ karmic main universe
deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ karmic main universe
deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ karmic-updates main universe
deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ karmic-updates main universe
deb http://security.ubuntu.com/ubuntu karmic-security main universe
deb-src http://security.ubuntu.com/ubuntu karmic-security main universe
Continue reading →