Ubuntu 16.04のapt updateでappstreamcliが固まりアップデートができない問題


Table of Contents

1 apt update / apt-get updateで固まる

apt updateを実行すると途中で止まってしまいます。

$ sudo apt updateHit:1 http://jp.archive.ubuntu.com/ubuntu xenial InReleaseHit:2 http://jp.archive.ubuntu.com/ubuntu xenial-updates InReleaseHit:3 http://jp.archive.ubuntu.com/ubuntu xenial-backports InReleaseHit:4 http://security.ubuntu.com/ubuntu xenial-security InRelease# No output and freeze

topを実行するとappstreamcliコマンドがCPU時間を消費しています。

$ top<snip> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1884 root 20 0 103396 15592 8224 R 99.3 1.5 0:59.27 appstreamcli<snip>

2 回避方法

以下の手順でインストールして下さい。

$ sudo killall -KILL apt.systemd.daily$ sudo mv /etc/apt/apt.conf.d/50appstream /etc/apt/apt.conf.d/50appstream.disable$ sudo apt update -y$ sudo apt upgrade -y$ sudo mv /etc/apt/apt.conf.d/50appstream.disable /etc/apt/apt.conf.d/50appstream$ sudo apt update -y

Android | Linux | SDL - Narrow Escape