touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #73921
[Bug 1448917] Re: apt-get -o quiet=1 dist-upgrade isn't quiet anymore
Sorry if my previous comment came across as rude, it wasn't intended as
such. It was just meant as a quick reply (I was in a hurry) to clear up
what is the topic of this bug as incomplete reports aren't actionable.
(An incomplete bug isn't necessarily the fault of the bugreporter as
someone can hardly think of everything and/or an important fact to know
for upstream isn't obvious to someone who isn't deeply involved with the
package in question. So, no critic meant either.)
So, with my apt upstream hat, I am reassigning to dpkg even through I
know that this is caused by a change in apt, but the problem is that
dpkg has a non-overrideable check for terminal output or not (and
because as mentioned apt quiet option never influenced dpkg. Otherwise
quiet=2 wouldn't have output at all, but what it does is in fact reduce
the output to mostly just dpkg output).
The apt change in question is that dpkg is properly called in (most) cases in a pseudo-terminal, so it's looking always like dpkg is running in a terminal. We need this in apt to be able to log the output (term.log) as well as show the output of dpkg (and subsequently programs called by it like debconf) correctly. See e.g. debbug #765687. The 1.0.9.x versions contain various fixes (and fixes of fixes) in this regard.
You can tell apt to not use a pseudo-terminal for dpkg with -o Dpkg::Use-Pty=0 , but that carries all the disadvantages I mentioned earlier and more and is therefore not advised.
** Package changed: apt (Ubuntu) => dpkg (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1448917
Title:
apt-get -o quiet=1 dist-upgrade isn't quiet anymore
Status in dpkg package in Ubuntu:
New
Bug description:
Description: Ubuntu 15.04
Release: 15.04
apt:
Installed: 1.0.9.7ubuntu4
Candidate: 1.0.9.7ubuntu4
Version table:
*** 1.0.9.7ubuntu4 0
500 http://de.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
100 /var/lib/dpkg/status
Current:
Until updating from Utopic to Vivid apt-get with command line
parameter "-o quiet 1" did not output the progress as formatted text.
Since the update the progress is written to stdout as formatted text.
This breaks a lot of scripts, e.g. the cron-apt package with mail send
enabled. The attached text is no longer text only and will be encoded
as binary, so the mail is unreadable.
Expected:
Same behaviour as with version from Utopic, no progress output
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1448917/+subscriptions
References