nufeng1999 / wsl_XWin_Cygwin

Use Cygwin's xwin to run WSL GUI APP
Apache License 2.0
41 stars 8 forks source link

不能执行脚本,是要求物理机的权限吗? #4

Open LingHsvan opened 2 years ago

LingHsvan commented 2 years ago
root@wsl2:/opt/WSL/wsl_XWin_Cygwin# chmod +x ./install.sh;./install.sh
cp: cannot stat '/opt/WSL/wsl_XWin_Cygwin/cygwin-auto-install/cygwin-install.bat': No such file or directory
cp: cannot create regular file '/mnt/c/WINDOWS/System32/ucrtbase.dll': Permission denied
cp: cannot create regular file '/mnt/c/WINDOWS/System32/ucrtbased.dll': Permission denied
cp: cannot create regular file '/mnt/c/WINDOWS/System32/vcruntime140.dll': Permission denied
cp: cannot create regular file '/mnt/c/WINDOWS/System32/vcruntime140d.dll': Permission denied
'\\wsl$\Ubuntu-20.04\opt\WSL\wsl_XWin_Cygwin'
用作为当前目录的以上路径启动了 CMD.EXE。
UNC 路径不受支持。默认值设为 Windows 目录。
'C:\Users\ADMINI~1\AppData\Local\Temp\cygwin-install.bat' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
nufeng1999 commented 2 years ago
root@wsl2:/opt/WSL/wsl_XWin_Cygwin# chmod +x ./install.sh;./install.sh
cp: cannot stat '/opt/WSL/wsl_XWin_Cygwin/cygwin-auto-install/cygwin-install.bat': No such file or directory
cp: cannot create regular file '/mnt/c/WINDOWS/System32/ucrtbase.dll': Permission denied
cp: cannot create regular file '/mnt/c/WINDOWS/System32/ucrtbased.dll': Permission denied
cp: cannot create regular file '/mnt/c/WINDOWS/System32/vcruntime140.dll': Permission denied
cp: cannot create regular file '/mnt/c/WINDOWS/System32/vcruntime140d.dll': Permission denied
'\\wsl$\Ubuntu-20.04\opt\WSL\wsl_XWin_Cygwin'
用作为当前目录的以上路径启动了 CMD.EXE。
UNC 路径不受支持。默认值设为 Windows 目录。
'C:\Users\ADMINI~1\AppData\Local\Temp\cygwin-install.bat' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

需要使用Administrator 用户运行终端,并且使用 root 用户登陆Ubuntu ,否则你需要自己设置各种权限。