Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Set Up A Local Ubuntu Mirror

If configuring apt to dynamically use the closest mirrors on the internet just isn't fast enough, you can deploy your own mirror on your local network, which will dramatically improve the performance of updates and installations for other computers on your network. This is particularly useful if you have automatic KVM guest installations as I am. These tutorials will set you up so that you have an ubuntu mirror that is accessible through the web (http). You do not have to have your mirror accessible this way and FTP/NAS are good alternatives, but I chose http because it's common and easy.

Ubuntu users can use two different methods for setting up an ubuntu mirror, please pick one:

After having created your mirror you need to configure apt to use your local mirror.

Last updated: 17th April 2021
First published: 16th August 2018

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch