I just encounter the same issue, in my case, i run the following
commands to solve it temporarily:

$ uname -a
Linux ckh-desktop 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 
x86_64 x86_64 x86_64 GNU/Linux

$ sudo /bin/rm -rf /etc/lvm/
$ sudo rm -rf /etc/lvm/backup/
$ sudo apt purge lvm2
$ sudo updatdb
$ sudo locate lvm2
$ sudo rm /var/crash/lvm2.0.crash
$ sudo rm /etc/systemd/system/lvm2-*
$ sudo rm /etc/systemd/system/sysinit.target.wants/lvm2-*
$ sudo apt install lvm2
$ sudo apt update
$ sudo apt upgrade

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1746582

Title:
  package lvm2 2.02.176-4.1ubuntu2 failed to install/upgrade: installed
  lvm2 package post-installation script subprocess returned error exit
  status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1746582/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to