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)

크롬을 통해 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

관련 정보