If it helps I was trying to install vagrant when this happened. Output (of a second attempt) below:
$ sudo apt install vagrant
Reading package lists... Done
Building dependency tree
Reading state information... Done
vagrant is already the newest version (2.0.2+dfsg-2ubuntu2).
0 to upgrade, 0 to newly install, 0 to remove and 5 not to upgrade.
7 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up lvm2 (2.02.176-4.1ubuntu2) ...
update-initramfs: deferring update (trigger activated)
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: inactive (dead)
Docs: man:lvmetad(8)
Mar 09 16:06:24 ynap-techub systemd[1]: Started LVM2 metadata daemon.
Mar 09 16:36:08 ynap-techub systemd[1]: Stopping LVM2 metadata daemon...
Mar 09 16:36:08 ynap-techub systemd[1]: Stopped LVM2 metadata daemon.
dpkg: error processing package lvm2 (--configure):
installed lvm2 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of libguestfs0:amd64:
libguestfs0:amd64 depends on lvm2; however:
Package lvm2 is not configured yet.
dpkg: error processing package libguestfs0:amd64 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure. dpkg: dependency problems prevent configuration of libguestfs-reiserfs:amd64:
libguestfs-reiserfs:amd64 depends on libguestfs0 (= 1:1.36.13-1ubuntu3); however:
Package libguestfs0:amd64 is not configured yet.
dpkg: error processing package libguestfs-reiserfs:amd64 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure. dpkg: dependency problems prevent configuration of libguestfs-perl:
libguestfs-perl depends on libguestfs0 (= 1:1.36.13-1ubuntu3); however:
Package libguestfs0:amd64 is not configured yet.
dpkg: error processing package libguestfs-perl (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached dpkg: dependency problems prevent configuration of libguestfs-hfsplus:amd64:
libguestfs-hfsplus:amd64 depends on libguestfs0 (= 1:1.36.13-1ubuntu3); however:
Package libguestfs0:amd64 is not configured yet.
dpkg: error processing package libguestfs-hfsplus:amd64 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached dpkg: dependency problems prevent configuration of libguestfs-tools:
libguestfs-tools depends on libguestfs0 (= 1:1.36.13-1ubuntu3); however:
Package libguestfs0:amd64 is not configured yet.
libguestfs-tools depends on libguestfs-perl (= 1:1.36.13-1ubuntu3); however:
Package libguestfs-perl is not configured yet.
dpkg: error processing package libguestfs-tools (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached dpkg: dependency problems prevent configuration of libguestfs-xfs:amd64:
libguestfs-xfs:amd64 depends on libguestfs0 (= 1:1.36.13-1ubuntu3); however:
Package libguestfs0:amd64 is not configured yet.
dpkg: error processing package libguestfs-xfs:amd64 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached Processing triggers for initramfs-tools (0.130ubuntu3) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-10-generic
Errors were encountered while processing:
lvm2
libguestfs0:amd64
libguestfs-reiserfs:amd64
libguestfs-perl
libguestfs-hfsplus:amd64
libguestfs-tools
libguestfs-xfs:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
If it helps I was trying to install vagrant when this happened. Output (of a second attempt) below:
$ sudo apt install vagrant dfsg-2ubuntu2) . 4.1ubuntu2) ... service: Unit lvm2-lvmetad.socket is masked. service - LVM2 metadata daemon system/ lvm2-lvmetad. service; static; vendor preset: enabled)
Reading package lists... Done
Building dependency tree
Reading state information... Done
vagrant is already the newest version (2.0.2+
0 to upgrade, 0 to newly install, 0 to remove and 5 not to upgrade.
7 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up lvm2 (2.02.176-
update-initramfs: deferring update (trigger activated)
Failed to restart lvm2-lvmetad.
invoke-rc.d: initscript lvm2-lvmetad, action "restart" failed.
● lvm2-lvmetad.
Loaded: loaded (/lib/systemd/
Active: inactive (dead)
Docs: man:lvmetad(8)
Mar 09 16:06:24 ynap-techub systemd[1]: Started LVM2 metadata daemon.
Mar 09 16:36:08 ynap-techub systemd[1]: Stopping LVM2 metadata daemon...
Mar 09 16:36:08 ynap-techub systemd[1]: Stopped LVM2 metadata daemon.
dpkg: error processing package lvm2 (--configure):
installed lvm2 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of libguestfs0:amd64:
libguestfs0:amd64 depends on lvm2; however:
Package lvm2 is not configured yet.
dpkg: error processing package libguestfs0:amd64 (--configure):
dpkg: dependency problems prevent configuration of libguestfs- reiserfs: amd64: reiserfs: amd64 depends on libguestfs0 (= 1:1.36. 13-1ubuntu3) ; however:
dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.
libguestfs-
Package libguestfs0:amd64 is not configured yet.
dpkg: error processing package libguestfs- reiserfs: amd64 (--configure):
dpkg: dependency problems prevent configuration of libguestfs-perl: 13-1ubuntu3) ; however:
dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.
libguestfs-perl depends on libguestfs0 (= 1:1.36.
Package libguestfs0:amd64 is not configured yet.
dpkg: error processing package libguestfs-perl (--configure):
dpkg: dependency problems prevent configuration of libguestfs- hfsplus: amd64: hfsplus: amd64 depends on libguestfs0 (= 1:1.36. 13-1ubuntu3) ; however:
dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
libguestfs-
Package libguestfs0:amd64 is not configured yet.
dpkg: error processing package libguestfs- hfsplus: amd64 (--configure):
dpkg: dependency problems prevent configuration of libguestfs-tools: 13-1ubuntu3) ; however: 13-1ubuntu3) ; however:
dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
libguestfs-tools depends on libguestfs0 (= 1:1.36.
Package libguestfs0:amd64 is not configured yet.
libguestfs-tools depends on libguestfs-perl (= 1:1.36.
Package libguestfs-perl is not configured yet.
dpkg: error processing package libguestfs-tools (--configure):
dpkg: dependency problems prevent configuration of libguestfs- xfs:amd64: xfs:amd64 depends on libguestfs0 (= 1:1.36. 13-1ubuntu3) ; however:
dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
libguestfs-
Package libguestfs0:amd64 is not configured yet.
dpkg: error processing package libguestfs- xfs:amd64 (--configure):
Processing triggers for initramfs-tools (0.130ubuntu3) ... img-4.15. 0-10-generic reiserfs: amd64 hfsplus: amd64 xfs:amd64
dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
update-initramfs: Generating /boot/initrd.
Errors were encountered while processing:
lvm2
libguestfs0:amd64
libguestfs-
libguestfs-perl
libguestfs-
libguestfs-tools
libguestfs-
E: Sub-process /usr/bin/dpkg returned an error code (1)