Amazon EC2 – Is My Amazon EC2 Running Amazon Linux or Ubuntu

amazon ec2

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

enter image description here

but on Amazon Management console I get the following

enter image description here

What is wrong here?

Best Answer

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.

Related Question