Created attachment 1278 [details] Differential reports of cockpit-bridge Description of problem: Versify tool detection report: After installing cockpit-bridge.x86_64 on Anolis OS 23, running the cockpit-bridge --help command results in an error. Version-Release number of selected component (if applicable): How reproducible: $ docker pull registry.openanolis.cn/openanolis/anolisos:23 $ docker run -d registry.openanolis.cn/openanolis/anolisos:23 tail -f /dev/null $ docker exec -it [docker_id] /bin/bash $ yum install -y cockpit-bridge $ cockpit-bridge --help Steps to Reproduce: 1. 2. 3. Actual results: retcode: 1 stdout: stderr: Traceback (most recent call last): File "/usr/bin/cockpit-bridge", line 5, in <module> from cockpit.bridge import main File "/usr/lib/python3.11/site-packages/cockpit/bridge.py", line 32, in <module> from cockpit._vendor.systemd_ctypes import bus, run_async File "/usr/lib/python3.11/site-packages/cockpit/_vendor/systemd_ctypes/__init__.py", line 22, in <module> from .bus import Bus, BusError, BusMessage File "/usr/lib/python3.11/site-packages/cockpit/_vendor/systemd_ctypes/bus.py", line 24, in <module> from . import bustypes, introspection, libsystemd File "/usr/lib/python3.11/site-packages/cockpit/_vendor/systemd_ctypes/bustypes.py", line 44, in <module> from . import libsystemd, typing File "/usr/lib/python3.11/site-packages/cockpit/_vendor/systemd_ctypes/libsystemd.py", line 326, in <module> libsystemd = ctypes.CDLL("libsystemd.so.0") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/ctypes/__init__.py", line 376, in __init__ self._handle = _dlopen(self._name, mode) ^^^^^^^^^^^^^^^^^^^^^^^^^ OSError: libsystemd.so.0: cannot open shared object file: No such file or directory Expected results: retcode: 0 stdout: Usage: cockpit-bridge [OPTION?] Help Options: -h, --help Show help options Application Options: --interact=boundary Interact with the raw protocol --privileged Privileged copy of bridge --packages Show Cockpit package information --rules Show Cockpit bridge rules --version Show Cockpit version information cockpit-bridge is run automatically inside of a Cockpit session. When run from the command line one of the options above must be specified. stderr: Additional info: Analysis and Conclusion: The cockpit-bridge package depends on systemd-libs (which provides libsystemd.so.0), but this dependency is not explicitly declared in the RPM package of Anolis OS 23, resulting in systemd-libs not being automatically installed.
由于未安装systemd,导致报错,考虑为cockpit添加安装依赖systemd