libvirt-bin(lvm2?) is not fully installed
cgbahk opened this issue · comments
Cheongyo Bahk commented
libvirt-bin
is required for pintos project
https://cs.jhu.edu/~huang/cs318/fall17/project/setup.html
$ sudo apt install -y libvirt-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
libvirt-bin is already the newest version (4.0.0-1ubuntu8.6).
The following package was automatically installed and is no longer required:
app-install-data
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 258 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up lvm2 (2.02.176-4.1ubuntu3) ...
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: active (exited) since Tue 2019-02-26 13:17:44 GMT; 22h ago
Docs: man:lvmetad(8)
Tasks: 0 (limit: 4595)
CGroup: /system.slice/lvm2-lvmetad.service
Feb 26 13:17:44 ub-Virtual-Machine systemd[1]: Starting LSB: LVM2 metadata daemon...
Feb 26 13:17:44 ub-Virtual-Machine 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 initramfs-tools (0.130ubuntu3.6) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-45-generic
Errors were encountered while processing:
lvm2
E: Sub-process /usr/bin/dpkg returned an error code (1)
lvm
itself is running anyway
$ lvm
WARNING: Running as a non-root user. Functionality may be unavailable.
lvm> exit
Exiting.
Cheongyo Bahk commented
Removed and reinstalled. Cleanly installed now
sudo apt purge -y lvm2
sudo apt autoremove
sudo apt install -y lvm2