资质版本0.8.7
Debian 9(延伸)
在最近的软件包升级期间,资质GUI 显示以下警告,加框并以亮红色显示:
W: APT had planned for dpkg to do more than it reported back...
所述显示的警告还包含有关计划操作数量与执行操作数量的信息,以及有关哪个特定包受到影响的信息,但在记录这一附加信息之前我愚蠢地承认了尖叫声(我想我可以在某处引用日志)。
好吧,我找不到正确的日志文件。供参考,/var/log/能力显示最近的活动,但缺少主题警告消息...
以下三个链接可能会提供一些见解,但我仍然找不到所需的日志:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1647638
https://askubuntu.com/questions/1378118/apt-had-planned-for-dpkg-to-do-more-than-it-reported-back
https://groups.google.com/g/linux.debian.bugs.dist/c/n74RYhzpzNM
在哪里可以找到所需的日志文件?
答案1
没有任何 - 默认情况下 aptitude 不会将错误或警告写入磁盘。所有的内容/var/log/aptitude
都是安装。
如果您想要额外的日志记录,您需要说明aptitude
这一点。
从man aptitude
:
--log-file=<file>
If <file> is a nonempty string, log messages will be written to it, except that if
<file> is “-”, the messages will be written to standard output instead. If this option
appears multiple times, the last occurrence is the one that will take effect.
This does not affect the log of installations that aptitude has performed
(/var/log/aptitude); the log messages written using this configuration include
internal program events, errors, and debugging messages. See the command-line option
--log-level to get more control over what gets logged.
This corresponds to the configuration option Aptitude::Logging::File.
--log-level=<level>, --log-level=<category>:<level>
--log-level=<level> causes aptitude to only log messages whose level is <level> or
higher. For instance, setting the log level to error will cause only messages at the
log levels error and fatal to be displayed; all others will be hidden. Valid log
levels (in descending order) are off, fatal, error, warn, info, debug, and trace. The
default log level is warn.
--log-level=<category>:<level> causes messages in <category> to only be logged if
their level is <level> or higher.
--log-level may appear multiple times on the command line; the most specific setting
is the one that takes effect, so if you pass --log-level=aptitude.resolver:fatal and
--log-level=aptitude.resolver.hints.match:trace, then messages in
aptitude.resolver.hints.parse will only be printed if their level is fatal, but all
messages in aptitude.resolver.hints.match will be printed. If you set the level of the
same category two or more times, the last setting is the one that will take effect.
This does not affect the log of installations that aptitude has performed
(/var/log/aptitude); the log messages written using this configuration include
internal program events, errors, and debugging messages. See the command-line option
--log-file to change where log messages go.
This corresponds to the configuration group Aptitude::Logging::Levels.
[编辑] 好吧……试图引导你去喝水并让你喝水花了太长时间:
只需创建包含以下内容的文件/etc/apt/apt.conf.d/50aptitude
- 这也将使您不必使用命令行开关:
Aptitude::Logging::File "/var/log/aptitude.out";
Aptitude::Logging::Levels "*:info";
答案2
这对我有用:
每当我打电话时资质, 我用
aptitude --log-file=/tmp/AptitudeLog.log --log-level=info
然后,因为如果我需要任何关联的日志信息,我永远不会记得在哪里查找,所以我在/var/log
和中留下了上述临时日志文件的链接/var/log/apt
问题结束!