androresolvd command not found

In this troubleshooting guide we learn how to fix androresolvd command not found error message

Introduction

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

androresolvd: command not found

or when using sudo you get the following error message

sudo: androresolvd: command not found

Solutions to androresolvd: command not found

How To Fix androresolvd: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu androresolvd is provided by android-androresolvd package.

android-androresolvd is:

Small user space daemon to get the Android DNS server setting and maintain the resolver config on a regulary basis. Note, that this daemon has to be started by some running android programs, in order to have the ANDROID_PROPERTY_WORKSPACE environment variable and the /dev/ashmem file descriptor (usually #9) that is inherited from the calling process. Another note: cannot be started from a login shell, because bash --login closes all inherited file descriptors.

This only makes sense to install on a Debian chroot running on Android.

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

sudo apt-get -y install android-androresolvd

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

You can also use apt command to install android-androresolvd.

sudo apt -y install android-androresolvd

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

sudo aptitude install android-androresolvd

Summary

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