Create local PowerPC Ubuntu 16.10 mirror on my Web/NAS server: =============================================================== *This will require 66GB of storage. You can create a apt mirror server locally, including for one distro/release and one ISA. This will be a guide for Ubuntu 16.10 for PowerPC only (Can still work on x86/ARM Server with much newer release of Ubuntu, like 22.10). --------------------------------------------------------------------------------------------- Step 1: You will need a server with Ubuntu or Debain installed, as well as apache2 web server. You must be root to do this. Step 2: Get apt mirror by: apt-get install apt-mirror ------------------------------------------------------------- Step 3: Using "nano /etc/apt/mirror.list", replace contents of the file with this: ############# config ################## # # set base_path /var/spool/apt-mirror # # set mirror_path $base_path/mirror # set skel_path $base_path/skel # set var_path $base_path/var # set cleanscript $var_path/clean.sh # set defaultarch # set postmirror_script $var_path/postmirror.sh # set run_postmirror 0 set nthreads 20 set _tilde 0 # ############# end config ############## deb-powerpc http://old-releases.ubuntu.com/ubuntu yakkety main restricted universe multiverse deb-powerpc http://old-releases.ubuntu.com/ubuntu yakkety-security main restricted universe multiverse deb-powerpc http://old-releases.ubuntu.com/ubuntu yakkety-updates main restricted universe multiverse deb-powerpc http://old-releases.ubuntu.com/ubuntu yakkety-proposed main restricted universe multiverse deb-powerpc http://old-releases.ubuntu.com/ubuntu yakkety-backports main restricted universe multiverse #deb http://archive.ubuntu.com/ubuntu kinetic-proposed main restricted universe multiverse #deb http://archive.ubuntu.com/ubuntu kinetic-backports main restricted universe multiverse #deb-src http://archive.ubuntu.com/ubuntu kinetic main restricted universe multiverse #deb-src http://archive.ubuntu.com/ubuntu kinetic-security main restricted universe multiverse #deb-src http://archive.ubuntu.com/ubuntu kinetic-updates main restricted universe multiverse #deb-src http://archive.ubuntu.com/ubuntu kinetic-proposed main restricted universe multiverse #deb-src http://archive.ubuntu.com/ubuntu kinetic-backports main restricted universe multiverse clean http://old-releases.ubuntu.com/ubuntu Use ^X to save and exit ----------------------------------------------- Step 4: Get contents of server you are mirroring using this command as root Can take an hour to update. This is an executable: /usr/bin/apt-mirror ------------------------------------------------ Step 5: Use this command to link cache folder to root of web server: ln -s /var/spool/apt-mirror/mirror/old-releases.ubuntu.com/ubuntu /var/www/html/ubuntu ------------------------------------------------ Step 6: You now have a functioning apt server!, just using the /etc/apt/sources.list file on your clients that support the distro/release/ISA of your mirror replace there original domain with the IP address of your mirror. May need to create original entries for missing items. =================================================================================== Sources: https://computingforgeeks.com/creating-ubuntu-mirrors-using-apt-mirror/ https://www.howtoforge.com/local_debian_ubuntu_mirror https://askubuntu.com/questions/423591/getting-errors-after-setting-up-apt-mirror Date: Fall 2022