Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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'm trying to disable avahi-daemon. I tried to modify the file /etc/default/avahi-daemon, setting the AVAHI_DAEMON_DETECT_LOCAL=0 instead of 1, but when I connect to a network it starts anyway; is there no way to stop it?

I am trying to stop it because every time I connect to a network it and dhclient starts it gives my NIC another address so I cannot access the network. I'm on a Debian machine.

share|improve this question

migrated from stackoverflow.com Jan 5 '11 at 15:07

This question came from our site for professional and enthusiast programmers.

The avahi dae/etc/resolvconf/update-libc.d/avahi-daemonmon can be started by /etc/network/if-up.d/avahi-daemon and ``, but this too is disabled if you have AVAHI_DAEMON_DETECT_LOCAL=0 in /etc/default/avahi-daemon. What version of the avahi-daemon package do you have? What is the full contents of /etc/default/avahi-daemon? – Gilles Jan 5 '11 at 19:24
sudo update-rc.d -f avahi-daemon remove
share|improve this answer
hi, and if i want to enable it again? – dany Jan 5 '11 at 14:46
sudo update-rc.d avahi-daemon defaults – trojanfoe Jan 5 '11 at 14:48
cheers! I m going to try it – dany Jan 5 '11 at 14:53

You can use rcconf to disable it starting it from boot or you can manually remove it from autostartup with;

update-rc.d -f avahi-daemon remove

Only root can do this so use sudo if you are not root.

share|improve this answer
so you are saying that the file /etc/default/avhi-daemon is useless? in debian there is no rc.conf file :( – dany Jan 5 '11 at 14:46
rcconf is a program :) And the default file is for changing the behaviour of avahi-daemon not to stop it. – ismail Jan 5 '11 at 14:51
ah ok I got it! I don't have that program so I have to change the behavior.. Cheers! I m going to try it – dany Jan 5 '11 at 14:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.