我正在尝试安装或删除任何软件,但遇到以下错误:
Failed to restart lvm2-lvmetad.service: Unit lvm2-lvmetad.socket is masked.
invoke-rc.d: initscript lvm2-lvmetad, action "restart" failed.
● lvm2-lvmetad.service - LVM2 metadata daemon
Loaded: loaded (/lib/systemd/system/lvm2-lvmetad.service; static; vendor preset: enabled)
Active: active (exited) since Wed 2018-05-16 06:40:37 WAT; 1h 54min ago
Docs: man:lvmetad(8)
Tasks: 0 (limit: 4915)
CGroup: /system.slice/lvm2-lvmetad.service
May 16 06:40:37 raikone-X555UB systemd[1]: Starting LSB: LVM2 metadata daemon...
May 16 06:40:37 raikone-X555UB systemd[1]: Started LSB: LVM2 metadata daemon.
dpkg: error processing package lvm2 (--configure):
installed lvm2 package post-installation script subprocess returned error exit status 1
Processing triggers for shared-mime-info (1.9-2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for initramfs-tools (0.130ubuntu3) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-20-generic
Errors were encountered while processing:
lvm2
E: Sub-process /usr/bin/dpkg returned an error code (1)
我尝试按照此处的一些教程进行操作,但对我没有用。
现在我尝试了:apt-get -f install dpkg --configure -a apt-get update apt-get clean apt-get autoclean apt-get autoremove apt-get check apt-get -m update apt-get dist-upgrade
—
赫尔德2015年