RUNNERGO 安装踩坑
RUNNERGO 安装踩坑
1、打算装虚拟机上,先打通了外网网络,这里省略500字,可自行百度
2、前两步都执行成功,Tar文件下载,解压
3、执行安装脚本的时候报错
[root@localhost ~]# sh install.sh
1.Ubuntu/Debian
2.Centos
请选择要安装的操作系统 (1/2): 2
+ [[ ! -d /etc/yum.repos.d/yum-docker.repo ]]
+ cat
+ yum clean all
已加载插件:fastestmirror, langpacks
正在清理软件源: base-source yum-docker
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
Cleaning up list of fastest mirrors
+ yum makecache
已加载插件:fastestmirror, langpacks
Determining fastest mirrors
file:///isotmp/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /isotmp/repodata/repomd.xml"
正在尝试其它镜像。
One of the configured repositories failed (CentOS-7 - Base Sources),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
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=base-source ...
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 base-source
or
subscription-manager repos --disable=base-source
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=base-source.skip_if_unavailable=true
failure: repodata/repomd.xml from base-source: [Errno 256] No more mirrors to try.
file:///isotmp/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /isotmp/repodata/repomd.xml"
4、这步解决后,执行 install.sh 仍报错,有一些依赖没解决
–> 解决依赖关系完成
错误:软件包:2:container-selinux-2.119.2-1.911c772.el7_8.noarch (yum-docker)
需要:selinux-policy-targeted >= 3.13.1-216.el7
错误:软件包:2:container-selinux-2.119.2-1.911c772.el7_8.noarch (yum-docker)
需要:selinux-policy >= 3.13.1-216.el7
错误:软件包:2:container-selinux-2.119.2-1.911c772.el7_8.noarch (yum-docker)
需要:selinux-policy-base >= 3.13.1-216.el7
您可以尝试添加 --skip-broken 选项来解决该问题
您可以尝试执行:rpm -Va --nofiles --nodigest
5、执行sh install.sh 等待10~15min
![安装成功的提示](https://img-blog.csdnimg.cn/direct/6f768f0d8cce430b8c48a97292614abb.png)6、成功访问
![在这里插入图片描述](https://img-blog.csdnimg.cn/direct/beb126d5645946618cf00a3612cd2784.png)
#解决方法!!
---
1、打开install 脚本
2、观察脚本执行yum 命令
3、检查节点/etc/yum.repos.d/centos.repo 文件存在本地镜像源文件 ,干掉,然后脚本执行不报错
4、第四步的报错按照文档 https://www.cnblogs.com/lutt123/p/17222530.html解决,直接把yum-docker.repo cp 成备份文件,用阿里云的源。