重命名此文件 org.freedesktop.systemd1.s‌​ervice.bak 后,systemd-shim 不会被删除

重命名此文件 org.freedesktop.systemd1.s‌​ervice.bak 后,systemd-shim 不会被删除
Removing systemd-shim (6-2bzr1) ... 
dpkg-maintscript-helper: error: old-conffile 'debian/systemd-shim/etc/dbus-1/system.d/org.freedesktop.systemd1.conf' is not an absolute path
dpkg: error processing package systemd-shim (--remove):
 subprocess installed pre-removal script returned error exit status 1
dpkg-maintscript-helper: error: old-conffile 'debian/systemd-shim/etc/dbus-1/system.d/org.freedesktop.systemd1.conf' is not an absolute path
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 systemd-shim
E: Sub-process /usr/bin/dpkg returned an error code (1)

以下是混乱的情况


'like_so_'sudo dpkg -s systemd-shim
Package: systemd-shim
Status: deinstall ok half-configured
Priority: extra
Section: admin
Installed-Size: 80
Maintainer: Ubuntu Developers <[email protected]>
Architecture: armhf
Version: 6-2bzr1
Config-Version: 6-2bzr1
Depends: libc6 (>= 2.4), libglib2.0-0 (>= 2.37.3)
Suggests: pm-utils
Conffiles:
 /etc/dbus-1/system.d/org.freedesktop.systemd-shim.conf 8a52da330180c68389673f0301890ad4
Description: shim for systemd
 This package emulates the systemd function that are required to run
 the systemd helpers without using the init service
Original-Maintainer: Steve Langasek <[email protected]>

我该如何继续我的apt-get dist-update -f

谢谢

答案1

我遇到了类似的问题。我的解决方案与此处介绍的类似http://www.iasptk.com/ubuntu-fix-broken-package-best-solution/

我必须从中删除 systemd-shim 包条目/var/lib/dpkg/status

之后sudo apt-get install -f开始工作

相关内容