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

Ubuntu Server 9.10

Hi Guys,

I think this one is a simple one... I'm trying to install fail2ban and get the following error:

$ sudo apt-get install fail2ban
Reading package lists... 
Done Building dependency tree Reading state information... 
Done E: Couldn't find package fail2ban

Which repositories do I need enabled in order to install it?

I'm presently have the following enabled in sources.list

deb http://us.archive.ubuntu.com/ubuntu/ karmic main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic main restricted

deb http://security.ubuntu.com/ubuntu karmic-security main restricted
deb-src http://security.ubuntu.com/ubuntu karmic-security main restricted

deb http://security.ubuntu.com/ubuntu karmic-security universe
deb-src http://security.ubuntu.com/ubuntu karmic-security universe

deb http://security.ubuntu.com/ubuntu karmic-security multiverse
deb-src http://security.ubuntu.com/ubuntu karmic-security multiverse

deb http://de.archive.ubuntu.com/ubuntu/ karmic multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ karmic multiverse

deb http://de.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ karmic-updates multiverse

On a related note -- in the spirit of "teaching a man to fish", is there an easy way to find out where a package resides in general?

Thanks!

-M

share|improve this question

2 Answers 2

up vote 8 down vote accepted

You need to add the universe component to any of the "main" (not security) sources.

deb http://us.archive.ubuntu.com/ubuntu/ karmic main restricted universe
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic main restricted universe

Packages not in the main component are marked as such with a red label after their name in the Ubuntu package database: http://packages.ubuntu.com/karmic/fail2ban

share|improve this answer
    
Awesome! Thanks Mikael. How did you know that? –  Mike B Nov 24 '09 at 17:21
1  
Mikey: One way to find out is search the official repos at packages.ubuntu.com ... if the package's not there, Google. –  grawity Nov 24 '09 at 17:56
    
Edited my answer with the answer to the second question. –  Mikael S Nov 24 '09 at 17:58
1  
For anyone else not very familiar with Linux/apt - you make these changes to the /etc/apt/sources.list file –  Lance McNearney Jan 17 '10 at 0:50

I would also suggest as an alternative DenyHosts: http://denyhosts.sourceforge.net

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.