Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LingHsvan opened this issue May 26, 2022 · 1 comment
Open

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

LingHsvan opened this issue May 26, 2022 · 1 comment

Comments

@LingHsvan
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants