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

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?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.