Error when trying to install git on the pre made LAMP image that use Ubuntu 14.04

February 21, 2016 2.2k views
LAMP Stack Ubuntu Git

I am trying to install git onto my drop but when I run “apt-get install git” I get this error “Err trusty-updates/main git-man all 1:1.9.1-1ubuntu0.1
404 Not Found [IP: 80]”

I am also logged in as the root user. What could be the issue?

1 comment
2 Answers

Try as root:

mkdir /var/lib/apt/lists.deletethis
mv /var/lib/apt/lists/* /var/lib/apt/lists.deletethis
apt-get update
apt-get install git

If it all works, then

rm -rf /var/lib/apt/lists.deletethis

That worked!! Thanks for the help.

Have another answer? Share your knowledge.