dpkg-repack command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dpkg-repack: command not found
or when using sudo you get the following error message
sudo: dpkg-repack: command not found
Solutions to dpkg-repack: command not found
How To Fix dpkg-repack: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dpkg-repack is provided by dpkg-repack package.
dpkg-repack is:
dpkg-repack creates a .deb file out of a package that has already been installed. If any changes have been made to the package while it was unpacked (i.e. files in /etc were modified), the new package will inherit the changes.
This utility can make it easy to copy packages from one computer to another, or to recreate packages that are installed on your system, but no longer available elsewhere, or to store the current state of a package before you upgrade it.
To fix this problem, we can install more using the command below.
sudo apt-get -y install dpkg-repack
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install dpkg-repack.
sudo apt -y install dpkg-repack
Or if you have aptitude installed you can use the following command.
sudo aptitude install dpkg-repack
Summary
In this tutorial we learn how to fix dpkg-repack command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.