Report this

What is the reason for this report?

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

Posted on February 21, 2016

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?



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!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.