ScoopInstaller / Main

📦 The default bucket for Scoop.
https://scoop.sh
The Unlicense
1.57k stars 940 forks source link

cmake@3.29.6: download via aria2 failed #5963

Closed hero closed 2 months ago

hero commented 2 months ago

ERROR Download failed! (Error 1) An unknown error occurred ERROR referer=https://github.com/Kitware/CMake/releases/download/v3.29.6/ dir=C:\Users\heroin\scoop\cache out=cmake#3.29.6#https_github.com_Kitware_CMake_releases_download_v3.29.6_cmake-3.29.6-windows-x86_64.zip

ERROR & 'C:\Users\heroin\scoop\apps\aria2\current\aria2c.exe' --input-file='C:\Users\heroin\scoop\cache\cmake.txt' --user-agent='Scoop/1.0 (+http://scoop.sh/) PowerShell/5.1 (Windows NT 10.0; Win64; x64; Desktop)' --allow-overwrite=true --auto-file-renaming=false --retry-wait=2 --split=5 --max-connection-per-server=5 --min-split-size=5M --console-log-level=warn --enable-color=false --no-conf=true --follow-metalink=true --metalink-preferred-protocol=https --min-tls-version=TLSv1.2 --stop-with-process=12200 --continue --summary-interval=0 --auto-save-interval=1 --all-proxy='127.0.0.1:10808'

Please try again or create a new issue by using the following link and paste your console output: https://github.com/ScoopInstaller/Main/issues/new?title=cmake%403.29.6%3a+download+via+aria2+failed

github-actions[bot] commented 2 months ago

Cannot reproduce.

All files could be downloaded without any issue. Problems with download could be caused by:

hero commented 2 months ago

好吧,我自己搞定了,处理方法供参考: 1) 禁用 aira2c: scoop config aria2-enabled false 2) 再次执行scoop update --all命令,查看错误日志发现是Token的问题

   WARN  Token might be misconfigured.

3) 重新申请一个私人令牌,配置下: scoop config gh_token <your_token> 4) 启用 aira2c: scoop config aria2-enabled true 5) 再次执行scoop update --all,没问题了~