Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've tried a few standard Ubuntu instances on Amazon's Web Services (AWS), but I can never find the apache package using apt-get.

Thanks, Aidan.

share|improve this question

migrated from stackoverflow.com Jan 6 '10 at 19:16

This question came from our site for professional and enthusiast programmers.

    
what is the output of apt-cache search 'apache2'? Can you append /etc/apt/sources.list? –  Alexander T Jan 6 '10 at 19:17
add comment

1 Answer

up vote 4 down vote accepted

Have you looked for apache2?

http://packages.ubuntu.com/search?keywords=apache2

In general, to find a package if you don't know its exact name, use apt-cache search:

apt-cache search apache

So for you, I'm fairly certain what you want is:

apt-get install apache2
share|improve this answer
3  
Only one major comment here. Make sure you do apt-get update first, or it won't find anything. –  Tom O'Connor Jan 6 '10 at 20:24
    
True, true, true. –  delfuego Jan 6 '10 at 20:49
    
I did use the search, but it found nothing. Tom's comment was the solution! All ubuntu installations I've used before already had the list of sources so I didn't expect to have to download them. Thanks everyone! –  aidan Jan 8 '10 at 11:17
add comment

Your Answer

 
discard

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.