virt-top command not found

In this troubleshooting guide we learn how to fix virt-top command not found error message

Introduction

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

virt-top: command not found

or when using sudo you get the following error message

sudo: virt-top: command not found

Solutions to virt-top: command not found

How To Fix virt-top: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu virt-top is provided by virt-top package.

virt-top is:

virt-top is a top-like utility for showing stats of virtualized domains. Many keys and command line options are the same as for ordinary top.

It uses libvirt so it capable of showing stats across a variety of different virtualization systems (virtual machines or VM). Some supported systems are KVM, XEN and QEMU.

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

sudo apt-get -y install virt-top

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

You can also use apt command to install virt-top.

sudo apt -y install virt-top

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

sudo aptitude install virt-top

Summary

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