Frqux’s AI laboratory

AIの技術が進化する今日

(忘備録)wslのubuntuインストール時の"Processing fstab with mount -a failed"というエラーの回避方法

旧PCのWSLをver2に移行するため、powershellにて

wsl --update

wsl --install

を実行し、Ubuntuをインストールしたところ、以下のようなエラーが出た。

Processing fstab with mount -a failed.

<3>WSL (7) ERROR: CreateProcessEntryCommon:370: getpwuid(1000) failed 2
<3>WSL (7) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (7) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (7) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
...以下10行ほど

調べたところ、指定の場所にマウントができない問題のようだった。

いろいろいじくるのが面倒だったため、Microdoft StoreからUbuntuを再インストールところ、すんなり行けた。

ちなみに別の方の記事で、powershellにて

wsl --list

を実行後に、"docker-desktop-data"が既定になっているのでUbuntuを規定に直すとできたと書かれていたが、現在”docker-desktop-data”が規定になっていても動いているので、似ているエラーで別の問題なのではないかと思うので注意したい。