WSL: "Specified network name is no longer available" after Reset this PC

Environment

Windows build number: Microsoft Windows [Version 10.0.19041.685]
Your Distribution version: Default Ubuntu Installer in Store (which should be 20.04?)
Whether the issue is on WSL 2 and/or WSL 1: 1

Steps to reproduce

Reset a Windows PC with WSL and Ubuntu installed, then attempt to reinstall it

Expected behavior

Connect right back in, whether by remaking the user or even finding the old one

Actual behavior

Installing, this may take a few minutes...
The specified network name is no longer available.
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: (whatever)
The specified network name is no longer available.
Enter new UNIX username: 

Unregister and try again doesn’t change anything.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 21 (1 by maintainers)

Most upvoted comments

This issue also happened to me when I reinstalled wsl-ubuntu, you should uninstall it first by running wslconfig /u Ubuntu

Refer this for details.