[Aptitude-devel] Bug#720074: aptitude: Can not redirect part of information of aptitude

Xiangyu LIU u122334 at gmail.com
Sun Aug 18 11:05:59 BST 2013


Package: aptitude
Version: 0.6.8.2-1
Severity: minor

Hi Dear Maintainers,

When I want to record the output information of aptitude's actions
by redirect command or pipe command, I find that aptitude can't 
print part of information, exactly the "Recommends" part.
For example, if I want to install libreoffice WITHOUT any recommends,

--------------------------------------------------------------------

# aptitude -R install libreoffice
The following NEW packages will be installed:
  ca-certificates{a} ca-certificates-java{a} default-jre{a} 
  default-jre-headless{a} fonts-dejavu{a} fonts-dejavu-extra{a} 
  fonts-opensymbol{a} fonts-sil-gentium-basic{a} java-common{a} 
  libatk-wrapper-java{a} libatk-wrapper-java-jni{a} 
  libboost-date-time1.49.0{a} libboost-date-time1.53.0{a} 
  libboost-system1.53.0{a} libcdr-0.0-0{a} libcmis-0.3-3{a} 
  libcolamd2.7.1{a} libexttextcat-2.0-0{a} libexttextcat-data{a} 
  libgstreamer-plugins-base1.0-0{a} libgstreamer1.0-0{a} 
  libhsqldb1.8.0-java{a} libhyphen0{a} liblangtag-common{a} 
  liblangtag1{a} libmspub-0.0-0{a} libmythes-1.2-0{a} 
  libneon27-gnutls{a} liborcus-0.4-0{a} libpcsclite1{a} 
  libpython3.3{a} libpython3.3-minimal{a} libpython3.3-stdlib{a} 
  libreoffice libreoffice-base{a} libreoffice-base-core{a} 
  libreoffice-calc{a} libreoffice-common{a} libreoffice-core{a} 
  libreoffice-draw{a} libreoffice-filter-mobiledev{a} 
  libreoffice-impress{a} libreoffice-java-common{a} 
  libreoffice-math{a} libreoffice-report-builder-bin{a} 
  libreoffice-style-galaxy{a} libreoffice-writer{a} 
  libservlet2.5-java libvisio-0.0-0{a} libwpd-0.9-9{a} 
  libwpg-0.2-2{a} libwps-0.2-2{a} libzip2{a} lp-solve{a} 
  openjdk-7-jre{a} openjdk-7-jre-headless{a} openjdk-7-jre-lib{a} 
  openssl{a} python3.3{a} python3.3-minimal{a} python3.3-uno{a} 
  tzdata-java{a} uno-libs3{a} ure{a} 
The following packages are RECOMMENDED but will NOT be installed:
  fonts-liberation fonts-sil-gentium icedtea-7-jre-jamvm libgconf2-4 
  libgnome2-0 libgnomevfs2-0 libpaper-utils ttf-dejavu-extra 
  ttf-mscorefonts-installer xfonts-mathml 
0 packages upgraded, 64 newly installed, 0 to remove and 0 not upgraded.
Need to get 129 MB of archives. After unpacking 393 MB will be used.
Do you want to continue? [Y/n/?]

-----------------------------------------------------------------

There is a hint information ---- "The following packages are RECOMMENDED 
but will NOT be installed". 

But when I want to record these printed messages, aptitude does not
print the recommends part.

-----------------------------------------------------------------
# aptitude -R install libreoffice | tee ./log001.txt
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Reading task descriptions...
The following NEW packages will be installed:
  ca-certificates{a} ca-certificates-java{a} default-jre{a} 
  default-jre-headless{a} fonts-dejavu{a} fonts-dejavu-extra{a} 
  fonts-opensymbol{a} fonts-sil-gentium-basic{a} java-common{a} 
  libatk-wrapper-java{a} libatk-wrapper-java-jni{a} 
  libboost-date-time1.49.0{a} libboost-date-time1.53.0{a} 
  libboost-system1.53.0{a} libcdr-0.0-0{a} libcmis-0.3-3{a} 
  libcolamd2.7.1{a} libexttextcat-2.0-0{a} libexttextcat-data{a} 
  libgstreamer-plugins-base1.0-0{a} libgstreamer1.0-0{a} 
  libhsqldb1.8.0-java{a} libhyphen0{a} liblangtag-common{a} liblangtag1{a} 
  libmspub-0.0-0{a} libmythes-1.2-0{a} libneon27-gnutls{a} 
  liborcus-0.4-0{a} libpcsclite1{a} libpython3.3{a} libpython3.3-minimal{a} 
  libpython3.3-stdlib{a} libreoffice libreoffice-base{a} 
  libreoffice-base-core{a} libreoffice-calc{a} libreoffice-common{a} 
  libreoffice-core{a} libreoffice-draw{a} libreoffice-filter-mobiledev{a} 
  libreoffice-impress{a} libreoffice-java-common{a} libreoffice-math{a} 
  libreoffice-report-builder-bin{a} libreoffice-style-galaxy{a} 
  libreoffice-writer{a} libservlet2.5-java libvisio-0.0-0{a} 
  libwpd-0.9-9{a} libwpg-0.2-2{a} libwps-0.2-2{a} libzip2{a} lp-solve{a} 
  openjdk-7-jre{a} openjdk-7-jre-headless{a} openjdk-7-jre-lib{a} 
  openssl{a} python3.3{a} python3.3-minimal{a} python3.3-uno{a} 
  tzdata-java{a} uno-libs3{a} ure{a} 
0 packages upgraded, 64 newly installed, 0 to remove and 0 not upgraded.
Need to get 129 MB of archives. After unpacking 393 MB will be used.
Do you want to continue?
-----------------------------------------------------------------


But the Suggested messages can be printed normally .....

-----------------------------------------------------------------
# aptitude -R -v install libreoffice | tee ./log001.txt
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Reading task descriptions...
The following NEW packages will be installed:
  ca-certificates{a} ca-certificates-java{a} default-jre{a} 
  default-jre-headless{a} fonts-dejavu{a} fonts-dejavu-extra{a} 
  fonts-opensymbol{a} fonts-sil-gentium-basic{a} java-common{a} 
  libatk-wrapper-java{a} libatk-wrapper-java-jni{a} 
  libboost-date-time1.49.0{a} libboost-date-time1.53.0{a} 
  libboost-system1.53.0{a} libcdr-0.0-0{a} libcmis-0.3-3{a} 
  libcolamd2.7.1{a} libexttextcat-2.0-0{a} libexttextcat-data{a} 
  libgstreamer-plugins-base1.0-0{a} libgstreamer1.0-0{a} 
  libhsqldb1.8.0-java{a} libhyphen0{a} liblangtag-common{a} liblangtag1{a} 
  libmspub-0.0-0{a} libmythes-1.2-0{a} libneon27-gnutls{a} 
  liborcus-0.4-0{a} libpcsclite1{a} libpython3.3{a} libpython3.3-minimal{a} 
  libpython3.3-stdlib{a} libreoffice libreoffice-base{a} 
  libreoffice-base-core{a} libreoffice-calc{a} libreoffice-common{a} 
  libreoffice-core{a} libreoffice-draw{a} libreoffice-filter-mobiledev{a} 
  libreoffice-impress{a} libreoffice-java-common{a} libreoffice-math{a} 
  libreoffice-report-builder-bin{a} libreoffice-style-galaxy{a} 
  libreoffice-writer{a} libservlet2.5-java libvisio-0.0-0{a} 
  libwpd-0.9-9{a} libwpg-0.2-2{a} libwps-0.2-2{a} libzip2{a} lp-solve{a} 
  openjdk-7-jre{a} openjdk-7-jre-headless{a} openjdk-7-jre-lib{a} 
  openssl{a} python3.3{a} python3.3-minimal{a} python3.3-uno{a} 
  tzdata-java{a} uno-libs3{a} ure{a} 
The following packages are SUGGESTED but will NOT be installed:
  binfmt-support bluez cups-bsd equivs fonts-ipafont-gothic 
  fonts-ipafont-mincho gcj-jre-headless gnome-codec-install 
  graphicsmagick-imagemagick-compat gstreamer1.0-plugins-bad 
  gstreamer1.0-plugins-base gstreamer1.0-plugins-good 
  ......
-----------------------------------------------------------------


Other examples include following experiments:
# aptitude -R install libreoffice > ./log002.txt
# aptitude -R install libreoffice 2>&1 ./log003.txt
# aptitude -R -v install libreoffice > ./log004.txt
# aptitude -R -v install libreoffice 2>&1 ./log005.txt

That's it. Aptitude can print "Dependented" and "Sugguested"
messages, but not "Recommended" information when a pipe or 
redirect command applied. But sometime I need to record these
messages in pure console text mode, I don't know how to work
around this. So I seek for your help here.

Any advice or comment is welcome.

Thanks,
Best Regards,
Xiangyu LIU



-- Package-specific info:
Terminal: xterm
$DISPLAY is set.
which aptitude: /usr/bin/aptitude

aptitude version information:
aptitude 0.6.8.2 compiled at Nov  7 2012 07:08:03
Compiler: g++ 4.7.2
Compiled against:
  apt version 4.12.0
  NCurses version 5.9
  libsigc++ version: 2.2.10
  Ept support enabled.
  Gtk+ support disabled.
  Qt support disabled.

Current library versions:
  NCurses version: ncurses 5.9.20130608
  cwidget version: 0.5.16
  Apt version: 4.12.0

aptitude linkage:
	linux-vdso.so.1 (0x00007fff61cf9000)
	libapt-pkg.so.4.12 => /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12 (0x00007f31f9f6b000)
	libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007f31f9d3b000)
	libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f31f9b11000)
	libsigc-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0 (0x00007f31f990c000)
	libcwidget.so.3 => /usr/lib/libcwidget.so.3 (0x00007f31f960c000)
	libept.so.1.aptpkg4.12 => /usr/lib/libept.so.1.aptpkg4.12 (0x00007f31f936b000)
	libxapian.so.22 => /usr/lib/libxapian.so.22 (0x00007f31f8f88000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f31f8d70000)
	libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f31f8abe000)
	libboost_iostreams.so.1.49.0 => /usr/lib/libboost_iostreams.so.1.49.0 (0x00007f31f88a6000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f31f868a000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f31f8381000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f31f807d000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f31f7e67000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f31f7a9b000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f31f7898000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f31f7694000)
	libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f31f7483000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f31f747d000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f31f7274000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f31fa907000)

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10.5-112.custom (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages aptitude depends on:
ii  aptitude-common           0.6.8.2-1
ii  libapt-pkg4.12            0.9.9.4
ii  libboost-iostreams1.49.0  1.49.0-4
ii  libc6                     2.17-7
ii  libcwidget3               0.5.16-3.4
ii  libept1.4.12              1.0.9
ii  libgcc1                   1:4.8.1-2
ii  libncursesw5              5.9+20130608-1
ii  libsigc++-2.0-0c2a        2.2.10-0.2
ii  libsqlite3-0              3.7.17-1
ii  libstdc++6                4.8.1-2
ii  libtinfo5                 5.9+20130608-1
ii  libxapian22               1.2.15-2
ii  zlib1g                    1:1.2.8.dfsg-1

Versions of packages aptitude recommends:
pn  apt-xapian-index                <none>
pn  aptitude-doc-en | aptitude-doc  <none>
pn  libparse-debianchangelog-perl   <none>
ii  sensible-utils                  0.0.9

Versions of packages aptitude suggests:
pn  debtags  <none>
ii  tasksel  3.16

-- no debconf information



More information about the Aptitude-devel mailing list