addr2name command not found
In this troubleshooting guide we learn how to fix addr2name command not found error message
Introduction
When you run more command in linux terminal / console, you get the following error message
addr2name: command not found
or when using sudo you get the following error message
sudo: addr2name: command not found
Solutions to addr2name: command not found
How To Fix addr2name: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu addr2name is provided by ndisc6 package.
ndisc6 is:
ndisc6 gathers a few diagnostic tools for IPv6 networks including:
- ndisc6, which performs ICMPv6 Neighbor Discovery in userland,
- rdisc6, which performs ICMPv6 Router Discovery in userland,
- rltraceroute6, a UDP/ICMP IPv6 implementation of traceroute,
- tcptraceroute6, a TCP/IPv6-based traceroute implementation,
- tcpspray6, a TCP/IP Discard/Echo bandwidth meter,
- addrinfo, easy script interface for hostname and address resolution,
- dnssort, DNS sorting script.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ndisc6
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ndisc6.
sudo apt -y install ndisc6
Or if you have aptitude installed you can use the following command.
sudo aptitude install ndisc6
Summary
In this tutorial we learn how to fix addr2name command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.