I am a bit surprised that you can use yum on WSL. By default, you should get a ubuntu image. And we don’t have ROOT packages on the official ubuntu repositories.
But, since you are using yum, I will suppose that you are using some kind of RHEL distribution. On AlmaLinux 9 for example, the following gives me a working environment with ROOT being usable from the Python prompt or jupyter
The WSL I have installed is an “WSL Oracle Linux Server 9.2” quoting from cat /etc/os-release
Which uses the yum package manager.
I have installed this image exactly because it is more easily supported than Ubuntu (please tell me if you think otherwise)
Anyway, I have tried to run the commands you offered and other than some packages installed by yum update
Nothing had changed. I also tried once again to import ROOT from a notebook and got the same error.