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

管理员模式运行init.bat出错 #1

Open
wadams2 opened this issue Apr 21, 2020 · 1 comment
Open

管理员模式运行init.bat出错 #1

wadams2 opened this issue Apr 21, 2020 · 1 comment

Comments

@wadams2
Copy link

wadams2 commented Apr 21, 2020

直接运行没问题

C:\WINDOWS\system32>cd D:\Program\smartdns\

C:\WINDOWS\system32>wsl sudo chmod 777 setdebian.sh
[sudo] password for meme:

C:\WINDOWS\system32>wsl sudo ./setdebian.sh
[sudo] password for meme:
Ign:1 http://mirrors.163.com/debian stretch InRelease
Get:2 http://mirrors.163.com/debian stretch-updates InRelease [91.0 kB]
Get:3 http://mirrors.163.com/debian stretch-backports InRelease [91.8 kB]
Hit:4 http://mirrors.163.com/debian-security stretch/updates InRelease
Hit:5 http://mirrors.163.com/debian stretch Release
Fetched 183 kB in 3s (50.0 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libssl1.0-dev' for regex 'libssl1.0'
Note, selecting 'libssl1.0.0' for regex 'libssl1.0'
Note, selecting 'libssl1.0.2' for regex 'libssl1.0'
libssl1.0-dev is already the newest version (1.0.2u-1deb9u1).
libssl1.0.2 is already the newest version (1.0.2u-1
deb9u1).
0 upgraded, 0 newly installed, 0 to remove and 35 not upgraded.
--2020-04-21 09:44:38-- https://github.com/pymumu/smartdns/releases/download/Release23/smartdns.1.2019.04.02-0832.x86_64.tar.gz
Resolving github.com (github.com)... 13.250.177.223
Connecting to github.com (github.com)|13.250.177.223|:443... connected.
WARNING: The certificate of ‘github.com’ is not trusted.
WARNING: The certificate of ‘github.com’ hasn't got a known issuer.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/130578889/731c6300-5522-11e9-8f7f-213ede586f5d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200421%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200421T014439Z&X-Amz-Expires=300&X-Amz-Signature=c4659a0253f059337f0baf9e5344ad8fb52cff273666589dbb5925cfb389a996&X-Amz-SignedHeaders=host&actor_id=0&repo_id=130578889&response-content-disposition=attachment%3B%20filename%3Dsmartdns.1.2019.04.02-0832.x86_64.tar.gz&response-content-type=application%2Foctet-stream [following]
--2020-04-21 09:44:39-- https://github-production-release-asset-2e65be.s3.amazonaws.com/130578889/731c6300-5522-11e9-8f7f-213ede586f5d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200421%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200421T014439Z&X-Amz-Expires=300&X-Amz-Signature=c4659a0253f059337f0baf9e5344ad8fb52cff273666589dbb5925cfb389a996&X-Amz-SignedHeaders=host&actor_id=0&repo_id=130578889&response-content-disposition=attachment%3B%20filename%3Dsmartdns.1.2019.04.02-0832.x86_64.tar.gz&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.130.163
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.130.163|:443... connected.
WARNING: The certificate of ‘github-production-release-asset-2e65be.s3.amazonaws.com’ is not trusted.
WARNING: The certificate of ‘github-production-release-asset-2e65be.s3.amazonaws.com’ hasn't got a known issuer.
HTTP request sent, awaiting response... 200 OK
Length: 119893 (117K) [application/octet-stream]
Saving to: ‘smartdns.1.2019.04.02-0832.x86_64.tar.gz.2’

smartdns.1.2019.04.02-0832.x8 100%[=================================================>] 117.08K 82.6KB/s in 1.4s

2020-04-21 09:44:42 (82.6 KB/s) - ‘smartdns.1.2019.04.02-0832.x86_64.tar.gz.2’ saved [119893/119893]

tar (child): smartdns.1.2019.03.15-2307.x86_64.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
rm: cannot remove 'smartdns.1.2019.03.15-2307.x86_64.tar.gz': No such file or directory
./setdebian.sh: 19: cd: can't cd to smartdns/etc/smartdns
mv: cannot stat 'smartdns.conf': No such file or directory
ln: failed to create symbolic link './libssl.so.1.0.0': File exists
ln: failed to create symbolic link './libcrypto.so.1.0.0': File exists

C:\WINDOWS\system32>cd /d "./windows"
系统找不到指定的路径。

C:\WINDOWS\system32>set "STARTUP_PATH=C:\Users\24859\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"

C:\WINDOWS\system32>FOR /F %i IN ('wsl pwd') DO @set DIR_IN_WSL=%i

C:\WINDOWS\system32>FOR /F %i IN ('dir /w /b ..*.deb') DO @set DEB_FILE=%i
找不到文件

C:\WINDOWS\system32>copy .\wsl-run.vbs "C:\Users\24859\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup/"
系统找不到指定的文件。
Install startupt script failed.
请按任意键继续. . .

@lon91ong
Copy link
Owner

lon91ong commented May 29, 2020

抱歉这么晚才回复
你这个错误应该是文件下载的问题,可以尝试手动从原项目的Release下载Debian适用的包:smartdns.1.***.x86_64-linux-all.tar.gz
并修改setdebian.sh中对应的文件名,重新运行init.bat即可

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