DigitalOcean mirrors failing?

February 9, 2014 6.5k views
Tried to do apt-get on my ubuntu droplet and getting a ton of 404's similar to this: Failed to fetch http://mirrors.digitalocean.com/ubuntu/pool/main/o/openssl/libss l-dev_1.0.1-4ubuntu5.10_amd64.deb 404 Not Found [IP: 95.85.0.50 80]
1 comment
5 Answers
Hello!

Please execute this command to update your package lists, then retry your installation:

apt-get update

Regards,
Will
  • I find a lot of people asking this very same question, and not a single answer that works.

    Could you please just fix the fucking mirrors, or tell us what the fuck we have to do to update the information if the mirrors that are listed in our old droplets are no longer valid?

    This issue is very annoying, and it’s just DigitalOcean’s fault.

I’m facing the same problem in Ubuntu 14.10. apt-get update fails with digital ocean mirrors if I move to default ubuntu mirrors works.

FWIW, my droplet is running Ubuntu 13.10 and apt-get seems to work fine.

Change /etc/apt/sources.list

nano etc/apt/sources.list

Replace “mirrors.digitalocean.com” with “archive.ubuntu.com”

I opened a ticket with Digital Ocean and this was the fix for me:

Are you by chance using Ubuntu 14.04 on the Droplet having issues?

The reason for that particular error has to do with Ubuntu 14.04 that is now end of life (EOL). The issue is known by Ubuntu, but is unlikely to get major attention due to it being EOL.

In order to workaround the issue, you will need to update “/etc/apt/sources.list.d/digitalocean-agent.list” manually to use http instead of https as follows:

sed -i ’s/https/http/g’ /etc/apt/sources.list.d/digitalocean-agent.list
sudo apt-get update
sudo apt-get install do-agent

Have another answer? Share your knowledge.