Aptexit code > 0

E: Unable to locate package

$E: Unable to locate package docker-ce

Analysis

APT cannot find the package you requested in its current list of repositories.

Common Triggers

  • Typo in the package name.
  • You haven't run apt update recently.
  • The repository containing the package is not added.

Debug Checks

  • $Search for the package: apt search <name>.

Resolution

1
Run sudo apt update.
2
Add the missing repository (PPA or software source).

Metadata

Tool
Apt
Severity
High
Tags
#apt#linux#package