WSL Operation not permitted 解決方案


  1. Launch Ubuntu WSL
  2. Create the file /etc/wsl.conf if it doesn’t exist
  3. Open the file (e.g.: nano /etc/wsl.conf) and add the following lines:
    [automount]
    options = "metadata"
    
  4. Save the file and shutdown WSL launching wsl --shutdown from a PowerShell
  5. Relaunch Ubuntu WSL

The metadata option allows Windows to support Linux system permissions: now all chmod/chown-related stuff will work correctly!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM