< Issue >

  • sudo apt update 수행시 ** (appstreamcli:548): CRITICAL **: Error while moving old database out of the way. 에러 발생
$ sudo apt update
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease                        
Hit:3 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial InRelease           
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]            
Get:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [136 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]                
Get:7 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [167 kB]
Get:8 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata [2,540 B]
Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [2,386 kB]         
Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [513 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [1,530 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [389 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [6,425 B]
Get:14 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,490 B]
Get:15 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [7,090 B]
Fetched 5,466 kB in 3s (1,478 kB/s)                                   

** (appstreamcli:548): CRITICAL **: Error while moving old database out of the way.
AppStream cache update failed.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.


< Answer >

I did an "strace appstreamcli refresh-index" and saw a permission denied 
during rename of /var/cache/app-info/xapian/default.
So I did "chmod 777 /var/cache/app-info/xapian/default -R" and that fixed it for me.



+ Recent posts