Package Mirrors

Validated on 29 Jan 2026 • Last edited on 29 Jan 2026

DigitalOcean Droplets are Linux-based virtual machines (VMs) that run on top of virtualized hardware. Each Droplet you create is a new server you can use, either standalone or as part of a larger, cloud-based infrastructure.

DigitalOcean provides local mirrors of Debian and Ubuntu’s upstream package archives at mirrors.digitalocean.com. Mirrors are local copies of the upstream package archive that allow for faster download of packages when installing and upgrading using your Linux distribution’s package manager.

DigitalOcean mirrors are not official mirrors of the upstream package archives and are not intended for use outside of DigitalOcean hosted resources. The mirrors support both HTTP and HTTPS, but are not available for rsync.

Mirror Availability

Mirrors are strategically deployed in various regions to provide faster access to upstream package archives. They are configured for redundancy and enhanced resiliency.

We provide local mirrors of Debian and Ubuntu package archives. As the upstream distribution makes changes to their archives, we mirror those changes.

Droplet base images are automatically configured to use local mirrors of upstream package archives for supported Linux distributions. Custom images can be configured to point at our local mirrors using the instructions that follow.

Supported Linux Distributions

The following distrubutions are mirrored by mirrors.digitalocean.com:

OS Upstream URL DigitalOcean Mirror URL
Debian https://deb.debian.org/debian/ https://mirrors.digitalocean.com/debian/
Ubuntu https://archive.ubuntu.com/ubuntu/ https://mirrors.digitalocean.com/ubuntu/

Troubleshooting

If you experience issues with the DigitalOcean mirrors, you can temporarily fall back to the upstream package archives using the following directios.

Fallback to Upstream Mirrors

  1. Back up your current APT configuration:

    Debian

    sudo cp /etc/apt/mirrors/debian.list /etc/apt/mirrors/debian.list.backup

    Ubuntu

    sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
  2. Replace the DigitalOcean mirror URLs with the upstream URLs:

    Debian:

    sudo sed -i 's/mirrors.digitalocean.com/deb.debian.org/g' /etc/apt/mirrors/debian.list

    Ubuntu:

    sudo sed -i 's/mirrors.digitalocean.com/archive.ubuntu.com/g' /etc/apt/sources.list.d/*
  3. Update your package lists:

    sudo apt update

Restore DigitalOcean Mirrors

Once the issue is resolved, switch back to the DigitalOcean mirrors by restoring the configuration file backups created in the previous section:

Debian

sudo cp /etc/apt/mirrors/debian.list.backup /etc/apt/mirrors/debian.list
sudo apt update

Ubuntu

sudo cp /etc/apt/sources.list.backup /etc/apt/sources.list
sudo apt update

Report an Issue with Mirrors

If you are encountering an issue with the DigitalOcean mirrors you can contact support for assistance.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.