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