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

แก้ WslRegisterDistribution failed with error 0xc03a001a เมื่อเปิด Ubuntu

ข้อผิดพลาด 0xc03a001a เกิดเมื่อเปิด Ubuntu จาก Microsoft Store ข้อความ: The requested operation could not be completed due to a virtual disk system limitation. Virtual hard disk files must be uncompressed and unencrypted and must not be sparse.

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

  1. Run FSUTIL Command (ปิด Encryption & Compression ระบบ)
  2. Uncheck Compress/Encrypt Contents โฟลเดอร์ Ubuntu

วิธี 1: FSUTIL Command (Admin CMD/PowerShell)

fsutil behavior set disableencryption 1
fsutil behavior set disablecompression 1

Reboot แล้วลองเปิด Ubuntu ใหม่

วิธี 2: ยกเลิก Compression/Encryption โฟลเดอร์ Ubuntu

  1. เปิด %localappdata%\Packages\
  2. หาโฟลเดอร์ CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc (ชื่ออาจต่างไป)
  3. คลิกขวา → Properties → Advanced
  4. ยกเลิกติ๊ก Compress contents to save disk space และ Encrypt contents to secure data
  5. เลือก Apply changes to this folder only → OK

กระบวนการอาจใช้เวลานาน ขึ้นอยู่กับขนาดโฟลเดอร์ หลังเสร็จ รัน wsl --set-version จะทำงานได้ปกติ