cpio command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
cpio: command not found
or when using sudo you get the following error message
sudo: cpio: command not found
Solutions to cpio: command not found
How To Fix cpio: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu cpio is provided by cpio package.
cpio is:
GNU cpio is a tool for creating and extracting archives, or copying files from one place to another. It handles a number of cpio formats as well as reading and writing tar files.
To fix this problem, we can install more using the command below.
sudo apt-get -y install cpio
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install cpio.
sudo apt -y install cpio
Or if you have aptitude installed you can use the following command.
sudo aptitude install cpio
Summary
In this tutorial we learn how to fix cpio command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.