将旧数据库移开时出错

use*_*884 5 update-manager

每次尝试运行时sudo apt-get update,都会收到以下错误消息:

** (appstreamcli:9437): CRITICAL **: Error while moving old database out of the way.
AppStream cache update failed. 
Run Code Online (Sandbox Code Playgroud)

我可以检查什么来解决这个问题?appstreamcli 中冒号后面的数字会有所不同,但消息的其余部分始终相同。

小智 7

有一个错误的符号链接(已确认的错误)。

就我而言,这些命令解决了这个问题。

sudo mv /var/cache/app-info/xapian/default /var/cache/app-info/xapian/default_old
sudo mv /var/cache/app-info/xapian/default_old /var/cache/app-info/xapian/default
Run Code Online (Sandbox Code Playgroud)

我认为授予软件数据库文件夹的完全权限不是一个好主意。

每次添加新存储库时,您可能都需要执行此操作。


小智 7

A. 我的情况通过以下命令解决:

$ sudo touch /var/cache/app-info/xapian/default
Run Code Online (Sandbox Code Playgroud)

B、错误如下:

$ sudo apt update
...
** (appstreamcli:12092): CRITICAL **: Error while moving old database out of the way.
AppStream cache update failed.
...
All packages are up to date.
Run Code Online (Sandbox Code Playgroud)

C. 环境:

Windows 10 Pro, 64 Bit + Ubuntu

$ uname -an
Linux Arthur 4.4.0-17134-Microsoft #345-Microsoft Wed Sep 19 17:47:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)