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

February 21, 2016 629 views
LAMP Stack Git Ubuntu

I am trying to install git onto my drop but when I run "apt-get install git" I get this error "Err http://mirrors.digitalocean.com/ubuntu/ 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.