popcon-largest-unused command not found

In this troubleshooting guide we learn how to fix popcon-largest-unused command not found error message

Introduction

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

popcon-largest-unused: command not found

or when using sudo you get the following error message

sudo: popcon-largest-unused: command not found

Solutions to popcon-largest-unused: command not found

How To Fix popcon-largest-unused: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu popcon-largest-unused is provided by popularity-contest package.

popularity-contest is:

Ubuntu no longer collects popularity-contest statistics. This package is being kept for compatibility reasons.

The popularity-contest package sets up a cron job that will periodically anonymously submit to the Debian developers statistics about the most used Debian packages on this system.

This information helps Debian make decisions such as which packages should go on the first CD. It also lets Debian improve future versions of the distribution so that the most popular packages are the ones which are installed automatically for new users.

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

sudo apt-get -y install popularity-contest

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

You can also use apt command to install popularity-contest.

sudo apt -y install popularity-contest

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

sudo aptitude install popularity-contest

Summary

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