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 have just launched my first EC2 instance and chose an Ubuntu image to start from, since it's quite well documented.

However, I am trying to install the Redis package: http://packages.ubuntu.com/lucid/redis-server

Maybe I am not googling properly or just stupid since the weekend is approaching, but I'll keep getting errors:

root@ip-10-229-123-199:~# sudo apt-get install redis-server
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package redis-server

I'll assume that I need to add a repository or something to Ubuntu to help it find the package I want, but how do I do it? I can only find graphical guides which doesn't help me too much since I am using SSH.

Edit: After some help from Bart (many thanks to you!), this occurs instead:

root@ip-10-229-123-199:~# sudo apt-get install redis-server
Reading package lists... Done
Building dependency tree... Done
Package redis-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package redis-server has no installation candidate
share|improve this question

2 Answers 2

up vote 2 down vote accepted

If it's in the repos, I'd look in Synaptic. System->administration->synaptic package manager. Search there (after a reload to update package lists) and see if the package is in the list. Otherwise for different applications you may need to search for a .Deb file to install or google for "ubuntu" and the package name to find installation instructions.

If the EC2 instance is command line only, you should probably start looking here, as it has links to other sources as well as a tutorial on repo management from the command line from the Ubuntu online manual.

share|improve this answer
    
Hi Bart, How do I do that with ssh? –  Industrial May 21 '10 at 11:33
    
Just added a link to command line management of repos :-) Let us know if that has information that helps. –  Bart Silverstrim May 21 '10 at 11:35
    
You may not have universe repos enabled. That link should have information on enabling it and updating them. –  Bart Silverstrim May 21 '10 at 11:35
    
Great stuff! Now I'll managed to get a step further. What about this: "Depends: libc6 (>= 2.7) but 2.3.6-0ubuntu20.5" ? Can I update Lib6? –  Industrial May 21 '10 at 11:40
1  
Glad it's working for you! –  Bart Silverstrim May 21 '10 at 18:53

You should look at /etc/apt/sources.list.

A thorough tutorial can be found in the Ubuntu documentation.

Repositories Using the Command Line - Community Ubuntu Documentation

share|improve this answer

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.