To stop the avahi-daemon in Ubuntu Linux, open a terminal window and enter the command below:
$ sudo service avahi-daemon disable
<enter>
To remove avahi-daemon altogether, enter the following command:
$ sudo apt-get purge avahi-daemon
<enter>
Or in Ubuntu 18.10, to stop the service from starting, enter the following command:
$ sudo chkconfig avahi-daemon off
<enter>