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

Bug#891040: marked as done (apt: does not log enough to term.log)



Your message dated Tue, 27 Feb 2018 19:12:09 +0100
with message-id <20180227181209.GA32049@crossbow>
and subject line Re: Bug#891040: apt: does not log enough to term.log
has caused the Debian Bug report #891040,
regarding apt: does not log enough to term.log
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
891040: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891040
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 1.6~alpha7
Severity: important

In /var/log/apt/term.log, the output before I press Return is missing.

For example, this:

-----cutting here may damage your screen surface-----
Reading package lists... Done
Building dependency tree
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following additional packages will be installed:
  kate5-data ktexteditor-data ktexteditor-katepart libeditorconfig0 libgit2-26 libhttp-parser2.7.1
  libkf5itemmodels5 libkf5kiofilewidgets5 libkf5newstuff-data libkf5newstuff5 libkf5newstuffcore5
  libkf5syntaxhighlighting-data libkf5syntaxhighlighting5 libkf5texteditor-bin libkf5texteditor5
Suggested packages:
  khelpcenter konsole-kpart mercurial darcs
Recommended packages:
  sonnet-plugins qml-module-org-kde-newstuff
The following NEW packages will be installed:
  kate kate5-data ktexteditor-data ktexteditor-katepart libeditorconfig0 libgit2-26 libhttp-parser2.7.1
  libkf5itemmodels5 libkf5kiofilewidgets5 libkf5newstuff-data libkf5newstuff5 libkf5newstuffcore5
  libkf5syntaxhighlighting-data libkf5syntaxhighlighting5 libkf5texteditor-bin libkf5texteditor5
0 upgraded, 16 newly installed, 0 to remove and 28 not upgraded.
Need to get 11.4 MB of archives.
After this operation, 40.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
-----cutting here may damage your screen surface-----

*All* of this is really important information possibly even weeks later.

-- Package-specific info:

-- (/etc/apt/preferences present, but not submitted) --


-- (/etc/apt/preferences.d/dash-mksh.pref present, but not submitted) --


-- (/etc/apt/sources.list present, but not submitted) --


-- (/etc/apt/sources.list.d/local.list present, but not submitted) --


-- System Information:
Debian Release: buster/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'buildd-unstable'), (500, 'unstable')
Architecture: x32 (x86_64)
Foreign Architectures: i386, amd64

Kernel: Linux 4.14.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)

Versions of packages apt depends on:
ii  adduser                 3.117
ii  debian-archive-keyring  2017.7
ii  gpgv                    2.2.4-3
ii  libapt-pkg5.0           1.6~alpha7
ii  libc6                   2.26-6
ii  libgcc1                 1:8-20180218-1
ii  libgnutls30             3.5.18-1
ii  libseccomp2             2.3.1-2.1
ii  libstdc++6              8-20180218-1

Versions of packages apt recommends:
ii  ca-bundle [ca-certificates]  20170309tarent1

Versions of packages apt suggests:
pn  apt-doc                      <none>
pn  aptitude | synaptic | wajig  <none>
ii  dpkg-dev                     1.19.0.5
ii  gnupg                        2.2.4-3
ii  gnupg1                       1.4.22-4
ii  powermgmt-base               1.31+nmu1

-- no debconf information

--- End Message ---
--- Begin Message ---
Hi,

On Wed, Feb 21, 2018 at 08:06:38PM +0100, Thorsten Glaser wrote:
> In /var/log/apt/term.log, the output before I press Return is missing.
> 
> For example, this:
> 
> -----cutting here may damage your screen surface-----
> Reading package lists... Done
[…]
> Do you want to continue? [Y/n]
> -----cutting here may damage your screen surface-----
> 
> *All* of this is really important information possibly even weeks later.

This can't be included in the logfile as the term.log file is managed by
libapt which has no idea what an application might (or might not) print
to the terminal before its called. And even if, logging the output of
-qq would be probably as pointless as logging the output e.g. synaptics
produces on the console.


The information you seem to desire about which packages are installed/
removed/upgraded and from/to which version is available in
/var/log/apt/history.log btw in a predictable format – again for all
applications using libapt.

We have at the moment no dedicated tool parsing this logfile; its on the
list, but not particularily high so if you or someone else is
interested…


Closing this bugreport as as explained we can't really extend the
logging in term.log as requested and (I think) an acceptable alternative
exists.


Best regards

David Kalnischkies

Attachment: signature.asc
Description: PGP signature


--- End Message ---

Reply to: