Fix Ubuntu on WSL that failed to boot after reinstalling

Rajesh Ku. Rout
2 min readMar 13, 2023

--

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
We can see all registered distributions on our system

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
Click on Ubuntu App
  • 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

--

--

Rajesh Ku. Rout

Apache Airflow Global Champion Snowflake Squad Member 2024 --- Data Scientist - www.linkedin.com/in/rajeshrout97