HOME
  Security
   Software
    Hardware
  
FPGA
  CPU
   Android
    Raspberry Pi
  
nLite
  Xcode
   etc.
    ALL
  
LINK
BACK
 

2023/05/05

Windowsの WSL2環境が Error code: Wsl/WSL_E_DEFAULT_DISTRO_NOT_FOUNDで起動しなくなった場合 Windowsの WSL2環境が Error code: Wsl/WSL_E_DEFAULT_DISTRO_NOT_FOUNDで起動しなくなった場合

(How to fix Windows WSL Error code: Wsl/InstallDistro/WSL_E_INSTALL_PROCESS_FAILED)

Tags: [Windows], [無人インストール]




● Windowsの WSL2環境の設定をコマンドラインで行なう方法

2021/09/01
Windowsの WSL2環境の設定をコマンドラインで行なう方法
Windowsの WSL2環境の設定をコマンドラインで行なう方法

  Windowsの WSL環境でコマンドラインで Debianや Ubuntuをインストールする方法


● Windowsの WSL2環境が Error code: Wsl/WSL_E_DEFAULT_DISTRO_NOT_FOUNDで起動しなくなった場合

 How to fix Windows WSL Error code: Wsl/InstallDistro/WSL_E_INSTALL_PROCESS_FAILED

 Windwos 11の WSL2で Ubuntu 22.04を「リセット」したら WSL_E_INSTALL_PROCESS_FAILEDで Ubuntuが起動しなくなりました。

 表示されるメッセージを見ると「仮想ドライブのファイルが見つからない」と言う内容でした。(=「Windowsハイパーバイザープラットフォーム」が無効になっているのでは無い)


 ググって色々といじくっていたら WSL_E_DEFAULT_DISTRO_NOT_FOUNDのエラーも出る様になりました。

0x80370114 #9944

Problem installing WSL: Error code: Wsl/WSL_E_DEFAULT_DISTRO_NOT_FOUND #9338

 最終的に下記の操作で復活しました。
wsl --unregister Ubuntu

wsl --update

wsl --version

wsl --install Ubuntu


● Windowsの WSL2環境が Error code: Wsl/WSL_E_INSTALL_PROCESS_FAILEDで起動しなくなった場合

 How to fix Windows WSL Error code: Wsl/InstallDistro/WSL_E_INSTALL_PROCESS_FAILED

 同上で解決。



● Windowsの WSL2環境が Error code: Wsl/WSL_E_INSTALL_PROCESS_FAILEDで更新インストールできなくなった場合

 How to fix Windows WSL Error code: Wsl/InstallDistro/WSL_E_INSTALL_PROCESS_FAILED

 同上で解決。


● Windowsの WSL2環境が Error code: Wsl/Service/CreateInstance/MountVhd/ERROR_FILE_NOT_FOUNDで更新インストールできなくなった場合

 How to fix Windows WSL Error code: Wsl/Service/CreateInstance/MountVhd/ERROR_FILE_NOT_FOUND

 同上で解決。


● Windowsの WSL2環境が Error code: Wsl/InstallDistro/0x80073d05で更新インストールできなくなった場合

 How to fix Windows WSL Error code: Wsl/InstallDistro/0x80073d05

 同上で解決。

> wsl --list
Linux 用 Windows サブシステム ディストリビューション:
Ubuntu (既定)
Debian

> wsl --install -d Debian
インストール中: Debian GNU/Linux
パッケージの以前から存在していたアプリケーション データの削除中にエラーが発生し ました。
Error code: Wsl/InstallDistro/0x80073d05

> wsl --install -d Debian
インストール中: Debian GNU/Linux
Debian GNU/Linux がインストールされました。
Debian GNU/Linux を起動しています...
ディスク 'C:\Users\hoge\AppData\Local\Packages\TheDebianProject.DebianGNULinux_76v4gfsz19hv4\LocalState\ext4.vhdx' を WSL2 にアタッチできませんでした: 指定され たファイルが見つかりません。
Error code: Wsl/Service/CreateInstance/MountVhd/ERROR_FILE_NOT_FOUND
Press any key to continue...
ディストリビューション 'Debian' のインストール プロセスが次の終了コードで失敗し ました: 4294967295。
Error code: Wsl/InstallDistro/WSL_E_INSTALL_PROCESS_FAILED
> wsl --unregister Debian
登録解除。
この操作を正しく終了しました。

> wsl --update
更新プログラムを確認しています。
Linux 用 Windows サブシステムの最新バージョンは既にインストールされています。

> wsl --version
WSL バージョン: 1.2.5.0
カーネル バージョン: 5.15.90.1
WSLg バージョン: 1.0.51
MSRDC バージョン: 1.2.3770
Direct3D バージョン: 1.608.2-61064218
DXCore バージョン: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows バージョン: 10.0.19045.3448

> wsl.exe --install Debian
Debian GNU/Linux は既にインストールされています。
Debian GNU/Linux を起動しています...
Installing, this may take a few minutes...
Please create a default UNIX hoge account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers

Enter new UNIX username: hoge
New password:
Retype new password:
passwd: password updated successfully
Installation successful!

hoge@NUC:~$ uname -a
Linux NUC 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 GNU/Linux


● Debianのバージョンの確認方法

 Debianのディストリビューションのバージョンやリリース情報を確認する方法
 Debianのバージョン確認方法で uname -aだとわからない。

 Debianのディストリビューションのバージョンやリリース情報は /etc/debian_versionファイルや /etc/os-releaseファイルの中身を確認する。

$ uname -a
Linux Windows-10-WSL 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 GNU/Linux

$ cat /etc/debian_version
12.0

$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"



Tags: [Windows], [無人インストール]



[HOME] | [BACK]
リンクフリー(連絡不要、ただしトップページ以外は Web構成の変更で移動する場合があります)
Copyright (c) 2023 FREE WING,Y.Sakamoto
Powered by 猫屋敷工房 & HTML Generator

http://www.neko.ne.jp/~freewing/software/windows_wsl_error/