Aptitude
aptitude 產生兩次輸出
很長一段時間,我從 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 測試/不穩定。
這看起來像Debian 錯誤 498239:警告,狀態列印兩次,2008 年 9 月 8 日送出。
有趣的好奇心:同一使用者報告了四次相同的錯誤。:-)