When using a chroot created for SBuild, the SBuild commands (‘sbuild’, ‘sbuild-update’, ‘sbuild-shell’, etc.) emit a stream of repeated messages about alias associations. These messages are interspersed in with other SBuild output and the output from the commands it runs. This makes the output unusably crowded with warning messages. ===== $ sudo sbuild-shell unstable W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot I: /bin/sh W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘UNRELEASED’ already associated with ‘unknown’ chroot W: line 9 [stretch-amd64-sbuild] aliases: Alias ‘sid’ already associated with ‘unknown’ chroot # ===== If these associations are a problem, what needs to be done to correct that problem? If these associations are not a problem, I would expect that there should not be messages spamming the console output.
Hi, Quoting Ben Finney (2019-02-03 22:51:27) it seems that this message comes from schroot and not sbuild. Thus, reassigning. https://sources.debian.org/src/schroot/1.6.10-6/sbuild/sbuild-chroot-config.cc/?hl=59#L59 Thanks! cheers, josch
Control: retitle -1 schroot: emits many messages “Alias ‘[...]’ already associated with ‘[...]’ chroot” Control: found -1 schroot/1.6.10-6+b1 Thanks. I am also altering the metadata for the version of ‘schroot’ installed.
Hello,
I ran into the same problem myself today, and found this bug report.
The problem started after I have added a second sbuild chroot with the
following command:
sudo sbuild-debian-developer-setup --suite=stable
And, thanks to your hint that the issue is actually schroot related, I
found in /etc/schroot/chroot.d/ two config files
unstable-amd64-build-XXXXXX and stable-amd64-build-XXXXXX, both
created by sbuild-debian-developer-setup. And, sure enough, both
files contain the line
aliases=UNRELEASED,sid
which is correct for unstable but inappropriate for stable. schroot's
"Alias already associated" warnings are valid. The actual bug is
found somewhere else, from whomever or from whatever command that
created those schroot chroot.d config files.
And, sure enough, we can find in /usr/bin/sbuild-debian-developer-setup:
https://sources.debian.org/src/sbuild/0.80.0/bin/sbuild-debian-developer-setup/#L56-L57
when it calls sbuild-createchroot, it indiscriminately adds the flags
Kind regards, Roger