The official ROOT 6.42.00 binary distribution (provided by the ROOT Team) for Ubuntu 22.04 LTS (x86_64) explicitly depends on “libpython3.12.so.1.0”, which does NOT exist.
The Python 3.10 is the default version on this system.
Python 3.10 is not supported any more, and for example it is too old for the current Python ecosystem: torch requires sys.get_int_max_str_digits, added in Python 3.11.0rc2).
In our builders, we use Python 3.12 from the deadsnakes PPA instead.