ebsnvme-id command not found

In this troubleshooting guide we learn how to fix ebsnvme-id command not found error message

Introduction

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

ebsnvme-id: command not found

or when using sudo you get the following error message

sudo: ebsnvme-id: command not found

Solutions to ebsnvme-id: command not found

How To Fix ebsnvme-id: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ebsnvme-id is provided by amazon-ec2-utils package.

amazon-ec2-utils is:

amazon-ec2-utils contains a set of utilities and settings for Linux deployments in EC2.

It includes:

  • ec2-metadata - Use to retrieve EC2 instance metadata from within a running EC2 instance
  • ebsnvme-id - Read EBS device information and provide information about the volume.
  • Various udev rules to ensure consistent device naming.

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

sudo apt-get -y install amazon-ec2-utils

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

You can also use apt command to install amazon-ec2-utils.

sudo apt -y install amazon-ec2-utils

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

sudo aptitude install amazon-ec2-utils

Summary

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