resolvconf-admin command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
resolvconf-admin: command not found
or when using sudo you get the following error message
sudo: resolvconf-admin: command not found
Solutions to resolvconf-admin: command not found
How To Fix resolvconf-admin: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu resolvconf-admin is provided by resolvconf-admin package.
resolvconf-admin is:
resolvconf-admin deals with setting the local DNS information, which needs to be done by root on some systems. For example, it should enable a non-privileged DHCP client to add information about DNS resolvers it discovers.
If /sbin/resolvconf is present, it is invoked as root with the recommended data. If it is not present, then /etc/resolv.conf is overwritten with a simple file.
Note: setuid binaries like resolvconf-admin are additional attack surface on your system. If you can use a different approach, such as enabling systemd-resolved, you should probably prefer it.
DO NOT INSTALL THIS PACKAGE (or any other with a setuid binary) IF YOU DO NOT NEED IT!
To fix this problem, we can install more using the command below.
sudo apt-get -y install resolvconf-admin
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install resolvconf-admin.
sudo apt -y install resolvconf-admin
Or if you have aptitude installed you can use the following command.
sudo aptitude install resolvconf-admin
Summary
In this tutorial we learn how to fix resolvconf-admin command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.