临时准备测试下 Jenkins 的东西,搜了下 debian 如何安装,找到这个网页,特意看了下是官网
https://www.jenkins.io/zh/doc/book/installing/#debianubuntu
wget -q -O - https://pkg.jenkins.io/debian/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-get update sudo apt-get install jenkins 照着步骤做 apt update 报错,签名认证过不了,key 都过期了
切换到英文文档一看果然不一样
https://www.jenkins.io/doc/book/installing/linux/#debianubuntu
sudo wget -O /etc/apt/keyrings/jenkins-keyring.asc \ https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key echo "deb [signed-by=/etc/apt/keyrings/jenkins-keyring.asc]" \ https://pkg.jenkins.io/debian-stable binary/ | sudo tee \ /etc/apt/sources.list.d/jenkins.list > /dev/null sudo apt-get update sudo apt-get install jenkins 不知道中文文档是不是官方在维护,质量有点差
