[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#960661: multistrap: Incorrect error message when downloading keyring package fails



Package: multistrap
Version: 2.2.0ubuntu2
Severity: minor
Tags: patch

Dear Maintainer,

I am sending this from a system that deliberately has no Internet
access, and reportbug does not handle that well. So I had to copy/paste
this message into Thunderbird on another machine, which in turn doesn't
seem to let me add mail headers such as X-Debbugs-Cc: o.seibert@syseleven.de

If you run multistrap on a configuration which includes keyrings, such
as

> [ubuntu-security]
> source=http://archive.ubuntu.com/ubuntu
> keyring=ubuntu-keyring
> suite=focal-security
> components=main universe restricted

and downloading the keyring fails for whatever reason, the error message
is wrong.

This can much more easily happen if the patch for bug 870166 is not
applied, because then multistrap then wrongly thinks that a download
failed, the second time a keyring is processed.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=870166

Patch:

--- multistrap.old    2020-05-15 08:42:45.807146828 +0000
+++ multistrap    2020-05-15 08:43:32.878945964 +0000
@@ -300,7 +300,7 @@
         my $file = `find /var/cache/apt/archives/ -name
"$keyring_pkg*"|grep -m1 $keyring_pkg`;
         chomp ($file);
         if ($file eq "") {
-            my $msg = sprintf (_g("Unable to download keyring package:
'%s'"),$dir);
+            my $msg = sprintf (_g("Unable to download keyring package:
'%s'"),$keyring_pkg);
             die "$progname: $msg\n";
         }
         my $xdir = `mktemp -d -t keyring.XXXXXX`;

-- System Information:
Debian Release: stretch/sid
  APT prefers xenial-updates
  APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500,
'xenial')
Architecture: amd64 (x86_64)

Kernel: Linux 4.15.0-70-generic (SMP w/8 CPU cores)
Locale: LANG=en, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages multistrap depends on:
ii  apt                            1.2.32
ii  libconfig-auto-perl            0.44-1
ii  liblocale-gettext-perl         1.07-1build1
ii  libparse-debian-packages-perl  0.03-2
ii  perl                           5.22.1-9ubuntu0.6

Versions of packages multistrap recommends:
pn  emdebian-archive-keyring  <none>

Versions of packages multistrap suggests:
ii  fakeroot  1.20.2-1ubuntu1

-- no debconf information

-- 
SysEleven GmbH
Boxhagener Straße 80
10245 Berlin

T +49 30 233 2012 0
F +49 30 616 7555 0

http://www.syseleven.de
http://www.facebook.com/SysEleven
https://www.instagram.com/syseleven/

Aktueller System-Status immer unter:
http://www.twitter.com/syseleven

Firmensitz: Berlin
Registergericht: AG Berlin Charlottenburg, HRB 108571 B
Geschäftsführer: Marc Korthaus, Jens Ihlenfeld


Reply to: