aggregate-ios command not found

In this troubleshooting guide we learn how to fix aggregate-ios command not found error message

Introduction

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

aggregate-ios: command not found

or when using sudo you get the following error message

sudo: aggregate-ios: command not found

Solutions to aggregate-ios: command not found

How To Fix aggregate-ios: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu aggregate-ios is provided by aggregate package.

aggregate is:

takes a list of prefixes in conventional format on stdin, and performs two optimisations to reduce the length of the prefix list. It removes any supplied prefixes which are supurfluous because they are already included in another supplied prefix (e.g., 203.97.2.0/24 would be removed if 203.97.0.0/17 was also supplied), and identifies adjacent prefixes that can be combined under a single, shorter-length prefix (e.g., 203.97.2.0/24 and 203.97.3.0/24 can be combined into the single prefix 203.97.2.0/23).

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

sudo apt-get -y install aggregate

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

You can also use apt command to install aggregate.

sudo apt -y install aggregate

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

sudo aptitude install aggregate

Summary

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