3

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
               httpd
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
root@mercury:~# 

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

Waleed Ahmad
  • 33
  • 1
  • 3
  • 3
    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

1 Answers1

5

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.

MikeyB
  • 39,291
  • 10
  • 105
  • 189