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

I use lighttpd instead of apache, but all the packages in the debian repositories are so keen on installing apache when I install a web based package. So I installed gitweb with apt-get, telling it to ignore the apache2 dependency... Now when I try to install any package, it complains about unmet dependencies.

root@mercury:~# apt-get install fail2ban python-central   
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
gitweb : Depends: apache2 or
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

How would I tell apt-get to ignore unmet dependencies by default?

share|improve this question
You are probably doing something wrong :) On supprorted versions of Debian, the lighttpd package also provides the httpd virtual package which should be sufficient for gitweb. – Holger Just Jul 27 '11 at 14:53
Normally, I would install lighttpd from the repositories, but I compiled lighttpd myself so I could exclude certain modules. – Waleed Ahmad Jul 28 '11 at 12:50
up vote 5 down vote accepted

Install the equivs package.

That will let you create trivial packages that fulfill the dependency. In this case, you'll create a fake package providing httpd.

Here is an article on how to do this task.

Although, as @Holger says, the best thing to do is install lighttpd from the debian repository as it provides httpd.

share|improve this answer
That worked. Thanks! – Waleed Ahmad Jul 28 '11 at 12:50

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.