discussions
discussions copied to clipboard
Winget源似乎出现了问题,无法添加/更新
问题描述 / Bug description
更新时提示“无法更新” 尝试重置到官方地址后重新替换为USTC源,提示:
正在添加源:
winget -> https://mirrors.ustc.edu.cn/winget-source
执行此命令时发生意外错误:
0x8051100f : unknown error
不知是否有人遇到了同样的问题?
最近一次更新的 log:
============ SYNC STARTED AT 2023-09-28 19:05:00 ============
*********** 8< ***********
[2023-09-28T11:05:01.074Z][INFO] start syncing with https://cdn.winget.microsoft.com/cache
[2023-09-28T11:05:01.671Z][INFO] downloading from https://cdn.winget.microsoft.com/cache/source.msix
[2023-09-28T11:05:01.853Z][ERROR] Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html
============ SYNC FINISHED AT 2023-09-28 19:05:01 ============
尝试重新同步后正常,出错时该文件不到 10K。没有查看错误的 source.msix 具体的内容,目前怀疑可能是遇到了 40x/50x 的错误,然后可能下载到了报错的 HTML 之类的东西。
Cc @stevapple
感谢修复,辛苦了!(我居然忘了比对两边的文件信息:thinking:
2023年10月11日02:38:20 发现 https://mirrors.ustc.edu.cn/winget-source/source.msix 文件大小为0 https://mirrors.ustc.edu.cn/status/#sync 页面显示同步出错
============ SYNC STARTED AT 2023-10-10 19:05:00 ============
*********** 8< ***********
[2023-10-10T11:05:01.078Z][INFO] start syncing with https://cdn.winget.microsoft.com/cache
[2023-10-10T11:05:01.915Z][ERROR] End of data reached (data length = 0, asked index = 4). Corrupted zip ?
============ SYNC FINISHED AT 2023-10-10 19:05:01 ============
现在加了 retry,照理如果是网络问题(连不上或者返回 4xx/5xx)的话日志里会有重试的 warning。
疑似是上游问题,未改源也遇到了无法更新(
现在应该解决了?
现在应该解决了?
我当时手工同步之后看起来是正常的,这个似乎也是偶发的问题。
目测是上游问题,可以考虑在解压 zip 出错的情况下暂时不写入 source.msix?
2024-06-29 03:42:19.285 [CORE] Getting upstream file from remote: https://mirrors.ustc.edu.cn/winget-source/manifests/m/Microsoft/EdgeWebView2Runtime/126.0.2592.81/3c33
2024-06-29 03:42:19.285 [CORE] WinINet downloading from url: https://mirrors.ustc.edu.cn/winget-source/manifests/m/Microsoft/EdgeWebView2Runtime/126.0.2592.81/3c33
2024-06-29 03:42:19.342 [CORE] Download request failed. Returned status: 404
2024-06-29 03:42:19.342 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerCommonCore\Downloader.cpp(167)\WindowsPackageManager.dll!00007FFBE8058541: (caller: 00007FFBE82FE68F) Exception(2) tid(23e0) 80190194 未找到(404)。
Msg:[Download request status is not success.]
2024-06-29 03:42:19.342 [CORE] Getting upstream file failed, waiting a bit and retrying: https://mirrors.ustc.edu.cn/winget-source/manifests/m/Microsoft/EdgeWebView2Runtime/126.0.2592.81/3c33
2024-06-29 03:42:19.847 [CORE] WinINet downloading from url: https://mirrors.ustc.edu.cn/winget-source/manifests/m/Microsoft/EdgeWebView2Runtime/126.0.2592.81/3c33
2024-06-29 03:42:19.864 [CORE] Download request failed. Returned status: 404
2024-06-29 03:42:19.864 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerCommonCore\Downloader.cpp(167)\WindowsPackageManager.dll!00007FFBE8058541: (caller: 00007FFBE82FE68F) Exception(3) tid(23e0) 80190194 未找到(404)。
Msg:[Download request status is not success.]
2024-06-29 03:42:19.864 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerCommonCore\FileCache.cpp(228)\WindowsPackageManager.dll!00007FFBE833465F: (caller: 00007FFBE82FDBE7) LogHr(2) tid(23e0) 80190194 未找到(404)。
Msg:[GetUpstreamFile failed on source: https://mirrors.ustc.edu.cn/winget-source -- C:\__w\1\s\external\pkg\src\AppInstallerCommonCore\Downloader.cpp(167)\WindowsPackageManager.dll!00007FFBE8058541: (caller: 00007FFBE82FE68F) Exception(3) tid(23e0) 80190194 未找到(404)。
Msg:[Download request status is not success.]
]
2024-06-29 03:42:19.864 [CLI ] Caught wil::ResultException: C:\__w\1\s\external\pkg\src\AppInstallerCommonCore\Downloader.cpp(167)\WindowsPackageManager.dll!00007FFBE8058541: (caller: 00007FFBE82FE68F) Exception(3) tid(23e0) 80190194 δ ҵ (404)
Msg:[Download request status is not success.]
似乎又出了点问题?请各位同志抽空排查一下,谢谢!
2024年6月29日14:22:48 测试已恢复正常
似乎又出了点问题?请各位同志抽空排查一下,谢谢!
有可能是同步过程中会出错,现在看起来是正常的。