mender-artifact command not found

In this troubleshooting guide we learn how to fix mender-artifact command not found error message

Introduction

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

mender-artifact: command not found

or when using sudo you get the following error message

sudo: mender-artifact: command not found

Solutions to mender-artifact: command not found

How To Fix mender-artifact: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mender-artifact is provided by mender-artifact package.

mender-artifact is:

Mender Artifacts Library Mender is an open source over-the-air (OTA) software updater for embedded Linux devices. Mender comprises a client running at the embedded device, as well as a server that manages deployments across many devices.

This package contains the mender-artifact program which is used to generate the artifacts needed for mender OTA updates. The artifacts are generated from your existing ext4 rootfs image that you built for direct device deployments.

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

sudo apt-get -y install mender-artifact

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

You can also use apt command to install mender-artifact.

sudo apt -y install mender-artifact

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

sudo aptitude install mender-artifact

Summary

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