VOOZH about

URL: https://linuxconfig.org/e-unable-to-locate-package-apt-package-installation-error

⇱ Install DEB Package on Linux with Apt Command


Skip to content

Symptoms

When trying to install a DEB file package using the apt linux command the following error massage may occur:

# apt install package_name.deb
Reading package lists... Done
Building dependency tree 
Reading state information... Done
E: Unable to locate package package_name.deb
E: Couldn't find any package by glob 'package_name.deb'
E: Couldn't find any package by regex 'package_name.deb'

Solution

Supply a full path to your external DEB file package instead of a relative path. For example:

# apt install /home/directory/package_name.deb