avahi-publish-address command not found

In this troubleshooting guide we learn how to fix avahi-publish-address command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

avahi-publish-address: command not found

or when using sudo you get the following error message

sudo: avahi-publish-address: command not found

Solutions to avahi-publish-address: command not found

How To Fix avahi-publish-address: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu avahi-publish-address is provided by avahi-utils package.

avahi-utils is:

Avahi is a fully LGPL framework for Multicast DNS Service Discovery. It allows programs to publish and discover services and hosts running on a local network with no specific configuration. For example you can plug into a network and instantly find printers to print to, files to look at and people to talk to.

This package contains several utilities that allow you to interact with the Avahi daemon, including publish, browsing and discovering services.

To fix this problem, we can install more using the command below.

sudo apt-get -y install avahi-utils

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install avahi-utils.

sudo apt -y install avahi-utils

Or if you have aptitude installed you can use the following command.

sudo aptitude install avahi-utils

Summary

In this tutorial we learn how to fix avahi-publish-address command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.