debfoster command not found

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

Introduction

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

debfoster: command not found

or when using sudo you get the following error message

sudo: debfoster: command not found

Solutions to debfoster: command not found

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

In Ubuntu debfoster is provided by debfoster package.

debfoster is:

debfoster is a wrapper program for apt and dpkg. When first run, it will ask you which of the installed packages you want to keep installed.

After that, it maintains a list of packages that you want to have installed on your system. It uses this list to detect packages that have been installed only because other packages depended on them. If one of these dependencies changes, debfoster will take notice, and ask if you want to remove the old package.

This helps you to maintain a clean Debian install, without old (mainly library) packages lying around that aren’t used any more.

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

sudo apt-get -y install debfoster

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

You can also use apt command to install debfoster.

sudo apt -y install debfoster

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

sudo aptitude install debfoster

Summary

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