dpkg-www-installer command not found

In this troubleshooting guide we learn how to fix dpkg-www-installer command not found error message

Introduction

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

dpkg-www-installer: command not found

or when using sudo you get the following error message

sudo: dpkg-www-installer: command not found

Solutions to dpkg-www-installer: command not found

How To Fix dpkg-www-installer: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu dpkg-www-installer is provided by dpkg-www package.

dpkg-www is:

With the dpkg cgi-bin you can browse Debian packages on a local or remote host using a normal web browser.

You can list packages, show package information and installed files, browse documentation and navigate through the packages dependencies. You can also find all the packages owners of a file or directory or those providing a virtual package.

If you are the system administrator you can also install or remove packages by clicking on the buttons found in the package info page, provided that this feature has been enabled and you have properly configured your web browser.

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

sudo apt-get -y install dpkg-www

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

You can also use apt command to install dpkg-www.

sudo apt -y install dpkg-www

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

sudo aptitude install dpkg-www

Summary

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