Skip to content

Instantly share code, notes, and snippets.

@maxwellcc
Created May 21, 2022 14:57
Show Gist options
  • Save maxwellcc/ea92994e9d095d6247180fe13f418c0c to your computer and use it in GitHub Desktop.
Save maxwellcc/ea92994e9d095d6247180fe13f418c0c to your computer and use it in GitHub Desktop.
Erro 'Elemento não encontrado' ao tentar utilizar ou converter uma distro Linux do WSL 1 para o WSL 2.

Erro 'Elemento não encontrado' ao tentar utilizar ou converter uma distro Linux do WSL 1 para o WSL 2.

WslRegisterDistribution failed with error: 0x80070490
Error: 0x80070490 Elemento não encontrado.

Olá! Eu estive um pouco angustiado com esse problema e como eu não encontrei uma solução, eu resolvi tentar por conta própria. Eu estou usando Windows 10 21H2 e esta tentativa foi realizada em 21/05/2022. Eu segui estes passos e obtive sucesso:

  1. Eu desinstalei as distros utilizando o comando > wsl --unregister <Distro>
  2. Eu desinstalei o Docker
  3. Eu desinstalei o Hyper-V
  4. Após reiniciar o computador, eu utilizei o comando > wsl --set-default-version 2
  5. Eu reinstalei a distro Ubuntu utilizando o comando > wsl --install -d Ubuntu
  6. A instância do Subsistema do Windows para Linux foi terminada com sucesso.
  7. Eu verifiquei que a distro está executando como WSL 2 com o comando > wsl -l -v

'Element not found' error when trying to use or convert a Linux distro from WSL 1 to WSL 2.

WslRegisterDistribution failed with error: 0x80070490
Error: 0x80070490 Element not found.

Hi! I've been a little distressed by this problem and as I haven't found a solution, I decided to try it on my own. I'm using Windows 10 21H2 and this attempt was made on 5/21/2022. I followed these steps and was successful:

  1. I uninstalled the distros using the command > wsl --unregister <Distro>
  2. I uninstalled Docker
  3. I uninstalled Hyper-V
  4. After restarting the computer, I used the command > wsl --set-default-version 2
  5. I reinstalled the Ubuntu distro using the command > wsl --install -d Ubuntu
  6. The Windows Subsystem for Linux instance terminated successfully.
  7. I verified that the distro is running as WSL 2 with the command > wsl -l -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment