Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

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 karmic main restricted
deb-src karmic main restricted

deb karmic-security main restricted
deb-src karmic-security main restricted

deb karmic-security universe
deb-src karmic-security universe

deb karmic-security multiverse
deb-src karmic-security multiverse

deb karmic multiverse
deb-src karmic multiverse

deb karmic-updates multiverse
deb-src 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?



share|improve this question
up vote 8 down vote accepted

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

deb karmic main restricted universe
deb-src 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:

share|improve this answer
Awesome! Thanks Mikael. How did you know that? – Mike B Nov 24 '09 at 17:21
Mikey: One way to find out is search the official repos at ... 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
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:

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.