Problem to install or remove any software"lvm2-lvmetad.service"
I've resolved this problem with:
sudo apt-get purge lvm2
sudo apt autoremove
sudo apt install lvm2
reboot the system, and new kernel should be installed. Furthermore, this discussion helped me.
If systemctl status lvm2-lvmetad
returns Loaded: masked (/dev/null)
you should unmask and enable it with
sudo systemctl unmask lvm2-lvmetad && sudo systemctl enable lvm2-lvmetad
The command systemctl status lvm2-lvmetad.socket
should return status confirming success.
If this approach doesn't work for you, you may have better luck with the purge/reinstall approach described here I would recommend having a good backup though.
Source:
https://unix.stackexchange.com/a/307058/67643