Install apcupsd on rocky linux 9.2

When I install rocky linux 9.2 and install epel-release and then apcupsd and I get error:

Jul 24 16:15:33 FTPBackup systemd[1]: Starting APC UPS Power Control Daemon for Linux...
Jul 24 16:15:33 FTPBackup systemd[1]: Started APC UPS Power Control Daemon for Linux.
Jul 24 16:15:33 FTPBackup apcupsd[16962]: /sbin/apcupsd: error while loading libusb-1.0.so.0 from libusb-0.1.so.4: libusb-1.0.so.0: cannot open shared object file: No such file or directory
Jul 24 16:15:33 FTPBackup systemd[1]: apcupsd.service: Main process exited, code=exited, status=127/n/a
Jul 24 16:15:33 FTPBackup systemd[1]: apcupsd.service: Failed with result 'exit-code'.

How I can repair this? On Debian and other distribution it works. Only on Rocky Linux I get this error.

libusb are installed:

# rpm -qa | grep -i libusb
libusb-0.1.7-5.el9.x86_64

Virtualization server is on proxmox 8.0.3

Hi,

I would try installing libusbx.

I found it was already installed on my system and I’ve just tested apcupsd and it starts fine here.

I found this package suggested using dnf provides:-

$ dnf provides libusb-1.0.so.0
Last metadata expiration check: 0:05:40 ago on Mon 24 Jul 2023 21:42:46 BST.
libusbx-1.0.26-1.el9.i686 : Library for accessing USB devices
Repo        : baseos
Matched from:
Provide    : libusb-1.0.so.0

Thanks Tom

Yes :slight_smile: It`s works after I install libusbx
solution:

dnf install libusbx

Thank you @tjdoyle

1 Like