painintheapt command not found

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

Introduction

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

painintheapt: command not found

or when using sudo you get the following error message

sudo: painintheapt: command not found

Solutions to painintheapt: command not found

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

In Ubuntu painintheapt is provided by painintheapt package.

painintheapt is:

Pain in the APT pesters people about available package upgrades, just like apticron or cron-apt. However, it does so by SMTP and XMPP (direct, MUC/groupchat, or pubsub), but also by calling mailx.

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

sudo apt-get -y install painintheapt

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

You can also use apt command to install painintheapt.

sudo apt -y install painintheapt

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

sudo aptitude install painintheapt

Summary

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