Package: debmirror
Version: 1:2.37
Severity: normal
Dear Maintainer,
there are third-party Debian repositories out in the wild that either
allow list certain user agent strings or deny list libwww-perl's user
agent string. Either way, debmirror fails to mirror these repositories.
Changing the user agent to another one, e.g. curl's, resolves this
issue. Please find a patch that resolved this problem for us.
best regards,
Jörg Behrmann
-- System Information:
Debian Release: 12.11
APT prefers oldstable-updates
APT policy: (500, 'oldstable-updates'), (500, 'oldstable-security'), (500,
'oldstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-37-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages debmirror depends on:
ii bzip2 1.0.8-5+b1
pn libdigest-md5-perl <none>
pn libdigest-sha-perl <none>
ii liblockfile-simple-perl 0.208-1.1
ii libwww-perl 6.68-1
ii perl [libnet-perl] 5.36.0-7+deb12u2
ii rsync 3.2.7-1+deb12u2
ii xz-utils 5.4.1-1
Versions of packages debmirror recommends:
ii ed 1.19-1
ii gpgv 2.2.40-1.1
ii patch 2.7.6-7
Versions of packages debmirror suggests:
ii gnupg 2.2.40-1.1
-- no debconf information
--- /usr/bin/debmirror 2025-07-25 15:51:53.572335995 +0200
+++ debmirror-curl 2025-08-21 13:44:55.479682147 +0200
@@ -927,6 +927,7 @@
$ua->proxy('http', $ENV{http_proxy}) if $ENV{http_proxy};
$ua->proxy('http', $proxy) if $proxy;
$ua->show_progress($progress);
+ $ua->agent($ENV{DEBMIRROR_USER_AGENT}) if(defined
$ENV{DEBMIRROR_USER_AGENT});
return;
};
@@ -937,6 +938,7 @@
$ua->proxy('https', $ENV{https_proxy}) if $ENV{https_proxy};
$ua->proxy('https', $proxy) if $proxy;
$ua->show_progress($progress);
+ $ua->agent($ENV{DEBMIRROR_USER_AGENT}) if(defined
$ENV{DEBMIRROR_USER_AGENT});
return;
};