oz-cleanup-cache command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
oz-cleanup-cache: command not found
or when using sudo you get the following error message
sudo: oz-cleanup-cache: command not found
Solutions to oz-cleanup-cache: command not found
How To Fix oz-cleanup-cache: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu oz-cleanup-cache is provided by oz package.
oz is:
Oz is a tool for automatically installing guest OSs with only minimal up-front input from the user.
For each type of guest operating system, Oz supports up to three operations: operating system installation (oz-install), operating system customization (oz-customize), and ICICLE manifest generation (oz-generate-icicle).
Currently many versions of popular operating systems are supported, including Debian, Ubuntu, RHEL/CentOS, Fedora, openSUSE, Mandrake, and FreeBSD. See also virt-install(1) and virt-builder(1) from the virtinst and libguestfs-tools packages.
To fix this problem, we can install more using the command below.
sudo apt-get -y install oz
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install oz.
sudo apt -y install oz
Or if you have aptitude installed you can use the following command.
sudo aptitude install oz
Summary
In this tutorial we learn how to fix oz-cleanup-cache command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.