wsl_XWin_Cygwin icon indicating copy to clipboard operation
wsl_XWin_Cygwin copied to clipboard

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

Open LingHsvan opened this issue 2 years ago • 1 comments

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' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

LingHsvan avatar May 26 '22 15:05 LingHsvan

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 ,否则你需要自己设置各种权限。

nufeng1999 avatar Jun 16 '22 01:06 nufeng1999