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.
nano etc/apt/sources.listReplace “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