Jenkins没有安装候选项:错误当试图安装jenkins在ubuntu系统

nqwrtyyt  于 2022-11-01  发布在  Jenkins
关注(0)|答案(4)|浏览(468)

因此,我试图在我的ubuntu和ofc上安装jenkins,我确保通过运行以下命令更新系统:apt更新

然后我尝试从jenkins网站运行以下命令来安装jenkins:

curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo tee \

/usr/share/keyrings/jenkins-keyring.asc > /dev/null

echo deb [signed-by=/usr/share/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

然后我收到一条错误消息,内容是:

Reading package lists... Done

Building dependency tree

Reading state information... Done

Package jenkins is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

E: Package jenkins has no installation candidate

我几乎不明白,这是试图识别的回购文件下载?

我在YouTube上看到一个有同样问题的人的视频,他使用了以下命令:

wget -q -O - https://pkg.jenkins.io/debian-stable/... | sudo apt-get key add

'sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/>/etc/apt/sources.list.d/jenkind.list

sudo apt-get update

sudo apt-get install jenkins

但它仍然不为我工作,你能帮我请安装Jenkins吗?

vawmfj5a

vawmfj5a1#

首先切换到root用户。命令:苏多苏
然后你可以运行你之前运行的命令来安装Jenkins。现在应该可以工作了。

ybzsozfc

ybzsozfc2#

按照下面的命令在ubuntu中安装Jenkins 18:04
命令1:

curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io.key| sudo三通
/usr/share/keyrings/jenkins-keyrings.asc〉/dev/空文件系统中的一个文件系统。

命令2:

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
https://pkg.jenkins.io/debian-stable二进制/|sudo三通
/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/etc/

命令3:

sudo apt-get更新
sudo apt-get安装Jenkins
系统状态Jenkins
访问URL http://主机名:8080

使用以下命令获取密码

更多信息/var/lib/jenkins/secrets/初始管理员密码

inn6fuwd

inn6fuwd3#

您可以在/etc/apt/sources.list.d/jenkins.list档案中加入[trusted=yes]
最初/etc/apt/sources.list.d/jenkins.list将具有、

deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian binary/

将其更新为,

deb [trusted=yes] https://pkg.jenkins.io/debian binary/

然后运行installation instructions
例如:对于Debian releases

sudo apt-get update
sudo apt-get install fontconfig openjdk-11-jre
sudo apt-get install jenkins
llew8vvj

llew8vvj4#

1.安装ca证书。
sudo apt install ca-certificates
1.然后从官方文档安装Jenkins
https://www.jenkins.io/doc/book/installing/linux/#debianubuntu

相关问题