Celeb Glow
news | April 03, 2026

How would I get an update mirror to use its mirror folder for an update

I have a trusty mirror file structure mounted from an external volume. What I would like to do is to spin up a new, blank VM, and have it update, upgrade and install an ftp server to serve the mirror to other VMs.

I can't modify /etc/apt/sources.list to use ftp:// before the server is installed.

Is there a way to get apt-get to use the mounted volume? Will sources.list support file:// protocol?


Using the answer below, I mounted the mirror directory as a shared folder, and ran the following on the VM;

sed -i -e s# \ -e s# \ /etc/apt/sources.list
apt-get update
apt-get -y upgrade
apt-get -y install proftpd-basic
apt-get -y autoremove
# configure /etc/proftpd/conf.d/anonymous.conf
service proftpd restart

Other VMs refer to the newly minted mirror for their updates;

sed -i -e s# \ -e s# \ /etc/apt/sources.list
apt-get update
apt-get -y upgrade
apt-get -y install yada-yada-yada
apt-get -y autoremove

1 Answer

I don't quite get how you intend to install the ftp server, but sources.list does support the file:// 'protocol'.

To add a deb package to your sources.list file:

deb file:///path/to/directory /

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy