Update Your Window to Latest Version

Update Assistant can help you update to the latest version of Windows 10

https://www.microsoft.com/en-us/software-download/windows10

Check your window version :

Start >> Run >> winver

Solved : required to format data

Start >> Run >> regedit

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

Set ProgramW6432Dir to C drive directory

Restart

Update WSL2

Window PowerShell as administrator

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Restart

Install Linux Kernel

Install :https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi

wsl --set-default-version 2

Install Ubuntu 18.04

Download Window Microsoft Store : https://www.microsoft.com/th-th/p/ubuntu-1804-lts/9n9tngvndl3q?activetab=pivot:overviewtab

Troubleshooting : Installation failed with error 0x80070003

Settings -> Storage -> More Storage Settings: Change where new content is saved to C drive

Optional : Change install location

Open powershell before Ubuntu first-run
Explorer.exe (Get-AppxPackage *Ubuntu*).InstallLocation
Copy install.tar.gz and ubuntu1804.exe to desired drive Then run .exe