image-factory command not found

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

Introduction

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

image-factory: command not found

or when using sudo you get the following error message

sudo: image-factory: command not found

Solutions to image-factory: command not found

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

In Ubuntu image-factory is provided by image-factory package.

image-factory is:

image-factory is a command line tool for building golden Linux images. It uses virt-install to do installations via the network. The installation and configuration of the images is done using the netinstall support from the distributions, i.e.

  • preseed for Debian/Ubuntu
  • Kickstart for CentOS/Fedora
  • AutoYaST for openSUSE

image-factory is used by IONOS Cloud to build the golden public Linux images for their Enterprise Cloud. The configuration files are shipped with this project to allow anyone to rebuild their images.

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

sudo apt-get -y install image-factory

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

You can also use apt command to install image-factory.

sudo apt -y install image-factory

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

sudo aptitude install image-factory

Summary

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