User Tools

Site Tools


services:apt-mirror

apt-mirror

Summary

Serves as DEB and RPM repo mirrors. See apt-mirror's project page

Lives on gitbuilder-archive.

apt-mirror.sh

Called by root's crontab every day at 4PM Pacific time.

# cat /home/apt-mirror/apt-mirror.sh
#!/bin/bash
echo > /var/spool/apt-mirror/var/cron.log
for file in /etc/apt/mirrors/*.list
do
	cp -avf $file /etc/apt/mirror.list
	sleep 5
	/usr/bin/apt-mirror >> /var/spool/apt-mirror/var/cron.log
done

Common Problems

Hash checksum mismatch

This can happen when an upstream Ubuntu repo is modified while apt-mirror is running. Re-run apt-mirror.sh to resync the repos.

This can also happen when there is an inconsistency in the upstream repo. See http://tracker.ceph.com/issues/15459

Hacks

services/apt-mirror.txt · Last modified: 2016/06/29 20:29 by dgalloway