debmirror broken under Trusty?
Robert Heller
heller at deepsoft.com
Mon Jul 25 20:26:56 UTC 2016
When I enable downloading the Debian installers (@di_dists="dists";
@di_archs="arches"; ) I get this error:
ubuntumirror at ub140464:~$ debmirror
Errors:
Download of dists/trusty-backports/main/installer-i386/current/images/MD5SUMS
failed: 404 Not Found
Failed to download some Package, Sources or Release files!
WARNING: releasing 1 pending lock...
debmirror works just fine if the di_dists and di_archs lines are commented
out. Is there something wrong with debmirror, my configuration file, or the
distro server?
I am using us.archive.ubuntu.com as the mirror source host. I want to create
a local mirror of Ubuntu 14.04 (Trusty), one that I can use to install Ubuntu
14.04 (Trusty) to machines on a local LAN, without having to access the public
Internet (bandwidth limitations).
I am running debmirror 1:2.16ubuntu1 on a 64-bit (amd64) Ubuntu 14.04 VM
running under KVM on a server running CentOS 6. I run debmirror daily early
in the wee hours of the morning from a cron job.
Here is the configuration file that causes problems (commenting out the two
lines relating to the installer images yields a working configuration that has
no problems, except for the usual occasional network issues):
# Default config for debmirror
# The config file is a perl script so take care to follow perl syntax.
# Any setting in /etc/debmirror.conf overrides these defaults and
# ~/.debmirror.conf overrides those again. Take only what you need.
#
# The syntax is the same as on the command line and variable names
# loosely match option names. If you don't recognize something here
# then just stick to the command line.
#
# Options specified on the command line override settings in the config
# files.
# Location of the local mirror (use with care)
$mirrordir="/Mirror/ubuntu";
# Output options
$verbose=0;
$progress=0;
$debug=0;
# Download options
$host="us.archive.ubuntu.com";
$user="anonymous";
$passwd="anonymous@";
$remoteroot="ubuntu";
$download_method="http";
#@dists="precise,precise-updates,precise-security,precise-backports,trusty,trusty-updates,trusty-security,trusty-backports";
@dists="trusty,trusty-updates,trusty-security,trusty-backports";
@sections="main,universe,restricted,multiverse";
@arches="i386,amd64";
#@di_dists="dists";
#@di_archs="archs";
# @ignores="";
# @excludes="";
# @includes="";
# @excludes_deb_section="";
# @limit_priority="";
$omit_suite_symlinks=0;
$skippackages=0;
# @rsync_extra="doc,tools";
$i18n=0;
$getcontents=0;
$do_source=0;
$max_batch=0;
@di_dists="dists";
@di_archs="arches";
# Save mirror state between runs; value sets validity of cache in days
$state_cache_days=0;
# Security/Sanity options
$ignore_release_gpg=0;
$ignore_release=0;
$check_md5sums=0;
$ignore_small_errors=0;
# Cleanup
$cleanup=1;
$post_cleanup=1;
$pre_cleanup=1;
# Locking options
$timeout=300;
# Rsync options
$rsync_batch=200;
$rsync_options="-aIL --partial";
# FTP/HTTP options
$passive=0;
# $proxy="http://proxy:port/";
# Dry run
$dry_run=0;
# Don't keep diff files but use them
$diff_mode="use";
# The config file must return true or perl complains.
# Always copy this.
1;
--
Robert Heller -- 978-544-6933
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller at deepsoft.com -- Webhosting Services
More information about the ubuntu-users
mailing list