[buildd-tools-devel] Bug#824165: $apt_allow_unauthenticated = 1 in .sbuildrc breaks the chroot

Raphaël Hertzog hertzog at debian.org
Fri May 13 08:51:48 UTC 2016


Package: sbuild
Version: 0.69.0-2
Severity: important

$ sbuild-update --update source:jessie-amd64-sbuild
source:jessie-amd64-sbuild: Performing update.
E: Syntax error /var/lib/sbuild/apt.conf:3: Malformed tag
Exiting from update with status 100.

And the broken /var/lib/sbuild/apt.conf looks like this:
$ cat /var/lib/sbuild/apt.conf 
APT::Get::AllowUnauthenticated "true";
"APT::Install-Recommends "false";
APT::AutoRemove::SuggestsImportant "false";
APT::AutoRemove::RecommendsImportant "false";
Acquire::Languages "none";

This seems to be related to my .sbuildrc which contains "$apt_allow_unauthenticated = 1;".

And this is confirmed by the code:

    if ($self->get_conf('APT_ALLOW_UNAUTHENTICATED')) {
        print $F qq(APT::Get::AllowUnauthenticated "true";\n");
    }

Notice the final quote while it's the parenthesis that ends the string...

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages sbuild depends on:
ii  adduser         3.114
ii  apt-utils       1.2.11
ii  libsbuild-perl  0.69.0-2
ii  perl            5.22.2-1

Versions of packages sbuild recommends:
ii  debootstrap  1.0.81
ii  fakeroot     1.20.2-1

Versions of packages sbuild suggests:
pn  deborphan  <none>
ii  wget       1.17.1-2

-- no debconf information



More information about the Buildd-tools-devel mailing list