BiliBiliToolPro
BiliBiliToolPro copied to clipboard
【Bug】2.0.0 运行失败 无法安装 dotnet6-sdk
版本号:
2.0.0
运行环境:
青龙面板 v2.15.15
问题描述:
无法安装 dotnet6-sdk,之前的 1.0.3 版本可以正常运行,2.0.0 就不行了安装 dotnet6-sdk 时总是失败,搜索了其他方案包括 #266 提到的方法都失败了
日志信息:
## 开始执行... 2023-05-30 21:33:39
./bili_task_base.sh: line 10: /root/.dotnet/dotnet: cannot execute binary file: Exec format error
which dotnet: /root/.dotnet/dotnet
开始安装dotnet
------尝试使用apk安装------
ERROR: unable to select packages:
dotnet6-sdk (no such package):
required by: world[dotnet6-sdk]
./bili_task_base.sh: line 20: /root/.dotnet/dotnet: cannot execute binary file: Exec format error
------再尝试使用官方脚本安装------
-------set up dot net env-------
安装依赖...
OK: 474 MiB in 106 packages
install by offical script...
dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where:
dotnet-install: - The SDK needs to be installed without user interaction and without admin rights.
dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs.
dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer.
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: calculate_vars
dotnet-install: Calling: get_normalized_architecture_from_architecture <auto>
dotnet-install: Calling: get_machine_architecture
dotnet-install: Normalized architecture: 's390x'.
dotnet-install: Calling: get_normalized_os
dotnet-install: Calling: get_current_os_name
dotnet-install: Calling: get_linux_platform_name
dotnet-install: Normalized OS: 'linux-musl'.
dotnet-install: Calling: get_normalized_quality
dotnet-install: Normalized quality: ''.
dotnet-install: Calling: get_normalized_channel 6.0
dotnet-install: Normalized channel: '6.0'.
dotnet-install: Calling: get_normalized_product
dotnet-install: Normalized product: 'dotnet-sdk'.
dotnet-install: Calling: resolve_installation_path <auto>
dotnet-install: Calling: get_user_install_path
dotnet-install: resolve_installation_path: user_install_path=/root/.dotnet
dotnet-install: InstallRoot: '/root/.dotnet'.
dotnet-install: Calling: get_normalized_architecture_for_specific_sdk_version Latest 6.0 s390x
dotnet-install: Calling: get_current_os_name
dotnet-install: Calling: get_linux_platform_name
dotnet-install: Calling: get_download_link_from_aka_ms
dotnet-install: Retrieving primary payload URL from aka.ms for channel: '6.0', quality: '', product: 'dotnet-sdk', os: 'linux-musl', architecture: 's390x'.
dotnet-install: Constructed aka.ms link: 'https://aka.ms/dotnet/6.0/dotnet-sdk-linux-musl-s390x.tar.gz'.
dotnet-install: Calling: get_http_header https://aka.ms/dotnet/6.0/dotnet-sdk-linux-musl-s390x.tar.gz true
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: get_http_header_curl https://aka.ms/dotnet/6.0/dotnet-sdk-linux-musl-s390x.tar.gz true
dotnet-install: Received response: HTTP/1.1 302 Moved Temporarily
Server: Kestrel
Location: https://www.bing.com?ref=aka&shorturl=dotnet/6.0/dotnet-sdk-linux-musl-s390x.tar.gz
Request-Context: appId=cid-v1:7d63747b-487e-492a-872d-762362f77974
X-Response-Cache-Status: True
Content-Length: 0
Expires: Tue, 30 May 2023 13:33:43 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 30 May 2023 13:33:43 GMT
Connection: keep-alive
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
HTTP/2 200
cache-control: private
content-length: 0
content-type: text/html; charset=utf-8
p3p: CP="NON UNI COM NAV STA LOC CURa DEVa PSAa PSDa OUR IND"
set-cookie: SUID=M; domain=.bing.com; expires=Wed, 31-May-2023 01:33:43 GMT; path=/; HttpOnly
set-cookie: MUID=3BC5B675C5BD608D36B3A554C46961AA; domain=.bing.com; expires=Sun, 23-Jun-2024 13:33:43 GMT; path=/; secure; SameSite=None
set-cookie: MUIDB=3BC5B675C5BD608D36B3A554C46961AA; expires=Sun, 23-Jun-2024 13:33:43 GMT; path=/; HttpOnly
set-cookie: _EDGE_S=F=1&SID=33C66FAFFF196441184B7C8EFECD65D7; domain=.bing.com; path=/; HttpOnly
set-cookie: _EDGE_V=1; domain=.bing.com; expires=Sun, 23-Jun-2024 13:33:43 GMT; path=/; HttpOnly
set-cookie: SRCHD=AF=NOFORM; domain=.bing.com; expires=Fri, 30-May-2025 13:33:43 GMT; path=/
set-cookie: SRCHUID=V=2&GUID=5FC853D76F39444AB5030ADCE0BBADCC&dmnchg=1; domain=.bing.com; expires=Fri, 30-May-2025 13:33:43 GMT; path=/
set-cookie: SRCHUSR=DOB=20230530; domain=.bing.com; expires=Fri, 30-May-2025 13:33:43 GMT; path=/
set-cookie: SRCHHPGUSR=SRCHLANG=en; domain=.bing.com; expires=Fri, 30-May-2025 13:33:43 GMT; path=/
set-cookie: _SS=SID=33C66FAFFF196441184B7C8EFECD65D7; domain=.bing.com; path=/
set-cookie: ULC=; domain=.bing.com; expires=Mon, 29-May-2023 13:33:43 GMT; path=/
set-cookie: _HPVN=CS=eyJQbiI6eyJDbiI6MSwiU3QiOjAsIlFzIjowLCJQcm9kIjoiUCJ9LCJTYyI6eyJDbiI6MSwiU3QiOjAsIlFzIjowLCJQcm9kIjoiSCJ9LCJReiI6eyJDbiI6MSwiU3QiOjAsIlFzIjowLCJQcm9kIjoiVCJ9LCJBcCI6dHJ1ZSwiTXV0ZSI6dHJ1ZSwiTGFkIjoiMjAyMy0wNS0zMFQwMDowMDowMFoiLCJJb3RkIjowLCJHd2IiOjAsIkRmdCI6bnVsbCwiTXZzIjowLCJGbHQiOjAsIkltcCI6MX0=; domain=.bing.com; expires=Fri, 30-May-2025 13:33:43 GMT; path=/
x-eventid: 6475fb37b96540d8a826e176a9407b8d
useragentreductionoptout: A7kgTC5xdZ2WIVGZEfb1hUoNuvjzOZX3VIV/BA6C18kQOOF50Q0D3oWoAm49k3BQImkujKILc7JmPysWk3CSjwUAAACMeyJvcmlnaW4iOiJodHRwczovL3d3dy5iaW5nLmNvbTo0NDMiLCJmZWF0dXJlIjoiU2VuZEZ1bGxVc2VyQWdlbnRBZnRlclJlZHVjdGlvbiIsImV4cGlyeSI6MTY4NDg4NjM5OSwiaXNTdWJkb21haW4iOnRydWUsImlzVGhpcmRQYXJ0eSI6dHJ1ZX0=
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-cache: CONFIG_NOCACHE
accept-ch: Sec-CH-UA-Arch, Sec-CH-UA-Bitness, Sec-CH-UA-Full-Version, Sec-CH-UA-Mobile, Sec-CH-UA-Model, Sec-CH-UA-Platform, Sec-CH-UA-Platform-Version
x-msedge-ref: Ref A: CB7EB6AAB9DC4A1E8514D828589C672C Ref B: NYCEDGE1611 Ref C: 2023-05-30T13:33:43Z
date: Tue, 30 May 2023 13:33:42 GMT
dotnet-install: The aka.ms link 'https://aka.ms/dotnet/6.0/dotnet-sdk-linux-musl-s390x.tar.gz' is not valid: received HTTP code: 302.
dotnet-install: Falling back to latest.version file approach.
dotnet-install: Calling: get_specific_version_from_version https://dotnetcli.blob.core.windows.net/dotnet 6.0 s390x Latest
dotnet-install: Calling: get_version_from_latestversion_file https://dotnetcli.blob.core.windows.net/dotnet 6.0 s390x false
dotnet-install: get_version_from_latestversion_file: latest url: https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0/latest.version
dotnet-install: Calling: download https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0/latest.version
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: downloadcurl https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0/latest.version
dotnet-install: get_specific_version_from_version: version_info=6.0.408
dotnet-install: Calling: get_version_from_latestversion_file_content
dotnet-install: Calling: get_specific_product_version https://dotnetcli.blob.core.windows.net/dotnet 6.0.408
dotnet-install: Calling: get_specific_product_version_url https://dotnetcli.blob.core.windows.net/dotnet 6.0.408 true
dotnet-install: Constructed productVersion link: https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.408/sdk-productVersion.txt
dotnet-install: Calling: get_specific_product_version_url https://dotnetcli.blob.core.windows.net/dotnet 6.0.408 false
dotnet-install: Constructed productVersion link: https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.408/productVersion.txt
dotnet-install: Checking for the existence of https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.408/sdk-productVersion.txt
dotnet-install: Calling: machine_has curl
dotnet-install: specific_version=6.0.408
dotnet-install: Calling: construct_download_link https://dotnetcli.blob.core.windows.net/dotnet 6.0 s390x 6.0.408 linux-musl
dotnet-install: Calling: get_specific_product_version https://dotnetcli.blob.core.windows.net/dotnet 6.0.408
dotnet-install: Calling: get_specific_product_version_url https://dotnetcli.blob.core.windows.net/dotnet 6.0.408 true
dotnet-install: Constructed productVersion link: https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.408/sdk-productVersion.txt
dotnet-install: Calling: get_specific_product_version_url https://dotnetcli.blob.core.windows.net/dotnet 6.0.408 false
dotnet-install: Constructed productVersion link: https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.408/productVersion.txt
dotnet-install: Checking for the existence of https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.408/sdk-productVersion.txt
dotnet-install: Calling: machine_has curl
dotnet-install: Constructed primary named payload URL: https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.408/dotnet-sdk-6.0.408-linux-musl-s390x.tar.gz
dotnet-install: Calling: construct_legacy_download_link https://dotnetcli.blob.core.windows.net/dotnet 6.0 s390x 6.0.408
dotnet-install: Calling: get_legacy_os_name
dotnet-install: Calling: get_legacy_os_name_from_platform alpine.3.18.0
dotnet-install: Distribution specific OS name and version could not be detected: UName = Linux
dotnet-install: Cound not construct a legacy_download_link; omitting...
dotnet-install: Calling: is_dotnet_package_installed /root/.dotnet sdk 6.0.408
dotnet-install: Calling: combine_paths /root/.dotnet sdk
dotnet-install: combine_paths: root_path=/root/.dotnet
dotnet-install: combine_paths: child_path=sdk
dotnet-install: Calling: combine_paths /root/.dotnet/sdk 6.0.408
dotnet-install: combine_paths: root_path=/root/.dotnet/sdk
dotnet-install: combine_paths: child_path=6.0.408
dotnet-install: is_dotnet_package_installed: dotnet_package_path=/root/.dotnet/sdk/6.0.408
dotnet-install: Calling: get_specific_version_from_version https://dotnetbuilds.blob.core.windows.net/public 6.0 s390x Latest
dotnet-install: Calling: get_version_from_latestversion_file https://dotnetbuilds.blob.core.windows.net/public 6.0 s390x false
dotnet-install: get_version_from_latestversion_file: latest url: https://dotnetbuilds.blob.core.windows.net/public/Sdk/6.0/latest.version
dotnet-install: Calling: download https://dotnetbuilds.blob.core.windows.net/public/Sdk/6.0/latest.version
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: downloadcurl https://dotnetbuilds.blob.core.windows.net/public/Sdk/6.0/latest.version
dotnet-install: Calling: get_http_header_curl https://dotnetbuilds.blob.core.windows.net/public/Sdk/6.0/latest.version false
dotnet-install: Unable to download https://dotnetbuilds.blob.core.windows.net/public/Sdk/6.0/latest.version. Returned HTTP status code: 404.
dotnet-install: Download failed: https://dotnetbuilds.blob.core.windows.net/public/Sdk/6.0/latest.version
dotnet-install: Failed to resolve the specific version number using feed 'https://dotnetbuilds.blob.core.windows.net/public'
dotnet-install: Generated 1 links.
dotnet-install: Link 0: primary, 6.0.408, https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.408/dotnet-sdk-6.0.408-linux-musl-s390x.tar.gz
dotnet-install: Calling: install_dotnet
dotnet-install: Zip path: /tmp/dotnet.hhTMrZTDp
dotnet-install: Attempting to download using primary link https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.408/dotnet-sdk-6.0.408-linux-musl-s390x.tar.gz
dotnet-install: Calling: download https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.408/dotnet-sdk-6.0.408-linux-musl-s390x.tar.gz /tmp/dotnet.hhTMrZTDp
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: downloadcurl https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.408/dotnet-sdk-6.0.408-linux-musl-s390x.tar.gz /tmp/dotnet.hhTMrZTDp
curl: (22) The requested URL returned error: 404
dotnet-install: Calling: get_http_header_curl https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.408/dotnet-sdk-6.0.408-linux-musl-s390x.tar.gz false
dotnet-install: Unable to download https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.408/dotnet-sdk-6.0.408-linux-musl-s390x.tar.gz. Returned HTTP status code: 404.
dotnet-install: Download failed: https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.408/dotnet-sdk-6.0.408-linux-musl-s390x.tar.gz
dotnet-install: The resource at primary link 'https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.408/dotnet-sdk-6.0.408-linux-musl-s390x.tar.gz' is not available.
dotnet-install: Temporary zip file /tmp/dotnet.hhTMrZTDp was removed
dotnet_install: Error: Could not find `.NET Core SDK` with version = 6.0.408
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
添加PATH
/dev/stdin: line 116: /root/.dotnet/dotnet: cannot execute binary file: Exec format error
-------set up dot net env finish-------
./bili_task_base.sh: line 25: /root/.dotnet/dotnet: cannot execute binary file: Exec format error
------再尝试使用二进制包安装------
-------set up dot net env-------
安装依赖...
OK: 474 MiB in 106 packages
install by binaries...
--2023-05-30 21:33:46-- https://download.visualstudio.microsoft.com/download/pr/d74b9eb9-d60c-4b0d-8d53-f30a6e22b917/ef06d32d3b5206786eac8011798568aa/dotnet-sdk-6.0.405-linux-musl-x64.tar.gz
Resolving download.visualstudio.microsoft.com (download.visualstudio.microsoft.com)... 93.184.215.201, 2606:2800:11f:7de:d31:7db:168f:1225
Connecting to download.visualstudio.microsoft.com (download.visualstudio.microsoft.com)|93.184.215.201|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 184892110 (176M) [application/octet-stream]
Saving to: 'dotnet-sdk.tar.gz'
0K .......... .......... .......... .......... .......... 0% 11.5M 15s
180500K .......... .......... .......... .......... .......... 99% 612M 0s
180550K ........ 100% 16.2T=1.6s
2023-05-30 21:33:48 (110 MB/s) - 'dotnet-sdk.tar.gz' saved [184892110/184892110]
添加PATH
/dev/stdin: line 116: /root/.dotnet/dotnet: cannot execute binary file: Exec format error
-------set up dot net env finish-------
./bili_task_base.sh: line 30: /root/.dotnet/dotnet: cannot execute binary file: Exec format error
安装失败,没办法了,毁灭吧,自己解决吧:https://learn.microsoft.com/zh-cn/dotnet/core/install/linux-alpine
## 执行结束... 2023-05-30 21:33:57 耗时 18 秒
我也是“毁灭吧”,解决了吗?
我也是“毁灭吧”,解决了吗?
没呢,放弃了换了一个机子
ssh连接到设备 docker exec -it qinglong bash apk add dotnet6-sdk 我是这样解决的
dev先行版解决了,暂时还没合并到main,这两天发
与 #691 重复了,这个先关了