Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Ubuntu 12.04.3 on an AWS EC2 instance. This is my first time with an EC2 so it's all new to me. I'm also not the most experienced Linux guy either, so I apologize if this is a stupid question.

I want to install a LAMP stack on my EC2 instance which I'm following this tutorial. However, the very first step is to install Yum. I made sure to enable SSH, HTTP and HTTPS in my security groups.

First I typed

sudo yum update -y

It didn't like that and responded with "sudo: yum: command not found"

I then just did

yum update -y

It responded with"

The program 'yum' is currently not installed.  You can install it by typing:  apt-get install yum". 

So after typing that to install yum I get the following messages

Err precise-updates/main libnss3 amd64 3.14.3-0ubuntu0.12.04.1

  403  Forbidden
Err precise-security/main libnss3 amd64 3.14.3-0ubuntu0.12.04.1

  404  Not Found [IP: 80]
Failed to fetch  404  Not Found [IP: 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Considering this is the official tutorial through AWS, I'm not quite sure where to turn. I'd appreciate some advice/help.

share|improve this question
up vote 6 down vote accepted

Ubuntu is based on Debian, which uses apt not yum which is what Red Hat uses. The Debian equivalent of:

yum update -y

Would be:

sudo apt-get update

As for your results when running apt-get install yum

Err precise-updates/main libnss3 amd64 3.14.3-0ubuntu0.12.04.1
403  Forbidden

Would seem to indicate you don't have access to that file (I get the same forbidden error myself).

apt-get update should resolve your 404 errors, which are probably just caused by an unsynced or outdated package index.

I'm not entirely sure how Amazon operates their EC2 servers, but you should be able to install a LAMP stack withtaskel see: What's the easiest way to set up a LAMP stack?

share|improve this answer
Thank you, that worked for me. I was able to install LAMP with no problems – user1104854 Nov 28 '13 at 5:12

For me it was just because I was not running this command from the /usr/bin folder where yum is located. For some reason the /usr/bin was not in the path variable.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.