dracut-catimages command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dracut-catimages: command not found
or when using sudo you get the following error message
sudo: dracut-catimages: command not found
Solutions to dracut-catimages: command not found
How To Fix dracut-catimages: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dracut-catimages is provided by dracut-core package.
dracut-core is:
Unlike existing initramfs’s, this is an attempt at having as little as possible hard-coded into the initramfs as possible. The initramfs has (basically) one purpose in life – getting the rootfs mounted so that we can transition to the real rootfs. This is all driven off of device availability. Therefore, instead of scripts hard-coded to do various things, we depend on udev to create device nodes for us and then when we have the rootfs’s device node, we mount and carry on. Having the root on MD, LVM2, LUKS is supported as well as NFS, iSCSI, NBD and FCOE with dracut-network.
To fix this problem, we can install more using the command below.
sudo apt-get -y install dracut-core
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install dracut-core.
sudo apt -y install dracut-core
Or if you have aptitude installed you can use the following command.
sudo aptitude install dracut-core
Summary
In this tutorial we learn how to fix dracut-catimages command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.