update-apt-xapian-index 上次运行是什么时候?

DK *_*ose 2 apt indexing

我如何知道update-apt-xapian-index上次运行的时间?有什么办法可以知道吗?

N0r*_*ert 5

您需要的命令是axi-cache info. 您可以查阅其手册页或内置帮助。

但主要问题是由于错误 1612948在 16.04 LTS、18.04 LTS 和更新版本上开箱即用。它返回错误消息而不是所需的输出:

$ axi-cache 
No module named 'ConfigParser': only help functions are implemented, for the sake of help2man
Run Code Online (Sandbox Code Playgroud)

引用 Brian Murray对错误 1760608 的评论

布赖恩·默里 (brian-murray) 在 2018-04-06 上写道:#4

正确的解决方法是将axi-info中的import修改为“from ConfigParser”为“from configparser”。如果有人创建了 debdiff,我很乐意赞助它。

所以我们可以使用我对错误 1612948 的评论中的原始建议

sudo sed -i 's/from ConfigParser import RawConfigParser/from configparser import RawConfigParser/' /usr/bin/axi-cache
Run Code Online (Sandbox Code Playgroud)

手动修补后,它将起作用(从 16.04 LTS 输出):

$ axi-cache --help
Usage: axi-cache [options] command [args]

Query the Apt Xapian index.

Commands:
...
     axi-cache info      print information about the apt-xapian-index environment
...


$ axi-cache info
Main data directory: /var/lib/apt-xapian-index
Update timestamp: /var/lib/apt-xapian-index/update-timestamp (last updated: Fri Jun 15 01:33:15 2018)
Index location: /var/lib/apt-xapian-index/index (pointing to /var/cache/apt-xapian-index/index.1)
Documentation of index contents: /var/lib/apt-xapian-index/README
Documentation of available prefixes: /var/lib/apt-xapian-index/prefixes
Documentation of available values: /var/lib/apt-xapian-index/values
Plugin directory: /usr/share/apt-xapian-index/plugins
Plugin status:
  aliases         enabled, up to date (105 days, 3:48:59 older than index)
  app-install     enabled, up to date (1008 days, 14:58:48 older than index)
  apttags         enabled, needs indexing (9 days, 10:54:14.379738 newer than index)
  cataloged_time  enabled, needs indexing (9 days, 10:54:14.379738 newer than index)
  debtags         disabled
  descriptions    enabled, needs indexing (9 days, 10:54:14.379738 newer than index)
  relations       enabled, needs indexing (9 days, 10:54:14.379738 newer than index)
  sections        enabled, needs indexing (9 days, 10:54:14.379738 newer than index)
  sizes           enabled, needs indexing (9 days, 10:54:14.379738 newer than index)
  template        enabled, up to date
  translated-desc enabled, up to date (0:00:00 older than index)
Values:
  Value         Code Provided by
  app-popcon       3 app-install
  catalogedtime    4 cataloged_time
  installedsize    1 sizes
  packagesize      2 sizes
  version          0 update-apt-xapian-index
Data sources:
  Source                                           Description                                     Used by
  /usr/share/apt-xapian-index/aliases/popular-apps Aliases expanding names of popular applications aliases
  /usr/share/app-install/desktop/                  .desktop files provided by app-install-data     app-install
  /var/cache/apt/pkgcache.bin                      APT index                                       apttags, descriptions, relations, sections, sizes
  /var/lib/apt-xapian-index/cataloged_times.p      first-seen information for every package        cataloged_time
Run Code Online (Sandbox Code Playgroud)

所以我们需要 Ubuntu 开发人员的回复和/或行动来应用这些修复。