在相当长的一段时间里,我从 aptitude 得到了一些消息的双重输出。这是一个例子:
> sudo aptitude install mpw
Couldn't find package "mpw". However, the following
packages contain "mpw" in their name:
stumpwm
Couldn't find package "mpw". However, the following
packages contain "mpw" in their name:
stumpwm
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 1019 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
不过,并不是每条消息都会发生这种情况:
> sudo aptitude install mpv
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 1019 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
这是我的 aptitude 版本:
> aptitude --version
aptitude 0.6.8.2 compiled at Nov 5 2012 06:20:41
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
我该如何解决这个问题?
我差点忘了:据我所知,我注意到双重消息完全是错误。那么也许这与 stderr 有关?
这是在 Debian 上测试/不稳定的。
答案1
这看起来像Debian bug 498239:警告,状态打印两次,2008 年 9 月 8 日提交。
有趣的好奇心:同一个用户报告了同一个错误四次。 :-)