E: Unable to locate package git - Ubuntu on EC2

gabrtv picture gabrtv · Sep 15, 2012 · Viewed 19.2k times · Source

Looks to me like there may be a problem with the Ubuntu EC2 mirrors. After a fresh apt-get update, I'm seeting this:

$ apt-get install -yq git
E: Unable to locate package git

After a few more apt-get's, it will often succeed.

Answer

Nasser Al-Wohaibi picture Nasser Al-Wohaibi · Feb 20, 2013

Update apt-get packages, run the following command:

$ apt-get update