我正在尝试在我的Ubuntu EC2实例上安装Jenkins,我执行了以下安装步骤,但无法成功安装。
$sudo apt update
$sudo apt install openjdk-8-jdk
$wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
$sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
$sudo apt update <--------- (Here I am getting below error)
root@ip-172-31-44-187:~# sudo apt update
Ign:1 https://pkg.jenkins.io/debian-stable binary/ InRelease Err:2 https://pkg.jenkins.io/debian-stable binary/ Release 证书验证失败:证书不受信任。证书链使用过期证书。无法握手:证书验证中出错。[IP: 151.101.154.133 443] Hit:3 http://ap-south-1.ec2.archive.ubuntu.com/ubuntu focal InRelease Get:4 http://ap-south-1.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB] Get:5 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB] Get:6 http://ap-south-1.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB] 正在读取软件包列表... 完成 E: 软件源'http://pkg.jenkins.io/debian-stable binary/ Release'没有Release文件。 N: 没有安全的方式可以从这样的仓库进行更新,默认情况下禁用更新。 N: 请参阅 apt-secure(8) 手册以获取仓库创建和用户配置详细信息。