In this article, we’ll learn how to resolve “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.
Hey there, My name is Anup Maurya. I was born with love with programming and worked with TCS. One of best global (IT) services and consulting company as System Administrator . I also love graphics designing. It's my pleasure to have you here.