1 continuous-integration failed-installation jenkins devops
[root@###~]# yum install jenkins 加载的插件:fastestmirror、product-id、search-disabled-repos、subscription-manager
该系统未向授权服务器注册。您可以使用订阅管理器进行注册。
从缓存的主机文件加载镜像速度
配置的存储库之一失败(Jenkins-stable),并且 yum 没有足够的缓存数据来继续。此时 yum 能做的唯一安全的事情就是失败。有几种方法可以“修复”这个问题:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=jenkins ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable jenkins
or
subscription-manager repos --disable=jenkins
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=jenkins.skip_if_unavailable=true
Run Code Online (Sandbox Code Playgroud)
失败:来自 jenkins 的 repodata/repomd.xml:[Errno 256] 没有更多镜像可供尝试。 http://pkg.jenkins.io/redhat-stable/repodata/repomd.xml:[Errno 14] HTTPS 错误 301 - 永久移动
请帮帮我
看起来jenkins.io 目前分发的jenkins.repo文件被配置为使用http
,而不是https
。(来吧,各位,认真的吗?现在是 2021 年。)幸运的是,您可以轻松编辑/etc/yum.repos.d/jenkins.repo
以将其更改为https
. 不幸的是,问题还不止于此,至少在 RHEL 7.9 上,根颁发者 (Let's Encrypt R3) 默认情况下不在受信任的证书存储中。您可以使用https://www.ssllabs.com/ssltest/analyze.html?d=pkg.jenkins.io等服务来验证 jenkins.io 证书实际上是否有效。证书和链实际上是有效的,但颁发者是 R3,它受到其他所有人(Mozilla、Apple、Android、Java、Microsoft)的信任,但不受 yum 信任。要解决此问题(2021 年 9 月 24 日之后),您需要更新ca-certificates
yum upgrade ca-certificates
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
8628 次 |
最近记录: |