差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
windows:wsl:trouble_shooting [2020/09/13 04:03] ともやんwindows:wsl:trouble_shooting [2020/09/16 06:51] (現在) ともやん
行 1: 行 1:
-====== トラブルシューティング ======+====== WSL 2 トラブルシューティング ====== 
 +{{windows:wsl2_trouble_shooting_001.png?470|WSL2 トラブルシューティング 001}}\\
  
 ===== WSL 2 が起動しない場合... ===== ===== WSL 2 が起動しない場合... =====
 +WSL 2 で問題が発生して解決しない場合は、GitHub の [[https://github.com/Microsoft/wsl/issues|Issues · microsoft/WSL]] で最新情報を確認しましょう。\\
 +
 +==== リモート プロシージャ コールに失敗する (Windows 10 Pro Insider Preview Build 20211.rs_prerelease.200904-1619) で発生 ====
 <WRAP prewrap 100%> <WRAP prewrap 100%>
 <code powershell> <code powershell>
行 15: 行 19:
  
 [プロセスはコード 4294967295 で終了しました] [プロセスはコード 4294967295 で終了しました]
 +</code>
 +</WRAP>
 +
 +**WSL のインストール状況**\\
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ wsl -l -v
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 +<code powershell>
 +  NAME             STATE           VERSION
 +* FedoraRemix      Stopped         2
 +  Fedora           Stopped         2
 +  Fedora32-WSL1    Stopped         1
 +  Fedora32         Stopped         2
 +</code>
 +</WRAP>
 +
 +**WSL 1** だと起動するときもあるので念のため確認\\
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ LxRunOffline r -n Fedora32-WSL1
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 +<code powershell>
 +リモート プロシージャ コールに失敗しました。
 +</code>
 +</WRAP>
 +**WSL1, WSL2** ともに全滅です。潔く諦めましょう😅💦💦💦\\
 +昨日の最新情報: [[https://github.com/microsoft/WSL/issues/5907|WSL2 distro can't start: the remote procedure call failed (build 20211) · Issue #5907 · microsoft/WSL]]\\
 +
 +動かないものは諦めて [[windows:hyper-v|Hyper-V - ハイパーバイザベース仮想化]] で暮らすのも手です。\\
 +つまり、軽量ユーティリティ VM ではなく、重量ハイパーバイザー VM を使うと言うことです。\\
 +
 +どうしても WSL を使用したい場合は **[設定] - [更新とセキュリティ] - [回復]** へ行き、**「まえのバージョンの Windows 10 に戻す」** を実行する。(**ディスク クリーンアップ (cleanmgr.exe)** で **以前の Windows のインストール** を破棄してしまった場合は、これが不可能なので次の更新で改善されるのを待つしたありません)\\
 +{{windows:windows_10_recovery_001.png?390|}}
 +{{windows:cleanmgr_windows_10_recovery_001.png?280|}}\\
 +
 +**wsl** コマンドのヘルプも半分以上英語で中途半端に日本語です😅💦💦💦(徹夜で作ったのかな❓)\\
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ wsl --help
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result_long>
 +<code powershell>
 +Copyright (c) Microsoft Corporation. All rights reserved.
 +
 +Usage: wsl.exe [Argument] [Options...] [CommandLine]
 +
 +Arguments for running Linux binaries:
 +
 +    If no command line is provided, wsl.exe launches the default shell.
 +
 +    --exec, -e <CommandLine>
 +        Execute the specified command without using the default Linux shell.
 +
 +    --
 +        Pass the remaining command line as is.
 +
 +Options:
 +    --distribution, -d <Distro>
 +        Run the specified distribution.
 +
 +    --user, -u <UserName>
 +        Run as the specified user.
 +
 +Arguments for managing Windows Subsystem for Linux:
 +
 +    --export <Distro> <FileName>
 +        Exports the distribution to a tar file.
 +        The filename can be - for standard output.
 +
 +    --import <Distro> <InstallLocation> <FileName> [Options]
 +        Imports the specified tar file as a new distribution.
 +        The filename can be - for standard input.
 +
 +        Options:
 +            --version <Version>
 +                Specifies the version to use for the new distribution.
 +
 +    --list, -l [Options]
 +        Lists distributions.
 +
 +        Options:
 +            --all
 +                List all distributions, including distributions that are currently
 +                being installed or uninstalled.
 +
 +            --running
 +                List only distributions that are currently running.
 +
 +            --quiet, -q
 +                Only show distribution names.
 +
 +            --verbose, -v
 +                Show detailed information about all distributions.
 +
 +    --set-default, -s <Distro>
 +        Sets the distribution as the default.
 +
 +    --set-default-version <Version>
 +        Changes the default install version for new distributions.
 +
 +    --set-version <Distro> <Version>
 +        Changes the version of the specified distribution.
 +
 +    --shutdown
 +        Immediately terminates all running distributions and the WSL 2 lightweight utility virtual machine.
 +
 +    --status
 +        Show the status of Windows Subsystem for Linux.
 +
 +    --terminate, -t <Distro>
 +        Terminates the specified distribution.
 +
 +    --unregister <Distro>
 +        Unregisters the distribution and deletes the root filesystem.
 +
 +    --update [Options]
 +        Manage updates to the WSL 2 kernel. If no options are specified, this will
 +        update to the latest kernel version.
 +
 +        Options:
 +            --rollback
 +                Revert to the previous version of the WSL 2 kernel.
 +
 +    --help
 +        Display usage information.
 +
 +    --マウント <Disk>
 +        すべての WSL2 配布に物理ディスクをアタッチしてマウントします。
 +
 +        オプション:
 +            --ベア
 +                ディスクを WSL2 に接続しますが、マウントしないでください。
 +
 +    --入力 <Type>
 +        ディスクのマウント時に使用するファイルシステムです。指定しない場合は、既定で ext4 になります。
 +
 </code> </code>
 </WRAP> </WRAP>
行 160: 行 306:
 </WRAP> </WRAP>
  
-===== WSL 2 で bash に接続されない場合 (build 19559.rs_prerelease.200131-1437 で発生) =====+===== WSL 2 で bash に接続されない場合 (Windows 10 Prp Insider Preview Build 19559.rs_prerelease.200131-1437 で発生) =====
 **2020/2/21 - build 19564.rs_prerelease.200207-1438** で改善\\ **2020/2/21 - build 19564.rs_prerelease.200207-1438** で改善\\
 <code> <code>
  • windows/wsl/trouble_shooting.1599937409.txt.gz
  • 最終更新: 2020/09/13 04:03
  • by ともやん