Trying to install apps that depend on avahi-daemon results in warning about duplicate mDNS service. What is the recommended course of action?

I’m trying to install darktable (chromium IIRC causes this as well) and I am faced with the following warning

WARNING: Detected another IPv4 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended.

Is there a recommended way to avoid the issue?

It seems that

systemctl stop avahi-daemon.socket
systemctl disable avahi-daemon
systemctl disable avahi-daemon.socket

right after installation keeps everything functioning normally