前提:已配置好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