PXE/Netboot/Repo Server

When installing a Debian repository server as noted here, https://sites.google.com/a/glendaleacademy.org/techblog/ubuntu-12-04/pxe-netboot-repository-server, there are a few issues with the use of apt-mirror for Debian repository servers.

  1. As of this writing, apt-mirror does not download the translation files. To fix this, write a script to download the necessary files, adjusting the paths as necessary:
            • Debian mirror fix for apt-mirror
                  • #!/bin/bash
                  • #
                  • #This script fixes the translation download issue for debian mirrors
                  • cd /var/spool/apt-mirror/mirror/mirror.anl.gov/debian/dists/wheezy
                  • for directory in contrib main non-free; do
                  • cd $directory
                  • rm -rf i18n
                  • mkdir i18n
                  • cd i18n
                  • wget http://mirror.anl.gov/debian/dists/wheezy/$directory/i18n/Translation-en.bz2
                  • cd ../../
                  • done
                    • cd /var/spool/apt-mirror/mirror/mirror.anl.gov/debian/dists/wheezy-updates
                    • for directory in contrib main non-free; do
                    • cd $directory
                    • rm -rf i18n
                    • mkdir i18n
                    • cd i18n
                    • wget http://mirror.anl.gov/debian/dists/wheezy-updates/$directory/i18n/Translation-en.bz2
                    • cd ../../
                    • done
  2. The security updates are only available through security.debian.org, so a separate entry in mirror.list and sources.list are necessary.