ifmetric command not found

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

Introduction

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

ifmetric: command not found

or when using sudo you get the following error message

sudo: ifmetric: command not found

Solutions to ifmetric: command not found

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

In Ubuntu ifmetric is provided by ifmetric package.

ifmetric is:

ifmetric is a Linux tool for setting the metrics of all IPv4 routes attached to a given network interface at once. This may be used to change the priority of routing IPv4 traffic over the interface. Lower metrics correlate with higher priorities.

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

sudo apt-get -y install ifmetric

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

You can also use apt command to install ifmetric.

sudo apt -y install ifmetric

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

sudo aptitude install ifmetric

Summary

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