apt-file command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
apt-file: command not found
or when using sudo you get the following error message
sudo: apt-file: command not found
Solutions to apt-file: command not found
How To Fix apt-file: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu apt-file is provided by apt-file package.
apt-file is:
apt-file is a command line tool for searching files contained in packages for the APT packaging system. You can search in which package a file is included or list the contents of a package without installing or fetching it.
To fix this problem, we can install more using the command below.
sudo apt-get -y install apt-file
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install apt-file.
sudo apt -y install apt-file
Or if you have aptitude installed you can use the following command.
sudo aptitude install apt-file
Summary
In this tutorial we learn how to fix apt-file command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.