ERROR: CreateProcessEntryCommon:347: getpwuid(0) failed 2 when access wsl

ตอนจะเข้า wsl เจอ error ครับ

PS C:\Users\Chatr> wsl
Processing fstab with mount -a failed.

<3>WSL (8) ERROR: CreateProcessEntryCommon:358: getpwuid(0) failed 2
<3>WSL (8) ERROR: CreateProcessEntryCommon:362: getpwuid(0) failed 2
<3>WSL (8) ERROR: CreateProcessEntryCommon:570: execvpe /bin/sh failed 2
<3>WSL (8) ERROR: CreateProcessEntryCommon:579: Create process not expected to return

จากการตรวจสอบพบว่าที่เครื่องมีตัว wsl ของ docker ตัวเดียว ซึ่งทั้งตัว docker-desktop (Docker Engine) และ docker-desktop-data (เก็บ Image)

PS C:\Users\Chatr> wsl -l -v
  NAME                   STATE           VERSION
* docker-desktop-data    Running         2
  docker-desktop         Running         2

สำหรับเคสนี้ ทางแก้ Setup wsl ด้วย Linux Distro ครับ เช่น Ubuntu จาก Powershell หรือ Windows Store ก็ได้ครับ อันนี้รอติดตามใน Blog ต่อไปได้ครับ

Reference


Discover more from naiwaen@DebuggingSoft

Subscribe to get the latest posts to your email.