Vagrant winrm plugin installation error

Hello everyone! I’m trying to install vagrant in case to use a lab network to complete a course and it requires winrm plugin and others. When I try to run this:
sudo vagrant plugin install winrm

I get this kind of error:
Vagrant failed to load a configured plugin source. This can be caused
by a variety of issues including: transient connectivity issues, proxy
filtering rejecting access to a configured plugin source, or a configured
plugin source not responding correctly. Please review the error message
below to help resolve the issue:

no such name (

What can i do with this problem.

my host operating system is Windows 11 x64 and my guest is Ubuntu 22.04.3 LTS running in wsl2.

How can I fix that?