"Unable to locate package" when running apt install

Running sudo apt install somepackage=12.3.4 -y results in the following message:

  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  E: Unable to locate package

This can be a result of an out-of-date apt update cache. The most common solution for this is to update apt using sudo apt update prior to running the sudo apt install command.

Was this article helpful?
2 out of 9 found this helpful



Article is closed for comments.