ダウンロード
こちらからubuntu-25.10-wsl-amd64.wslをダウンロードします。
インストール
wsl --install --from-file ubuntu-25.10-wsl-amd64.wsl
その後の設定
rootで立ち上がります。ユーザーを追加する必要があります。
ユーザー名はhogeにします。
ユーザー追加
adduser hoge
sudo権限を付与
gpasswd -a hoge sudo
または
sudo usermod -aG sudo hoge
デフォルトに設定
wsl.confに以下を書き込む。
[User] default=hoge
使ってみて
確認
hoge@NOVA:~$ cat /etc/os-release PRETTY_NAME="Ubuntu 25.10" NAME="Ubuntu" VERSION_ID="25.10" VERSION="25.10 (Questing Quokka)" VERSION_CODENAME=questing ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=questing LOGO=ubuntu-logo
Python
Python 3.13.7がインストールされていました。
hoge@NOVA:~$ python3 Python 3.13.7 (main, Aug 20 2025, 22:17:40) [GCC 15.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>>