LoginSignup
0
0

More than 3 years have passed since last update.

Windows10にUbuntu20.04インストール

Posted at

あらかじめ対処しておく設定

WslRegisterDistribution failed with error: 0xc03a001a

WSL2 のインストール時に WslRegisterDistribution failed with error: 0xc03a001a で失敗するときの対処法

WSL Issue(上の別の対応方法)

WSL2: Virtual hard disk files must be uncompressed and unencrypted and must not be sparse

以下コマンドが紹介されている。

# Windowsファイル暗号化(EFS)をオフにする(
fsutil behavior set disableencryption 1
# Windowsファイルの圧縮を無効にする
fsutil behavior set disablecompression 1

WSL インストール

Micro Soft Storeより、Ubuntuを選択

バージョン表記のないものも20.04LTS(2021/01/30時点)
image.png

Ubuntu起動

apt-get update

sudo apt-get update

wsl デフォルトをUbuntuにする

Power Shell起動

現在の設定

wsl --list --verbose

*印が現在の設定
image.png

Ubuntuへ変更

wsl --set-default Ubuntu

*印がUbuntuになる。
image.png

これで、wslと入れるとUbuntuのコンソールになる。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0