Question

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

Posted February 21, 2016 2.3k views
UbuntuLAMP StackGit

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: 192.241.164.26 80]”

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

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
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.

Submit an Answer