Friday, September 13, 2019

apt - How can I use a local package mirror at system installation time?

I would like to use a local mirror of the Ubuntu repositories when I'm completing an Ubuntu Server installation. I have a mirror already created to serve the repository over the LAN using http, this works for updates/upgrades with machines using custom a /etc/apt/sources.list file.


How do I ensure that any package updates/upgrades which are used in a normal Ubuntu installation come from this source? I could complete the installation with the network cable unplugged, replace the sources file, and then upgrade the packages, but would rather do it all as part of the initial installation phase.


Ideally the answer will not involve building my own custom version of the installer, but if that's a necessary process feel free to describe it. As this is a server version installation, it's not possible to simply change the sources file in a live session.

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...