適切なアップデートを実行するときのAppstreamcliの問題

適切なアップデートを実行するときのAppstreamcliの問題

今日apt updateを実行したときにDebianテストで問題が発生し、次の結果が返されました。

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-cache > /dev/null; fi'
E: Sub-process returned an error code

ベストアンサー1

インターネット検索後にappstreamパッケージを削除すると、問題が解決する可能性があると言う人がいることがわかりました。

この回避策は効果的ですが、ほとんどの場合、この方法を使用すると、削除したくないパッケージが削除されます。

別の解決策は、次のようにファイルの最後の3行をコメントアウトすることです/etc/apt/apt.conf.d/50appstream

...
#APT::Update::Post-Invoke-Success {
#    "if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null | true; fi";
#};

その後、ファイルを保存してやり直しapt-get updateてください。

システムアップグレードを実行した後、パッケージappstreamにこのエラーを修正するアップグレードがあり、次のメッセージが表示されることがあります。

Configuration file '/etc/apt/apt.conf.d/50appstream'
  ==> Modified (by yourself or by a script) since the installation.
  ==> The package distributor has released an updated version.
    What do you want to do? Your options are:
     Y or I: install the version of the maintainer package
     N or O: keep the currently installed version
       D: Show differences between versions
       Z: start a shell to examine the situation

変更したファイルをアップグレードするには、Yを選択する必要があります。

このエラーを検索する他の人を助けるためにこの記事を投稿してください。

おすすめ記事