LSPosed / MagiskOnWSALocal

Integrate Magisk root and Google Apps into WSA (Windows Subsystem for Android)
GNU Affero General Public License v3.0
9.49k stars 22.99k forks source link

[Bug] Some files can't download during the build process #156

Closed kinver closed 2 years ago

kinver commented 2 years ago

Steps to reproduce/复现步骤

  1. 运行run.sh并在选择构建版本后部分文件无法下载成功,这些文件是:wsa-x64-retail.zip,download/xaml-x64.appx,magisk-stable.zip
  2. 重复clone和运行run.sh依然出现相同的状况

Expected behaviour/预期行为

完成上述几项文件的下载

Actual behaviour/实际行为

下载异常

注:下午我在办公室电脑也是同样的步骤已经构建成功并且安装好了WSA,回到宿舍电脑构建时却出了问题。在办公室时没挂代理,回到宿舍挂了代理。在宿舍不挂代理在获取链接时要很久。

MagiskOnWSALocal commit full SHA/MagiskOnWSALocal 提交的完整哈希

ed2529e620c0ccebfa600d046b9e348f96514000

Linux distribution info/Linux 发行版信息

Linux version 5.10.16.3-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Fri Apr 2 22:23:49 UTC 2021

Windows version/Windows 版本

Windows 11 21H2 10.0.22000 暂缺 Build 22000

Build Parameters/构建参数

COMMAND_LINE=--arch x64 --release-type retail --magisk-ver stable --gapps-brand MindTheGapps --root-sol magisk --compress INFO: Architecture: x64 INFO: Release Type: retail INFO: Magisk Version: stable INFO: GApps Brand: MindTheGapps INFO: Root Solution: magisk

Version requirement/版本要求

Logs/日志

Details 下载结果: gid |stat|avg speed |path/URI ======+====+===========+======================================================= 0c5d6c|ERR | 0B/s|/home/user/MagiskOnWSALocal/download/wsa-x64-retail.zip 7f085b|ERR | 0B/s|/home/user/MagiskOnWSALocal/download/xaml-x64.appx c58c4d|OK | 6.6MiB/s|/home/user/MagiskOnWSALocal/download/vclibs-x64.appx 2dc219|OK | 141KiB/s|/home/user/MagiskOnWSALocal/download/MindTheGapps-x64.zip f5dd7e|INPR| 0B/s|/home/user/MagiskOnWSALocal/download/magisk-stable.zip 下载magisk时一直提示类似信息: [#f5dd7e 0B/0B CN:1 DL:0B] 10/01 01:01:19 [NOTICE] CUID#10 - Redirecting to https://raw.githubusercontent.com/topjohnwu/magisk-files/25.2/app-release.apk 10/01 01:01:19 [NOTICE] CUID#10 - Redirecting to https://raw.githubusercontent.com/topjohnwu/magisk-files/25.2/app-release.apk 10/01 01:01:19 [NOTICE] CUID#10 - Redirecting to https://raw.githubusercontent.com/topjohnwu/magisk-files/25.2/app-release.apk 10/01 01:01:20 [NOTICE] CUID#10 - Redirecting to https://raw.githubusercontent.com/topjohnwu/magisk-files/25.2/app-release.apk 10/01 01:01:20 [NOTICE] CUID#10 - Redirecting to https://raw.githubusercontent.com/topjohnwu/magisk-files/25.2/app-release.apk 10/01 01:01:20 [NOTICE] CUID#10 - Redirecting to https://raw.githubusercontent.com/topjohnwu/magisk-files/25.2/app-release.apk [#f5dd7e 0B/0B CN:1 DL:0B] 10/01 01:01:20 [NOTICE] CUID#10 - Redirecting to https://raw.githubusercontent.com/topjohnwu/magisk-files/25.2/app-release.apk 已挂代理: ~/MagiskOnWSALocal$ curl www.google.com Google



 

Advanced search

© 2022 - Privacy - Terms

aria2_download.log

Howard20181 commented 2 years ago

这只能证明你宿舍的网络比办公室的要差,可以检查一下代理规则

kinver commented 2 years ago

这只能证明你宿舍的网络比办公室的要差,可以检查一下代理规则

感谢解答。好奇怪,按理来说办公室的网络质量也就那样,今天再去办公室那边试试,或者到时我在宿舍用手机热点看看怎样。

Howard20181 commented 2 years ago

看你的日志是Magisk下载失败,可以重试看看

kinver commented 2 years ago

看你的日志是Magisk下载失败,可以重试看看

排查了一下找出问题了。在办公室又构建了一次成功了,除了网速慢点没出什么问题。刚回到宿舍又检查了下发现果然是代理问题,在这里报告一下吧也好做个记录。

一开始代理用的是本机网卡的ip,虽然在ubuntu中curl google有返回结果,但是在构建wsa时下载magisk总是连接失败,并且下载mind the gapps和vclibs时网速也很慢。

2022-10-01_182524

后面代理使用wsl的虚拟网卡的ip就好了,网速正常。

2022-10-01_182544

至于wsa和xaml下载失败估计是因为我用UsbEAm Hosts Editor往host里写了些微软的规则,把host文件删了就好了。

Howard20181 commented 2 years ago

可以用这个脚本设置代理 https://gist.github.com/Howard20181/31e61599ecb069483448c03649810c75

kinver commented 2 years ago

可以用这个脚本设置代理 https://gist.github.com/Howard20181/31e61599ecb069483448c03649810c75

感谢,我用的一个类似的脚本

kinver commented 2 years ago

可以用这个脚本设置代理 https://gist.github.com/Howard20181/31e61599ecb069483448c03649810c75

再报告一个 https://github.com/LSPosed/MagiskOnWSALocal/issues/92#issuecomment-1242040448 提到的问题,我办公室的电脑也是win11的insider preview,同样和这个作者一样运行run.bat时进度条闪一下窗口就关闭了,wsa也没有安装成功,手动部署就能成功安装。宿舍的电脑是win 11 专业版 21H2,运行run.bat就能安装成功。看来insider preview确实不能通过run.bat和手动运行install.ps1安装。

Howard20181 commented 2 years ago

10.0.22621.608测试没问题

kinver commented 2 years ago

10.0.22621.608测试没问题

办公室的版本估计没这么新,等明天我再去看一下

kinver commented 2 years ago

10.0.22621.608测试没问题

忘记回复了,早上看了下办公室我自己的电脑版本是10.0.22623.730。等明天在同事的preview版本的电脑上再试试看能不能安装。

Howard20181 commented 2 years ago

现在预览版本的系统的Powershell管理员模式是完全使用Windows终端了吗?

Howard20181 commented 2 years ago

非管理员权限下,Powershell 下运行 Start-Process -PassThru -Verb RunAs powershell.exe 弹出来的窗口是什么样式的?

控制台主机 image

Windows终端 image

如果是Windows终端就会安装失败 因为会被强制退出

kinver commented 2 years ago

非管理员权限下,Powershell 下运行 Start-Process -PassThru -Verb RunAs powershell.exe 弹出来的窗口是什么样式的?

控制台主机 image

Windows终端 image

如果是Windows终端就会安装失败 因为会被强制退出

不在办公室,我记得运行run.bat时弹出的窗口是控制台主机。

kinver commented 2 years ago

非管理员权限下,Powershell 下运行 Start-Process -PassThru -Verb RunAs powershell.exe 弹出来的窗口是什么样式的?

控制台主机 image

Windows终端 image

如果是Windows终端就会安装失败 因为会被强制退出

不好意思记错了,刚到办公室看了下运行run.bat确实调用的是windows终端。 输入Start-Process -PassThru -Verb RunAs powershell.exe弹出的也是终端,看来确实是终端的问题,感谢解答。

Howard20181 commented 2 years ago

最新commit已经尝试强制使用控制台主机运行powershell了,可以试试

kinver commented 2 years ago

最新commit已经尝试强制使用控制台主机运行powershell了,可以试试

抱歉这两天有点忙没去试一试,不过刚刚试了下还是不行,还是一样的窗口闪一下就没了,按照说明的用终端cd到目录运行install也是一样的情况。

用的最新的commit 2f59f6d32714f12e3aeb310b47cf0a85d1156908

2022-10-05_170551

窗口消失之前的画面,基本上要么没进度条要么进度条跑一下就没了: 2022-10-05_165348

Howard20181 commented 2 years ago

所以现在是 Start-Process -PassThru -Verb RunAs ConHost.exe -Args "powershell" 弹出来的都是用Windows 终端了?

kinver commented 2 years ago

所以现在是 Start-Process -PassThru -Verb RunAs ConHost.exe -Args "powershell" 弹出来的都是用Windows 终端了?

屏幕截图 2022-10-05 172233

Howard20181 commented 2 years ago

看起来还是控制台主机

Howard20181 commented 2 years ago

看到了你的截图 用的是Administrator这个账户安装 这样会直接进行安装而不重新打开另一个Powershell 我看看要怎么改

kinver commented 2 years ago

看到了你的截图 用的是Administrator这个账户安装 这样会直接进行安装而不重新打开另一个Powershell 我看看要怎么改

我新建了个user用户组的账号,我试试能不能安装

kinver commented 2 years ago

user用户组运行run.bat卡这不动了,也没有安装成功,我估计权限不够: 屏幕截图 2022-10-05 173019

你先慢慢修改吧,要下班了:joy_cat: 等过几天上班了我再来看看

kinver commented 1 year ago

看到了你的截图 用的是Administrator这个账户安装 这样会直接进行安装而不重新打开另一个Powershell 我看看要怎么改

克隆了这个commit b092bcefe1bdd42c785cbb0a2571323e0d8b62fb 可以用终端部署了,:ox:

补个图: 2022-10-08_162922

Howard20181 commented 1 year ago

因为在安装依赖之前检查系统中是否已经有了,可能是直接跳过安装依赖了,不算解决问题,如果以后要求新版本的又会出问题。


From: kinver @.> Sent: Saturday, October 8, 2022 4:29:10 PM To: LSPosed/MagiskOnWSALocal @.> Cc: Howard Wu @.>; State change @.> Subject: Re: [LSPosed/MagiskOnWSALocal] [Bug] Some files can't download during the build process (Issue #156)

看到了你的截图 用的是Administrator这个账户安装 这样会直接进行安装而不重新打开另一个Powershell 我看看要怎么改

克隆了这个commit b092bcehttps://github.com/LSPosed/MagiskOnWSALocal/commit/b092bcefe1bdd42c785cbb0a2571323e0d8b62fb 可以用终端部署了,🐂

— Reply to this email directly, view it on GitHubhttps://github.com/LSPosed/MagiskOnWSALocal/issues/156#issuecomment-1272265091, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJRNWK6PYQE3LMCJNJELOX3WCEWFNANCNFSM6AAAAAAQZ67AGE. You are receiving this because you modified the open/close state.Message ID: @.***>