W: Failed to fetch ftp://$SERVER_AT_WORK/debian-backports/dists/jessie-backports/main/binary-amd64/Packages Hash Sum mismatchTurns out, the old mirror structure from debian wheezy cannot be used for a jessie-mirror, you need to use the same directory structure as on the offical mirrors (ftp://$SERVER_AT_WORK/debian/dists/jessie-backports).
For a complete mirror you can use this script:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# configuration | |
MIRROR='ftp.de.debian.org' | |
ARCH='i386,amd64' | |
SECTIONS='main,contrib,non-free,main/debian-installer' | |
RELEASE='jessie' | |
MIRRORDIR=/srv/ftp | |
# end of configuration | |
DISTS="${RELEASE},${RELEASE}-updates,${RELEASE}-backports" | |
COMMONOPTS="-v -a ${ARCH} -s ${SECTIONS} --i18n --passive --ignore-missing-release --ignore-release-gpg --slow-cpu" | |
mkdir -p $MIRRORDIR/debian | |
mkdir -p $MIRRORDIR/debian-security | |
debmirror $COMMONOPTS -r debian -h $MIRROR -d $DISTS $MIRRORDIR/debian | |
debmirror $COMMONOPTS -r debian-security -h security.debian.org -d $RELEASE/updates $MIRRORDIR/debian-security |
No comments:
Post a Comment