Speed up software downloads and upgrades by using the Webdock package repositories
Last updated: August 11th 2025
Introduction
You may know that Ubuntu/Debian host their own APT mirrors across the world. APT on your servers uses on one of those mirrors to download packages from them. However, these mirrors are physically far from your Webdock server, thereby adding up latency and slower package downloads.
Webdock now offers an in-house APT mirror. This guide provides instructions on how to use this mirror instead. This drastically reduces the latency and relatively increases package download speeds.
Let's get started!
Note: This change is only necessary for servers provisioned before August 11th. New servers already use the in-house APT mirror!
Initial Steps
Switch to root first.
$ sudo su
Now we'll start by removing the default APT mirror configuration.
# rm /etc/apt/sources.list # rm /etc/apt/sources.list.d/ubuntu.sources
Do not worry if the second command errors out, just continue :D
Next, we'll write a cloud-init config which prevents cloud-init from rewriting the repo settings.
# cat > /etc/cloud/cloud.cfg.d/99_preserve_ubuntu_sources.cfg << EOF apt_preserve_sources_list: true EOF
Mirror Setup
Ubuntu by default uses "archive.ubuntu.com" APT mirror. To change it to Webdock mirror run the below commands on the command line as root user based on the distro you are running.
Ubuntu Noble (Ubuntu 24.04)
The following command will change the repo to Webdock Ubuntu Noble mirror.
# cat > /etc/apt/sources.list << EOF deb http://ubuntu.mirror.webdock.tech/ubuntu noble main restricted universe multiverse deb http://ubuntu.mirror.webdock.tech/ubuntu noble-updates main restricted universe multiverse deb http://ubuntu.mirror.webdock.tech/ubuntu noble-security main restricted universe multiverse EOF
Once you did that, run an APT update and you'll see APT hitting Webdock's mirror.
You'd see something like this:
philip@newubuntu:~$ sudo apt update Hit:1 http://ubuntu.mirror.webdock.tech/ubuntu noble InRelease Hit:2 http://ubuntu.mirror.webdock.tech/ubuntu noble-updates InRelease Hit:3 http://ubuntu.mirror.webdock.tech/ubuntu noble-security InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date.
Ubuntu Jammy (Ubuntu 22.04)
The following command will change the repo to Webdock Ubuntu Jammy mirror.
# cat > /etc/apt/sources.list << EOF deb http://ubuntu.mirror.webdock.tech/ubuntu jammy main restricted universe multiverse deb http://ubuntu.mirror.webdock.tech/ubuntu jammy-updates main restricted universe multiverse deb http://ubuntu.mirror.webdock.tech/ubuntu jammy-security main restricted universe multiverse EOF
Once you did that, run an APT update and you'll see APT hitting Webdock's mirror.
The output will look something like this:
philip@newubuntu:~$ sudo apt update Hit:1 http://ubuntu.mirror.webdock.tech/ubuntu jammy InRelease Hit:2 http://ubuntu.mirror.webdock.tech/ubuntu jammy-updates InRelease Hit:3 http://ubuntu.mirror.webdock.tech/ubuntu jammy-security InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date.
Debian Bookworm (Debian 12)
Run:
# cat > /etc/apt/sources.list << EOF deb http://debian.mirror.webdock.tech/debian bookworm main contrib deb http://debian.mirror.webdock.tech/debian bookworm-updates main contrib deb http://deb.debian.org/debian-security/ bookworm-security main contrib EOF
We intentionally pull security updates from Debian directly as that is what Debian has recommended.
An APT update result will look something like this:
philip@newubuntu:~$ sudo apt update Hit:1 http://debian.mirror.webdock.tech/debian bookworm InRelease Hit:2 http://debian.mirror.webdock.tech/debian bookworm-updates InRelease Hit:3 http://deb.debian.org/debian-security bookworm-security InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done 2 packages can be upgraded. Run 'apt list --upgradable' to see them.
Conclusion
That's it. With the in-house repo you'll get faster download speeds and hence the update/upgrade time reduces by a significant margin.
If you encounter any issues or need assistance with this, feel free to contact our support.
Related articles
-
Optimizing Network Speed on Your Webdock KVM Server
A mini article with some kernel tweaks to improve network performance on your server
Last updated: September 6th 2024
-
How to configure Crontab on Linux
In this article we detail how Crontab works and all the available options for configuration along with correct syntax and examples.
Last updated: January 4th 2024
-
How to free up disk space on an Ubuntu Nginx or Apache Web Server
This article outlines useful commands you can run on your server in order to free up disk space.
Last updated: October 16th 2023
-
How to monitor webdock server resources using Prometheus, Grafana, Node Exporter and Prometheus Alert Manager
This guide includes the step by step procedure of installing different packages like Prometheus, Grafana, Node exporter and Alert Manager.
Last updated: February 20th 2025
-
How to Disable IPv6 on Your Webdock Server
The article explain how to disable IPv6 on your Webdock server, both temporarily and permanently.
Last updated: August 13th 2024
-
Automating Initial Server Configuration with Ansible
Read our new article: Learn how to automate your cloud server configuration using Ansible.
Last updated: February 12th 2025
-
Top Tools to Install on Your Ubuntu Web Server
A list of important tools that you can install on your production Ubuntu web server
Last updated: July 19th 2023
-
How To Benchmark Your Server with YABS
A guide to do benchmarking of your server's CPU, network performance, and such using YABS.
Last updated: April 1st 2024
-
Systemd Units - A Comprehensive Guide for Linux Admins
A detailed guide on systemd internals for Linux admins
Last updated: August 13th 2024
-
A Quick Guide to Managing Systemd Services
A short guide that helps you manage systemd services
Last updated: August 13th 2024
-
How to Benchmark PHP Performance on Your Webdock Server
Instructions for bechmarking PHP performance on your Webdock server
Last updated: February 12th 2025
-
Why don't I have the memory or disk allowance that I expect?
In this article we show why inside your instance you may see lower than expected RAM or DISK allowance available. It has all to do with units!
Last updated: November 29th 2024
-
Guide to Increasing Open File Limits for Nginx, Apache2, and Linux
Instructions on how to bump up the open file limit for Nginx and Apache webserver.
Last updated: March 3rd 2025
-
An Introduction to Netstat
An introduction article on the most popular networking command in Linux, Netstat
Last updated: March 24th 2025
-
Beyond the Basics: Understanding Socket Statistics
An article on the "ss" command
Last updated: March 26th 2025
-
What Is Netcat and How To Use It
A detailed article on Netcat
Last updated: April 28th 2025
-
How to Convert Your AlmaLinux installation to CloudLinux
Instructions to convert AlmaLinux to CloudLinux
Last updated: June 12th 2025