ROOT 6.22/02 wasn’t built for Ubuntu 22.04. You can use a newer ROOT version, for instance by installing it through Conda or downloading it here; see the general install instructions.
do I have to remove the last version of Root?
Is it possible to upgrade the root without it?
so, the reason why I am not planning to remove the last version is that we have changed some macroses inside root in order to our special program packet.
We used another cmake file for using a special program. In fact, I have rebuilt the latest root release and the problem has arisen. Unfortunately, this version does not support the mentioned program.