What I did to avoid having to think too much about this problem was to clone the framework of the microcontroller I'm using, in my case the STM32F103C6TA, directly from GitHub and place it in this location in my Linux Ubuntu 22.04 system: /home/user/...
I'm having the same problem with Ubuntu 22.04. After a time with this windows authentication fail and a message to check my conection apper, but my internet is ok. I 'm using internet wifi in my home, no proxys or not vpn's.What I can do?!