我最近从 ubuntu 14.04(通过 16.04)升级到了 ubuntu 18.04。
这是我每次运行时都会看到的错误apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libcloog-isl4 libcolord1 libelfg0 libisl10 libisl15 libmpfr4 libsox2 python-xapian python3-pycurl
Use 'apt autoremove' to remove them.
The following packages have been kept back:
amd64-microcode curl findutils initramfs-tools initramfs-tools-bin libcurl3 libsane-common libunwind8 mailutils mailutils-common openssh-client openssh-server openssh-sftp-server plymouth plymouth-theme-ubuntu-text python-pip python-pip-whl ssh
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up 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 (--configure):
installed systemd-shim package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
systemd-shim
E: Sub-process /usr/bin/dpkg returned an error code (1)
这个问题似乎与此类似一以及其他一些
但修复不起作用。我认为这主要是因为这个
dpkg-maintscript-helper:错误:旧的配置文件‘debian/systemd-shim/etc/dbus-1/system.d/org.freedesktop.systemd1.conf’不是绝对路径