waagent command not found

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

Introduction

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

waagent: command not found

or when using sudo you get the following error message

sudo: waagent: command not found

Solutions to waagent: command not found

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

In Ubuntu waagent is provided by walinuxagent package.

walinuxagent is:

The Windows Azure Linux Agent supports the provisioning and running of Linux VMs in the Windows Azure cloud. This package should be installed on Linux disk images that are built to run in the Windows Azure environment.

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

sudo apt-get -y install walinuxagent

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

You can also use apt command to install walinuxagent.

sudo apt -y install walinuxagent

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

sudo aptitude install walinuxagent

Summary

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