mkosi command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mkosi: command not found
or when using sudo you get the following error message
sudo: mkosi: command not found
Solutions to mkosi: command not found
How To Fix mkosi: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mkosi is provided by mkosi package.
mkosi is:
A fancy wrapper around “dnf –installroot”, “debootstrap” and “pacstrap”, that may generate disk images with a number of bells and whistles.
Generated images are “legacy-free”. This means only GPT disk labels (and no MBR disk labels) are supported, and only systemd based images may be generated. Moreover, for bootable images only EFI systems are supported (not plain MBR/BIOS).
To fix this problem, we can install more using the command below.
sudo apt-get -y install mkosi
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mkosi.
sudo apt -y install mkosi
Or if you have aptitude installed you can use the following command.
sudo aptitude install mkosi
Summary
In this tutorial we learn how to fix mkosi command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.