virt-viewer command not found

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

Introduction

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

virt-viewer: command not found

or when using sudo you get the following error message

sudo: virt-viewer: command not found

Solutions to virt-viewer: command not found

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

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

virt-viewer is:

The console is accessed using the VNC or SPICE protocol. The guest can be referred to based on its name, ID, or UUID. If the guest is not already running, then the viewer can be told to wait until is starts before attempting to connect to the console The viewer can connect to remote hosts to lookup the console information and then also connect to the remote console using the same network transport.

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

sudo apt-get -y install virt-viewer

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

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

sudo apt -y install virt-viewer

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

sudo aptitude install virt-viewer

Summary

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