安装halyard失败

前提:已配置好apt代理,参考链接:配置apt代理

在执行halyard下载脚本的时候提示下面的错误,

a@a:~/spinnaker$ sudo bash InstallHalyard.sh 
Halyard version will be  
Halyard will be downloaded from the spinnaker-community repository 
Halconfig will be stored at /home/spinnaker/.hal/config
Uninstall script is located at /usr/local/bin/uninstall-halyard.sh
curl: (28) Failed to connect to us-apt.pkg.dev port 443 after 135103 ms: Connection timed out
gpg: no valid OpenPGP data found.
Hit:1 https://download.docker.com/linux/ubuntu jammy InRelease                                                                                                                   
Get:3 https://us-apt.pkg.dev/projects/spinnaker-community apt InRelease [937 B]                                                                                                  
Err:3 https://us-apt.pkg.dev/projects/spinnaker-community apt InRelease                          
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C0BA5CE6DC6315A3
Hit:4 http://mirrors.aliyun.com/ubuntu jammy InRelease                     
Hit:2 https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/v1.30/deb  InRelease
Hit:5 http://mirrors.aliyun.com/ubuntu jammy-updates InRelease
Hit:6 http://mirrors.aliyun.com/ubuntu jammy-backports InRelease
Hit:7 http://mirrors.aliyun.com/ubuntu jammy-security InRelease
Reading package lists... Done
W: GPG error: https://us-apt.pkg.dev/projects/spinnaker-community apt InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C0BA5CE6DC6315A3
E: The repository 'https://us-apt.pkg.dev/projects/spinnaker-community apt InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

解决方法:手动获取gpg文件,,将文件上传至下载halyard的机器中,执行下面命令:

#导入gpg文件
$ sudo gpg --dearmor -o /usr/share/keyrings/spinnaker-archive-keyring.gpg repo-signing-key.gpg

#更新apt源配置
$ sudo gedit /etc/apt/sources.list.d/spinnaker-community.list 

#文件内容
deb [signed-by=/usr/share/keyrings/spinnaker-archive-keyring.gpg arch=all] https://us-apt.pkg.dev/projects/spinnaker-community apt main

#下载halyard
$ sudo apt update
$ sudo apt install spinnaker-halyard

如果使用hal的时候遇到了java有关的问题,无脑安装jdk17

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值