Fix Ubuntu on WSL that failed to boot after reinstalling
While Installing Ubuntu on WSL, the following error messages may appear and it may not boot.
This can be fixed by performing the initialization process that Ubuntu on WSL performs on the first boot. Reinstalling Ubuntu will not perform the initialization process because the registration information in the system is still there.
Follow the below steps to Fix this Issue
Step 1:- Launch Windows Powershell
→ Run the below Command to get the registered Ubuntu
wsl -l
Step 2:- Unregister Ubuntu
PS C:\Users\User> wsl --unregister Ubuntu
Unregistering.
The operation completed successfully.
Step 3:- Launch Ubuntu
→ Perform the Initialization process
- Search for Ubuntu on Search Bar
- Enter your Username and Password to complete the Initialization
Installing, this may take a few minutes...
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:
That’s it. You should be logged in to your ubuntu instance successfully.
If you want to install Airflow on it then click the below link to read my blog on it.
Please Like and follow my account for more such interesting content regarding Data Engineering. Thank you