migrate-ebs-image command not found

In this troubleshooting guide we learn how to fix migrate-ebs-image command not found error message

Introduction

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

migrate-ebs-image: command not found

or when using sudo you get the following error message

sudo: migrate-ebs-image: command not found

Solutions to migrate-ebs-image: command not found

How To Fix migrate-ebs-image: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu migrate-ebs-image is provided by libvm-ec2-perl package.

libvm-ec2-perl is:

This is an interface to the 2014-05-01 version of the Amazon AWS API (http://aws.amazon.com/ec2). It was written provide access to the new tag and metadata interface that is not currently supported by Net::Amazon::EC2, as well as to provide developers with an extension mechanism for the API. This library will also support the Eucalyptus open source cloud (http://open.eucalyptus.com).

The main interface is the VM::EC2 object, which provides methods for interrogating the Amazon EC2, launching instances, and managing instance lifecycle.

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

sudo apt-get -y install libvm-ec2-perl

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

You can also use apt command to install libvm-ec2-perl.

sudo apt -y install libvm-ec2-perl

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

sudo aptitude install libvm-ec2-perl

Summary

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