I'm attempting to set up a local Debian mirror using the debmirror utility.
Initially, I define the necessary variables and then execute the following commands. While it works perfectly for Debian ( http://deb.debian.org/debian/ ) , But facing an issue when syncing Debian-Security ( http://deb.debian.org/debian-security/ )
1. Create mirror for Debian ( http://deb.debian.org/debian/ ): Actual and expected result: with this approach, I am able to create a Debian mirror successfully. :
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2. Create mirror for Debian-Security ( http://deb.debian.org/debian-security/):
Actual Result: with this approach, I am unable to create a Debian-Security mirror :
Initially, I define the necessary variables and then execute the following commands. While it works perfectly for Debian ( http://deb.debian.org/debian/ ) , But facing an issue when syncing Debian-Security ( http://deb.debian.org/debian-security/ )
1. Create mirror for Debian ( http://deb.debian.org/debian/ ):
Code:
# Variablesroot@debian12vm:~# EXCL="--exclude=-dbg_ --exclude=debian-installer-netboot-images --include=libc6-dbg"DEBUG="-v"ARCH=amd64DIST=bookworm,bookworm-backportsDEST_DIR=${DEST_DIR:-"/var/lib/debian/samadhan-debmirror"}SECT="--section main,contrib,non-free"ALLOPT="$DEBUG --state-cache-days=100 --ignore-missing-release --ignore-release-gpg --passive --nosource --arch=$ARCH"HOST="deb.debian.org"DEFOPT="--keyring /usr/share/keyrings/debian-archive-keyring.gpg --method=http --rsync-extra=none --diff=none $ALLOPT --host=$HOST --dist=$DIST $SECT"HTTP_MIRROR_DIR="/var/www/html/debmirror"# Command : root@debian12vm:~# debmirror $EXCL $DEST_DIR/debian $DEFOPT --getcontents
Code:
------------------ create mirror for debian ------------------Mirroring to /var/lib/debian/samadhan-debmirror/debian from http://deb.debian.org/debian/Arches: amd64Dists: bookworm,bookworm-backportsSections: main,contrib,non-freePdiff mode: nonePassive mode on.Will clean up after mirroring.Attempting to get lock ...State cache file does not exist; doing full mirroring.Getting meta files ...[ 0%] Getting: dists/bookworm/Release... ok[ 0%] Getting: dists/bookworm/InRelease... ok[ 0%] Getting: dists/bookworm/Release.gpg... ok[ 0%] Getting: dists/bookworm-backports/main/binary-amd64/Packages.xz... ok[ 2%] Getting: dists/bookworm-backports/contrib/binary-amd64/Packages.xz... ok[ 2%] Getting: dists/bookworm-backports/contrib/binary-all/Release... ok[ 2%] Getting: dists/bookworm-backports/non-free/binary-amd64/Packages.xz... ok[ 2%] Getting: dists/bookworm-backports/non-free/binary-amd64/Release... ok[ 2%] Getting: dists/bookworm/main/binary-amd64/Packages.xz... ok[ 69%] Getting: dists/bookworm/main/binary-amd64/Release... ok[ 98%] Getting: dists/bookworm/contrib/binary-amd64/Packages.xz... ok[ 99%] Getting: dists/bookworm/contrib/binary-all/Release... ok[ 99%] Getting: dists/bookworm/non-free/binary-amd64/Packages.xz... ok[100%] Getting: dists/bookworm/non-free/binary-all/Release... okParsing Packages and Sources files ..Get Contents files.[ 0%] Getting: dists/bookworm-backports/main/Contents-amd64.gz... ok[ 0%] Getting: dists/bookworm/non-free/Contents-all.gz... okGet command-not-found metadata files ...Files to download: 101015 MiB[100%] Getting: pool/non-free/z/znuny/otrs2_6.5.1-1_all.deb... ok[100%] Getting: pool/non-free/z/znuny/otrs2_6.5.8-1~bpo12+1_all.deb... ok[100%] Getting: pool/non-free/z/znuny/znuny_6.5.8-1~bpo12+1_all.deb... okDownloaded 101114 MiB in 51437s at 2012.97 kiB/s.Everything OK. Moving meta files ...Cleanup mirror: full.Saving debmirror state cache.State cache will expire in 100 day(s).
2. Create mirror for Debian-Security ( http://deb.debian.org/debian-security/):
Code:
# Variablesroot@debian12vm:~# EXCL="--exclude=-dbg_ --exclude=debian-installer-netboot-images --include=libc6-dbg"DEBUG="-v"ARCH=amd64DIST=bookworm,bookworm-backportsDEST_DIR=${DEST_DIR:-"/var/lib/debian/samadhan-debmirror"}SECT="--section main,contrib,non-free"ALLOPT="$DEBUG --state-cache-days=100 --ignore-missing-release --ignore-release-gpg --passive --nosource --arch=$ARCH"HOST="deb.debian.org"DEFOPT="--keyring /usr/share/keyrings/debian-archive-keyring.gpg --method=http --rsync-extra=none --diff=none $ALLOPT --host=$HOST --dist=$DIST $SECT"HTTP_MIRROR_DIR="/var/www/html/debmirror"# Command : root@debian12vm:~# debmirror --keyring /usr/share/keyrings/debian-archive-keyring.gpg --method=http $EXCL $DEST_DIR/debian-security $ALLOPT --host=${HOST} -r debian-security $SECT -d bookworm/updates
Code:
Ed binary missing, falling back to --diff=noneMirroring to /var/lib/debian/samadhan-debmirror/debian-security from http://deb.debian.org/debian-security/Arches: amd64Dists: bookworm/updatesSections: main,contrib,non-freePdiff mode: nonePassive mode on.Will clean up after mirroring.Attempting to get lock ...State cache file does not exist; doing full mirroring.Updating remote trace files (using rsync) ...Getting meta files ...[ 0%] Getting: dists/bookworm/updates/Release... Ignoring failed Release files.Ignoring missing Release file for dists/bookworm/updates/main/binary-amd64/Packages.gz[ 0%] Getting: dists/bookworm/updates/main/binary-amd64/Packages.gz... Ignoring missing Release file for dists/bookworm/updates/main/binary-all/Packages.gz[ 0%] Getting: dists/bookworm/updates/main/binary-all/Packages.gz... Ignoring missing Release file for dists/bookworm/updates/contrib/binary-amd64/Packages.gz[ 0%] Getting: dists/bookworm/updates/contrib/binary-amd64/Packages.gz... Ignoring missing Release file for dists/bookworm/updates/contrib/binary-all/Packages.gz[ 0%] Getting: dists/bookworm/updates/contrib/binary-all/Packages.gz... Ignoring missing Release file for dists/bookworm/updates/non-free/binary-amd64/Packages.gz[ 0%] Getting: dists/bookworm/updates/non-free/binary-amd64/Packages.gz... Ignoring missing Release file for dists/bookworm/updates/non-free/binary-all/Packages.gz[ 0%] Getting: dists/bookworm/updates/non-free/binary-all/Packages.gz... Errors: Ed binary missing, falling back to --diff=none Download of dists/bookworm/updates/Release failed: 404 Not Found Ignoring failed Release files Ignoring missing Release file for dists/bookworm/updates/main/binary-amd64/Packages.gz Download of dists/bookworm/updates/main/binary-amd64/Packages.gz failed: 404 Not Found Ignoring missing Release file for dists/bookworm/updates/main/binary-all/Packages.gz Download of dists/bookworm/updates/main/binary-all/Packages.gz failed: 404 Not Found Ignoring missing Release file for dists/bookworm/updates/contrib/binary-amd64/Packages.gz Download of dists/bookworm/updates/contrib/binary-amd64/Packages.gz failed: 404 Not Found Ignoring missing Release file for dists/bookworm/updates/contrib/binary-all/Packages.gz Download of dists/bookworm/updates/contrib/binary-all/Packages.gz failed: 404 Not Found Ignoring missing Release file for dists/bookworm/updates/non-free/binary-amd64/Packages.gz Download of dists/bookworm/updates/non-free/binary-amd64/Packages.gz failed: 404 Not Found Ignoring missing Release file for dists/bookworm/updates/non-free/binary-all/Packages.gz Download of dists/bookworm/updates/non-free/binary-all/Packages.gz failed: 404 Not Found
Statistics: Posted by samadhan — 2024-05-07 15:57 — Replies 1 — Views 43