Bug#668129: /usr/bin/apt-get: apt-get + quiet + ouput to non-terminal = control characters
reassign 668129 debconf
thanks
On Mon, Apr 9, 2012 at 04:32, Jayen Ashar <j__n@yahoo.com> wrote:
> * What led up to the situation?
> Running `/usr/bin/apt-get -o quiet=1 dist-upgrade -y --no-download -q -u`
>
> * What exactly did you do (or not do) that was effective (or
> ineffective)?
> Piping output to another command. Enabling quiet from the command line.
>
> * What was the outcome of this action?
> Getting the line: ^MExtracting templates from packages: 26%^MExtracting
> templates from packages: 52%^MExtracting templates from packages:
> 78%^MExtracting templates from packages: 100%
>
> * What outcome did you expect instead?
> An output without control characters, especially because the output is
> not a terminal. Ideally, "Extracting templates from packages:" should
> not appear when piping the output and/or when using quiet settings.
[…]
> -- apt-config dump --
[…]
> DPkg::Pre-Install-Pkgs:: "/usr/bin/apt-listchanges --apt || test $? -ne 10";
> DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
[…]
The messages are generated by dpkg-preconfigure, not by apt-get.
apt-get just acts on your configuration and executes it for you.
I am not sure though how that should be fixed…
Best regards
David Kalnischkies
Reply to: