I am running ubuntu 10.10 64bit using the stock ami on a micro ec2, when i try to install apache i get
sudo: apt-get: command not found
is the apt package not installed on the EC2 AMIs?
if so how do i get apt back or work around it?
Do dpkg -l |grep apt and have a look if the package is really installed. If yes, try to use /usr/bin/apt-get instead of apt-get.
If apt-get is not installed and it is indeed an Ubuntu system, something is wrong with your installation. One week ago, I installed the same OS on a test EC2 instance, and apt-get worked from the very beginning.
Maybe you "reinstall" your instance by deleting and recreating it? Are you sure that it is really an Ubuntu?
and have a look - maybe you missclicked and used the wrong image.
It could be a path issue try
You can set the path that sudo will search with the