Fix 1: Double-Check the Package Name
Ubuntu packages are case sensitive. Typos and incorrect casing are common issues by which one can face this error. Ensure the package name is spelled precisely and matches the official name found in repositories.
Tip: You can use apt search command to search for correct package name in terminal.
Syntax: sudo apt search {package_name}
Example:
command: sudo apt search cmatri
In this example, we found that our package name was not complete, and that’s why we were getting that error.
How to fix unable to locate package in Ubuntu?
Encountering the “E: Unable to locate package” error in Ubuntu can be frustrating, but it’s often caused by a few common reasons and can be resolved with straightforward steps. Here are possible ways to identify the cause and resolve this error.
Contact Us