I've just tried with Debian, sourced from the Microsoft Store. That doesn't suffer this issue - all commands hitting the network (apt, curl etc) work as expected with and without sudo. I checked to be sure resolv.conf in Debian is pointing to the WSL virtual adapter, and it is.
I don't know what might be specific to my environment, given that you can't reproduce at your end. It's a fairly unmolested Windows 10 installation. I'll be happy to provide more info if there's anything that would be helpful.
I've just tried with Debian, sourced from the Microsoft Store. That doesn't suffer this issue - all commands hitting the network (apt, curl etc) work as expected with and without sudo. I checked to be sure resolv.conf in Debian is pointing to the WSL virtual adapter, and it is.
I don't know what might be specific to my environment, given that you can't reproduce at your end. It's a fairly unmolested Windows 10 installation. I'll be happy to provide more info if there's anything that would be helpful.