aptd command not found

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

Introduction

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

aptd: command not found

or when using sudo you get the following error message

sudo: aptd: command not found

Solutions to aptd: command not found

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

In Ubuntu aptd is provided by aptdaemon package.

aptdaemon is:

Aptdaemon allows normal users to perform package management tasks, e.g. refreshing the cache, upgrading the system, installing or removing software packages.

Currently it comes with the following main features:

  • Programming language independent D-Bus interface, which allows one to write clients in several languages
  • Runs only if required (D-Bus activation)
  • Fine grained privilege management using PolicyKit, e.g. allowing all desktop user to query for updates without entering a password
  • Support for media changes during installation from DVD/CDROM
  • Support for debconf (Debian’s package configuration system)
  • Support for attaching a terminal to the underlying dpkg call

This package contains the aptd script and all the data files required to run the daemon. Moreover it contains the aptdcon script, which is a command line client for aptdaemon. The API is not stable yet.

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

sudo apt-get -y install aptdaemon

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

You can also use apt command to install aptdaemon.

sudo apt -y install aptdaemon

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

sudo aptitude install aptdaemon

Summary

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