k0b0's record.

Computer Engineering, Arts and Books

E: Problem executing scriptsの解決方法 [@ Ubuntu 16.04 LTS]

E: Problem executing scripts

Ubuntu16.04LTSをupdateしようとしたら以下のエラーが出た。

$ sudo apt-get update
...
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w 
/var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi'
E: Sub-process returned an error code

調べてみると、以下の方法で解決できた。

$ cd /tmp && mkdir asfix
$ cd asfix
$ wget https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb
$ wget https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb
$ sudo dpkg -i *.deb

なお、このエラーは2016年5月に報告されているらしく、最新版のUbuntuでは解決されて
いるかも(?)