By Emeve
Hi! It seems mirrors.digitalocean.com is not working. I’ve tried to install a package with apt-get (php7.0-dev) but it doesn’t even start to transfer the package:
0% [Connecting to mirrors.digitalocean.com (95.85.0.50)] Err:1 http://lon1.mirrors.digitalocean.com/ubuntu xenial/main amd64 libpcrecpp0v5 amd64 2:8.38-3.1 Could not connect to lon1.mirrors.digitalocean.com:80 (95.85.0.50), connection timed out [IP: 95.85.0.50 80]
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.
I think that my errors are into the same issue. The only difference i see is that says that “Connection refused”
Hit:1 http://ppa.launchpad.net/certbot/certbot/ubuntu zesty InRelease
Ign:2 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 InRelease
Hit:3 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release
Hit:5 http://security.ubuntu.com/ubuntu zesty-security InRelease
Hit:6 http://repo.percona.com/apt zesty InRelease
Hit:7 https://repos.sonar.digitalocean.com/apt main InRelease
Err:4 http://ams2.mirrors.digitalocean.com/ubuntu zesty InRelease
**Could not connect to ams2.mirrors.digitalocean.com:80 (95.85.0.50). - connect (111: Connection refused)**
Err:8 http://ams2.mirrors.digitalocean.com/ubuntu zesty-updates InRelease
Unable to connect to ams2.mirrors.digitalocean.com:http:
Hit:9 http://repo.percona.com/apt trusty InRelease
Err:10 http://ams2.mirrors.digitalocean.com/ubuntu zesty-backports InRelease
Unable to connect to ams2.mirrors.digitalocean.com:http:
Hit:11 https://deb.nodesource.com/node_6.x zesty InRelease
Reading package lists... Done
W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/zesty/InRelease **Could not connect to ams2.mirrors.digitalocean.com:80 (95.85.0.50). - connect (111: Connection refused)**
W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/zesty-updates/InRelease Unable to connect to ams2.mirrors.digitalocean.com:http:
W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/zesty-backports/InRelease Unable to connect to ams2.mirrors.digitalocean.com:http:
W: Some index files failed to download. They have been ignored, or old ones used instead.
Hello,
Same with Amsterdam server: “… Cannot initiate the connection to ams2.mirrors.digitalocean.com:80…”. I hope you will resolve this ASAP.
There’s a pretty easy fix for this, similar to the one above - just open /etc/apt/sources.list and change all the instances of the old Ubuntu distro to the new Ubuntu distro.
For example, I was bumping from 15.04 (vivid) to 18.04 (bionic) so I opened the file and changed “vivid” to “bionic” everywhere, and then things worked fine.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
