You are not logged in.

#1 2022-11-14 14:04:05

ljyip
Member
Registered: 2022-07-26
Posts: 9

[SOLVED] Cannot reinstall/upgrade systemd-libs and lvm2

If I run `pacman -S lvm2`, which reinstalls that and systemd-libs, here's the error:

```
systemd-libs: /usr/lib/libnss_myhostname.so.2 exists in filesystem
systemd-libs: /usr/lib/libnss_mymachines.so.2 exists in filesystem
systemd-libs: /usr/lib/libnss_resolve.so.2 exists in filesystem
systemd-libs: /usr/lib/libnss_systemd.so.2 exists in filesystem
systemd-libs: /usr/lib/libsystemd.so exists in filesystem
systemd-libs: /usr/lib/libsystemd.so.0 exists in filesystem
systemd-libs: /usr/lib/libsystemd.so.0.35.0 exists in filesystem
systemd-libs: /usr/lib/libudev.so exists in filesystem
systemd-libs: /usr/lib/libudev.so.1 exists in filesystem
systemd-libs: /usr/lib/libudev.so.1.7.5 exists in filesystem
lvm2: /etc/lvm/profile/cache-mq.profile exists in filesystem
lvm2: /etc/lvm/profile/cache-smq.profile exists in filesystem
lvm2: /etc/lvm/profile/command_profile_template.profile exists in filesystem
lvm2: /etc/lvm/profile/lvmdbusd.profile exists in filesystem
lvm2: /etc/lvm/profile/metadata_profile_template.profile exists in filesystem
lvm2: /etc/lvm/profile/thin-generic.profile exists in filesystem
lvm2: /etc/lvm/profile/thin-performance.profile exists in filesystem
lvm2: /etc/lvm/profile/vdo-small.profile exists in filesystem
lvm2: /usr/bin/fsadm exists in filesystem
lvm2: /usr/bin/lvchange exists in filesystem
lvm2: /usr/bin/lvconvert exists in filesystem
lvm2: /usr/bin/lvcreate exists in filesystem
lvm2: /usr/bin/lvdisplay exists in filesystem
lvm2: /usr/bin/lvextend exists in filesystem
lvm2: /usr/bin/lvm exists in filesystem
lvm2: /usr/bin/lvm_import_vdo exists in filesystem
lvm2: /usr/bin/lvmconfig exists in filesystem
lvm2: /usr/bin/lvmdevices exists in filesystem
lvm2: /usr/bin/lvmdiskscan exists in filesystem
lvm2: /usr/bin/lvmdump exists in filesystem
lvm2: /usr/bin/lvmpolld exists in filesystem
lvm2: /usr/bin/lvmsadc exists in filesystem
lvm2: /usr/bin/lvmsar exists in filesystem
lvm2: /usr/bin/lvreduce exists in filesystem
lvm2: /usr/bin/lvremove exists in filesystem
lvm2: /usr/bin/lvrename exists in filesystem
lvm2: /usr/bin/lvresize exists in filesystem
lvm2: /usr/bin/lvs exists in filesystem
lvm2: /usr/bin/lvscan exists in filesystem
lvm2: /usr/bin/pvchange exists in filesystem
lvm2: /usr/bin/pvck exists in filesystem
lvm2: /usr/bin/pvcreate exists in filesystem
lvm2: /usr/bin/pvdisplay exists in filesystem
lvm2: /usr/bin/pvmove exists in filesystem
lvm2: /usr/bin/pvremove exists in filesystem
lvm2: /usr/bin/pvresize exists in filesystem
lvm2: /usr/bin/pvs exists in filesystem
lvm2: /usr/bin/pvscan exists in filesystem
lvm2: /usr/bin/vgcfgbackup exists in filesystem
lvm2: /usr/bin/vgcfgrestore exists in filesystem
lvm2: /usr/bin/vgchange exists in filesystem
lvm2: /usr/bin/vgck exists in filesystem
lvm2: /usr/bin/vgconvert exists in filesystem
lvm2: /usr/bin/vgcreate exists in filesystem
lvm2: /usr/bin/vgdisplay exists in filesystem
lvm2: /usr/bin/vgexport exists in filesystem
lvm2: /usr/bin/vgextend exists in filesystem
lvm2: /usr/bin/vgimport exists in filesystem
lvm2: /usr/bin/vgimportclone exists in filesystem
lvm2: /usr/bin/vgimportdevices exists in filesystem
lvm2: /usr/bin/vgmerge exists in filesystem
lvm2: /usr/bin/vgmknodes exists in filesystem
lvm2: /usr/bin/vgreduce exists in filesystem
lvm2: /usr/bin/vgremove exists in filesystem
lvm2: /usr/bin/vgrename exists in filesystem
lvm2: /usr/bin/vgs exists in filesystem
lvm2: /usr/bin/vgscan exists in filesystem
lvm2: /usr/bin/vgsplit exists in filesystem
lvm2: /usr/include/lvm2cmd.h exists in filesystem
lvm2: /usr/lib/device-mapper/libdevmapper-event-lvm2mirror.so exists in filesystem
lvm2: /usr/lib/device-mapper/libdevmapper-event-lvm2raid.so exists in filesystem
lvm2: /usr/lib/device-mapper/libdevmapper-event-lvm2snapshot.so exists in filesystem
lvm2: /usr/lib/device-mapper/libdevmapper-event-lvm2thin.so exists in filesystem
lvm2: /usr/lib/device-mapper/libdevmapper-event-lvm2vdo.so exists in filesystem
lvm2: /usr/lib/initcpio/install/lvm2 exists in filesystem
lvm2: /usr/lib/initcpio/install/sd-lvm2 exists in filesystem
lvm2: /usr/lib/initcpio/udev/69-dm-lvm.rules exists in filesystem
lvm2: /usr/lib/libdevmapper-event-lvm2.so exists in filesystem
lvm2: /usr/lib/libdevmapper-event-lvm2.so.2.03 exists in filesystem
lvm2: /usr/lib/libdevmapper-event-lvm2mirror.so exists in filesystem
lvm2: /usr/lib/libdevmapper-event-lvm2raid.so exists in filesystem
lvm2: /usr/lib/libdevmapper-event-lvm2snapshot.so exists in filesystem
lvm2: /usr/lib/libdevmapper-event-lvm2thin.so exists in filesystem
lvm2: /usr/lib/libdevmapper-event-lvm2vdo.so exists in filesystem
lvm2: /usr/lib/liblvm2cmd.so exists in filesystem
lvm2: /usr/lib/liblvm2cmd.so.2.03 exists in filesystem
lvm2: /usr/lib/systemd/system/blk-availability.service exists in filesystem
lvm2: /usr/lib/systemd/system/lvm2-lvmpolld.service exists in filesystem
lvm2: /usr/lib/systemd/system/lvm2-lvmpolld.socket exists in filesystem
lvm2: /usr/lib/systemd/system/lvm2-monitor.service exists in filesystem
lvm2: /usr/lib/systemd/system/sysinit.target.wants/lvm2-lvmpolld.socket exists in filesystem
lvm2: /usr/lib/systemd/system/sysinit.target.wants/lvm2-monitor.service exists in filesystem
lvm2: /usr/lib/udev/rules.d/11-dm-lvm.rules exists in filesystem
lvm2: /usr/lib/udev/rules.d/69-dm-lvm.rules exists in filesystem
lvm2: /usr/share/man/man5/lvm.conf.5.gz exists in filesystem
lvm2: /usr/share/man/man7/lvmautoactivation.7.gz exists in filesystem
lvm2: /usr/share/man/man7/lvmcache.7.gz exists in filesystem
lvm2: /usr/share/man/man7/lvmraid.7.gz exists in filesystem
lvm2: /usr/share/man/man7/lvmreport.7.gz exists in filesystem
lvm2: /usr/share/man/man7/lvmsystemid.7.gz exists in filesystem
lvm2: /usr/share/man/man7/lvmthin.7.gz exists in filesystem
lvm2: /usr/share/man/man7/lvmvdo.7.gz exists in filesystem
lvm2: /usr/share/man/man8/fsadm.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvchange.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvconvert.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvcreate.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvdisplay.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvextend.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvm-config.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvm-dumpconfig.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvm-fullreport.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvm-lvpoll.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvm.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvm_import_vdo.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvmconfig.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvmdbusd.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvmdevices.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvmdiskscan.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvmdump.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvmlockctl.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvmlockd.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvmpolld.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvmsadc.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvmsar.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvreduce.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvremove.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvrename.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvresize.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvs.8.gz exists in filesystem
lvm2: /usr/share/man/man8/lvscan.8.gz exists in filesystem
lvm2: /usr/share/man/man8/pvchange.8.gz exists in filesystem
lvm2: /usr/share/man/man8/pvck.8.gz exists in filesystem
lvm2: /usr/share/man/man8/pvcreate.8.gz exists in filesystem
lvm2: /usr/share/man/man8/pvdisplay.8.gz exists in filesystem
lvm2: /usr/share/man/man8/pvmove.8.gz exists in filesystem
lvm2: /usr/share/man/man8/pvremove.8.gz exists in filesystem
lvm2: /usr/share/man/man8/pvresize.8.gz exists in filesystem
lvm2: /usr/share/man/man8/pvs.8.gz exists in filesystem
lvm2: /usr/share/man/man8/pvscan.8.gz exists in filesystem
lvm2: /usr/share/man/man8/vgcfgbackup.8.gz exists in filesystem
lvm2: /usr/share/man/man8/vgcfgrestore.8.gz exists in filesystem
lvm2: /usr/share/man/man8/vgchange.8.gz exists in filesystem
lvm2: /usr/share/man/man8/vgck.8.gz exists in filesystem
lvm2: /usr/share/man/man8/vgconvert.8.gz exists in filesystem
lvm2: /usr/share/man/man8/vgcreate.8.gz exists in filesystem
lvm2: /usr/share/man/man8/vgdisplay.8.gz exists in filesystem
lvm2: /usr/share/man/man8/vgexport.8.gz exists in filesystem
lvm2: /usr/share/man/man8/vgextend.8.gz exists in filesystem
lvm2: /usr/share/man/man8/vgimport.8.gz exists in filesystem
lvm2: /usr/share/man/man8/vgimportclone.8.gz exists in filesystem
lvm2: /usr/share/man/man8/vgimportdevices.8.gz exists in filesystem
lvm2: /usr/share/man/man8/vgmerge.8.gz exists in filesystem
lvm2: /usr/share/man/man8/vgmknodes.8.gz exists in filesystem
lvm2: /usr/share/man/man8/vgreduce.8.gz exists in filesystem
lvm2: /usr/share/man/man8/vgremove.8.gz exists in filesystem
lvm2: /usr/share/man/man8/vgrename.8.gz exists in filesystem
lvm2: /usr/share/man/man8/vgs.8.gz exists in filesystem
lvm2: /usr/share/man/man8/vgscan.8.gz exists in filesystem
lvm2: /usr/share/man/man8/vgsplit.8.gz exists in filesystem
```

If I run `pacman -Qo ` on one of those files mentionned, it says no package owns them.

The reason I had to reinstall lvm2 was because when I booted my computer, the systemd service of `lvm2-monitor.service` was failing. And I ran `mkinitcpio -P`, which gave me errors for the first time (I fixed a lot of them by installing libaio, thin-provisioning-tools). But lvm2 is just acting weird

Last edited by ljyip (2022-11-14 15:24:05)

Offline

#2 2022-11-14 15:21:19

philo
Member
Registered: 2015-01-26
Posts: 212

Re: [SOLVED] Cannot reinstall/upgrade systemd-libs and lvm2

Try

sudo pacman -S lvm2 --overwrrite *.* 

Offline

#3 2022-11-14 15:23:47

ljyip
Member
Registered: 2022-07-26
Posts: 9

Re: [SOLVED] Cannot reinstall/upgrade systemd-libs and lvm2

it works but the command to do was `sudo pacman -S lvm2 --overwrite '/'` since globbing auto expands in zsh which is not what anyone would want for this

Offline

#4 2022-11-15 01:54:55

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 6,853

Re: [SOLVED] Cannot reinstall/upgrade systemd-libs and lvm2

Do you know why those files were not tracked by pacman? Because you may have other issues beyond lvm2.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2022-11-15 02:23:37

ljyip
Member
Registered: 2022-07-26
Posts: 9

Re: [SOLVED] Cannot reinstall/upgrade systemd-libs and lvm2

I don't know, it just came out of the blue this morning. Maybe some package upgrades last night are the reason?

Offline

#6 2022-11-15 02:40:52

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 6,853

Re: [SOLVED] Cannot reinstall/upgrade systemd-libs and lvm2

ljyip wrote:

I don't know, it just came out of the blue this morning. Maybe some package upgrades last night are the reason?

No. pacman does not lose track of files on its own. Either you installed the files not with pacman (or from another system e.g. the live ISO, probably to repair some breakage) or (less likely) something got corrupted in pacman's database. The first is much more likely, but you should know if you did that and you'll want to fix pacman's database for any other packages you had to install that way or you'll run into similar errors.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#7 2022-11-15 03:01:18

ljyip
Member
Registered: 2022-07-26
Posts: 9

Re: [SOLVED] Cannot reinstall/upgrade systemd-libs and lvm2

Ok, I just followed this to address the issue: https://unix.stackexchange.com/question … em-upgrade

Should be good enough

Offline

Board footer

Powered by FluxBB