当我运行sudo apt-get update && sudo apt-get dist-upgrade -y时,我会得到以下错误
(Reading database ... 135000 files and directories currently installed.)
Preparing to unpack .../apport_2.20.1-0ubuntu2.15_all.deb ...
Failed to stop apport-forward.socket: Unit apport-forward.socket not loaded.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
Failed to stop apport-forward.socket: Unit apport-forward.socket not loaded.
dpkg: error processing archive /var/cache/apt/archives/apport_2.20.1-0ubuntu2.15_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 5
/usr/bin/deb-systemd-helper: error: unable to read apport-forward.socket
Failed to get unit file state for apport-forward.socket: No such file or directory
apport-forward.socket is a disabled or a static unit, not starting it.
Errors were encountered while processing:
/var/cache/apt/archives/apport_2.20.1-0ubuntu2.15_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)我能做些什么来解决这个问题?
发布于 2018-01-04 02:31:52
您可以做的最好的事情是移除导致问题的包(卸载),下面是一些示例:
删除导致问题的包后,您可以更新系统,并在需要时重新安装包。
希望这能有所帮助。
https://askubuntu.com/questions/992073
复制相似问题