dpkg/atopデーモンエラー

dpkg/atopデーモンエラー

パッケージをインストールしようとするたびにしばらく正常に動作した後、次のエラーが発生します。

penguin systemd[1]: atopacct.service: Failed with result 'protocol'.
penguin systemd[1]: Failed to start Atop process accounting daemon.
dpkg: error processing package atop (--configure):
installed atop package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
atop
E: Sub-process /usr/bin/dpkg returned an error code (1)

Chromeでdebファイルを開いてパッケージをインストールしようとすると、次のようになります。

Error while installing package: installed atop package post-installation script subprocess returned error exit status 1

バグには「会計デーモンのトップ」に関する内容が含まれていましたが、更新した後はその部分が残っていました。

この問題を解決/修正する方法がわからないので、どんな助けでもいいでしょう!

ベストアンサー1

/var/lib/dpkg/info/atop.postinst次の内容でファイルを作成します。

#!/bin/sh
set -e
exit 0

実行可能にする:chmod +x /var/lib/dpkg/info/atop.postinst

次に、次を実行します。

sudo dpkg --configure -a
sudo apt update
sudo apt install atop

それでも機能しない場合は、コンテンツをatop.postinst次のように置き換えてください。

#!/bin/bash
/bin/true

おすすめ記事