You’re going to have to try to be more precise about what you’re doing
I imagine that you (= your user) have the right to set up repositories, correct?
The availability of the script setup-repos.sh is very recent
When I installed Webmin on a fresh Rocky Linux 9.1 system in mid-January, the previous Webmin website had instructions for how to do set up things manually, which you could still try to follow (instead of using setup-repos.sh)
Clean install of RHEL 9.1, dnf update (forgot to mention that).
Then I followed the instructions right at the top of the Webmin Download page.
" The simplest and best way to get Webmin is to use automatic setup-repos.sh script to configure official repositories on your RHEL or Debian derivative systems. It can be done in two easy steps:"
This was done as root, so yeah the right to do whatever.
I ended up doing it manually - mentioned in another persons thread, but I wanted to alert staff to the fact that something needs checking.
I did a test install on Rocky 9.1 yesterday (to try to reproduce another reported problem), and I didn’t have any issues.
So, currently have no way to reproduce it. Seems likely to be a network problem, maybe? I guess we should give a better error message if something fails.