Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Windows

แก้ไข WslRegisterDistribution failed with error: 0x80070422

ข้อผิดพลาด 0x80070422 เกิดเมื่อติดตั้ง WSL ด้วยตนเอง ข้อความ: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it บทความนี้แนะนำ 3 วิธีแก้ไข

3 วิธีแก้ไขหลัก

  1. Restart LxssManager service
  2. ตรวจสอบ Security Software ที่บล็อก
  3. Reinstall WSL

1. Restart LxssManager Service

  1. เปิด Services (Win + R → services.msc)
  2. หา LxSSManager
  3. คลิกขวา → Start
  4. ลองเปิด WSL ใหม่

ตั้งค่า Auto-start: Double-click LxSSManager → Startup Type: Automatic
หาก Access Denied ใช้ CMD/PowerShell (Admin):

sc config LxssManager start=auto

2. ตรวจสอบ Security Software

ซอฟต์แวร์ความปลอดภัยบางตัวบล็อก LxSSManager ให้ตรวจสอบรายการแอพที่ถูกบล็อก และเพิ่ม LxSSManager ใน Whitelist/Exemption

3. Reinstall WSL

  1. เปิด Windows Features → ยกเลิกติ๊ก Windows Subsystem for Linux → OK → Reboot
  2. เปิด Windows Features อีกครั้ง → ติ๊ก WSL → OK → Reboot

ปัญหานี้เป็นปัญหา Service ที่ต้องทำงานเมื่อ WSL เริ่มต้น การแก้ไขครั้งเดียวจะทำงานต่อไปได้