每当我尝试安装任何软件包时,都会在正常工作一小段时间后发生以下错误:
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错误过去包括一些关于“顶层会计守护进程”的内容,但是在我更新后留下了这个位。
我不知道如何解决/修复这个问题,所以任何帮助都是很棒的!
发布于 2021-03-22 13:02:19
创建一个具有以下内容的/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/truehttps://unix.stackexchange.com/questions/640487
复制相似问题