AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1049206
Accepted
DK Bose
DK Bose
Asked: 2018-06-24 20:33:55 +0800 CST2018-06-24 20:33:55 +0800 CST 2018-06-24 20:33:55 +0800 CST

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

  • 772

我如何知道update-apt-xapian-index上次跑步的时间?有什么办法知道吗?

apt indexing
  • 1 1 个回答
  • 919 Views

1 个回答

  • Voted
  1. Best Answer
    N0rbert
    2018-06-25T01:30:27+08:002018-06-25T01:30:27+08:00

    您需要的命令是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
    

    从对错误 1760608的评论中引用 Brian Murray

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

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

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

    sudo sed -i 's/from ConfigParser import RawConfigParser/from configparser import RawConfigParser/' /usr/bin/axi-cache
    

    手动修补后它将起作用(从 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
    

    因此,我们需要 Ubuntu 开发人员的回复和/或操作来应用这些修复程序。

    • 5

相关问题

  • 如何编写 shell 脚本来安装应用程序列表?

  • 如何查看存档中可用的软件包的所有版本?

  • 是否可以说出我安装的哪些软件包不在原版安装中?

  • 如何删除 PPA?

  • 使用 apt-get upgrade 时如何强制安装内核更新?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve