I am a little confused here. I created a Amazon EC2 instance with Ubuntu Linux 64-bit 12.04 LTS, now when I SSH into it I get the following
but on Amazon Management console I get the following
What is wrong here?
Ignore the web-based management console and believe the welcome message.. You are running AMI Linux which is NOT based on Debian/Ubuntu but on CentOS (which in turn is based on RedHat). The default package-management tool is yum
, not apt
, as these release notes make clear.
Consider installing one of the official Ubuntu AMIs from Canonical, available here:
http://uec-images.ubuntu.com/releases/precise/
Note: The reason for such problem may be use are using old EBS containing Amazon AMI.
ami-acf6b0fe is indeed an official Ubuntu 12.04 LTS Precise AMI in Amazon EC2's ap-southeast-1 (Singapore) region.
The welcome message you list is indeed for Amazon Linux.
This means that the EC2 instance listed in your AWS console is not the EC2 instance you are connecting to with ssh.
You should double check IP addresses, hostnames, instance ids, AWS accounts, and EC2 regions.
ami-8a7f3ed8
, but I still have same "Amazon Linux AMI" as shown in the image. I have checked the IP address mention in SSH is my IP address. AWS account is mine. EC2 region is correct. What do you want me to check in hostnames?
Aug 13, 2012 at 17:34