fakeroot-ng command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
fakeroot-ng: command not found
or when using sudo you get the following error message
sudo: fakeroot-ng: command not found
Solutions to fakeroot-ng: command not found
How To Fix fakeroot-ng: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu fakeroot-ng is provided by fakeroot-ng package.
fakeroot-ng is:
This is a clean reimplementation of the fakeroot command. Just like it, anything run within the fake root command will assume it is running as root. Unlike it, fakeroot-ng is not based on LD_PRELOAD but on ptrace.
The practical upshot of this is that the technology supports intercepting the “open” system call. In particular, this allows simulating the “chroot” command reliably.
Another important difference is that fakeroot-ng can fool applications that do not perform system calls through glibc, such as statically linked executables and programs written in some non-C languages (like the latest Sun JDK).
To fix this problem, we can install more using the command below.
sudo apt-get -y install fakeroot-ng
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install fakeroot-ng.
sudo apt -y install fakeroot-ng
Or if you have aptitude installed you can use the following command.
sudo aptitude install fakeroot-ng
Summary
In this tutorial we learn how to fix fakeroot-ng command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.