在Ubuntu服务器ARM64上安装VSTS代理

1l5u6lss  于 2023-03-01  发布在  其他
关注(0)|答案(1)|浏览(136)

我正在尝试在ubuntu arm64服务器上安装azagent,以便发布管道可以将工件推送到服务器的文件系统。我从以下链接下载了最新版本。https://vstsagentpackage.azureedge.net/agent/2.217.2/vsts-agent-linux-arm64-2.217.2.tar.gz当我运行www.example.com时config.sh我得到以下错误。The type initializer for 'System.Net.Http.CurlHandler' threw an exception.

  • 请注意,我尝试运行installdependencies.sh,但它失败了,并显示以下错误 *
E: Unable to locate package liblttng-ust0

运行www.example.com后的输出config.sh

./bin/System.Net.Http.Native.so: /lib/aarch64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./bin/System.Net.Http.Native.so)
Warning: on some platforms, libcurl3 is required.
It was not found.
Execute ./bin/installdependencies.sh to install missing dependencies.

  ___                      ______ _            _ _
 / _ \                     | ___ (_)          | (_)
/ /_\ \_____   _ _ __ ___  | |_/ /_ _ __   ___| |_ _ __   ___  ___
|  _  |_  / | | | '__/ _ \ |  __/| | '_ \ / _ \ | | '_ \ / _ \/ __|
| | | |/ /| |_| | | |  __/ | |   | | |_) |  __/ | | | | |  __/\__ \
\_| |_/___|\__,_|_|  \___| \_|   |_| .__/ \___|_|_|_| |_|\___||___/
                                   | |
        agent v2.217.2             |_|          (commit ef0b5a5)

>> End User License Agreements:

Building sources from a TFVC repository requires accepting the Team Explorer Everywhere End User License Agreement. This step is not required for building sources from Git repositories.

A copy of the Team Explorer Everywhere license agreement can be found at:
  /home/ubuntu/vstsagebt/license.html

Enter (Y/N) Accept the Team Explorer Everywhere license agreement now? (press enter for N) > Y

>> Connect:

Enter server URL > https://**************.visualstudio.com 
Enter authentication type (press enter for PAT) > 
Enter personal access token > ****************************************************
Error reported in diagnostic logs. Please examine the log for more details.
    - /home/ubuntu/vstsagebt/_diag/Agent_20230217-043447-utc.log
The type initializer for 'System.Net.Http.CurlHandler' threw an exception.
Failed to connect.  Try again or ctrl-c to quit
Enter server URL >
5lwkijsr

5lwkijsr1#

在Ubuntu的最新版本中,依赖项已被重命名,安装程序脚本已被更新为使用这个新的包名。
您没有提到您的Ubuntu版本,但您可能会在此问题中找到有关如何解决问题的提示:

  • https://github.com/actions/runner/issues/1584#issuecomment-1161955604

尝试手动运行

sudo apt-get install liblttng-ust1
sudo apt-get install libcurl3

相关问题