4

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?

2 Answers 2

4

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.

9
  • +1, thanks, does that mean there are several version (images) of Ubuntu and they are different from each other. Aug 13, 2012 at 13:57
  • Well, there's the desktop/server variants of all the releases (10.04, ... 12.04, etc.), and within the current/newer ones they release every 1-1.5 months so you don't have to spend all your bandwidth on updates (even a daily version I believe). As 12.04 is an LTS (stable), I'd just go with the latest and start doing stuff! :)
    – ish
    Aug 13, 2012 at 14:05
  • ok, I launched ami-8a7f3ed8 from the link you suggested but again my SSH window shows Amazon Linux AMI. Aug 13, 2012 at 17:35
  • If this is a paid instance I'd contact Amazon Support if I were you...
    – ish
    Aug 13, 2012 at 17:36
  • Could it be because the EBS I am using as root volume is the one which had Amazon Linux AMI and an I am reattaching it to Ubuntu AMI. Aug 13, 2012 at 17:48
3

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.

2
  • Hi Eric, I deleted the AMI and launched a new Ubuntu 12.04 LTs from Canonical 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
  • 1
    @codingcrow: No. If you start an instance of ami-acf6b0fe or ami-8a7f3ed8 in ap-southeast-1, then you can only connect using ubuntu@ and it will show the standard Ubuntu greeting on login. You need to ssh to the correct IP address for the instance you are starting. TIP: Once you terminate the instance, you should no longer be able to ssh to it. Aug 14, 2012 at 1:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .