After migrating to another datacenter, apt still uses the old mirrors.

After migrating my NYC2 server to NYC1, apt is still using the NYC2 mirrors (apt update shows that). I took a look in /etc/apt/sources.list, but it doesn’t mention NYC2, just the generic mirrors domain.

How can I update apt to use the NYC1 mirrors?


Submit an 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.

No, it is not using old mirrors. I have the same behaviour on droplet created from start in NYC1. I think I have explanation of this, but as far as I’m not DigitalOcean mod, take it with grain of salt.

It is using generic mirror. Generic mirror is behind some type of Load Balancer who will redirect you to less loaded mirror. It doesn’t take in account your datacenter, it looks for server geolocation and which is less loaded. As far as both are in NYC, it can use any NYC mirror, usually one which is less-loaded to deliver your content on fastest possible way. This is only what can I think of now. I would like to hear official response, or you can contact support for more details.