我正在嘗試在我的 Ubuntu EC2 實體上安裝 Jenkins,我執行了以下安裝步驟但無法安裝它。
$sudo apt 更新 $sudo apt 安裝 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 < ---------(這里我得到以下錯誤)
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/發布證書驗證失敗:證書不受信任。證書鏈使用過期的證書。無法握手:證書驗證出錯。[IP: 151.101.154.133 443] Hit:3 http://ap-south-1.ec2.archive.ubuntu.com/ubuntu focus InRelease Get:4 http://ap-south-1.ec2.archive.ubuntu .com/ubuntu focus-updates InRelease [114 kB] Get:5 http://security.ubuntu.com/ubuntu focus-security InRelease [114 kB] Get:6 http://ap-south-1.ec2.archive .ubuntu.com/ubuntufocus-backports InRelease [101 kB] 閱讀包串列...完成 E:存盤庫“http://pkg.jenkins.io/debian-stable binary/Release”沒有發布檔案。N:無法安全地從此類存盤庫進行更新,因此默認情況下禁用。N:有關存盤庫創建和用戶配置詳細資訊,請參閱 apt-secure(8) 聯機幫助頁。
uj5u.com熱心網友回復:
是的,我昨天遇到了同樣的問題,我認為這是在 jenkins 2.303.2 Lts 昨天的新更新之后。
就做, apt upgrade , apt update , apt get install jenkins -y 。
它對我有用。
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/318836.html
標籤:詹金斯
