Bodhi
2021 年6 月 11 日 08:25
#1
【产品名称】OceanBase
【产品版本】community-stable-el3
【问题描述】阿里云安装报错
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://mirrors.aliyun.com/oceanbase/OceanBase.repo
sudo yum install -y ob-deploy
Error:
OceanBase-community-stable-el3 16 kB/s | 2.3 kB 00:00
Errors during downloading metadata for repository ‘oceanbase.community.stable’:
Error: Failed to download metadata for repo ‘oceanbase.community.stable’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were trie d
我们当前的yum repo仅支持el7和el8,参考repo文件如下:
# OceanBase.repo
[oceanbase.community.stable]
name =OceanBase-community-stable-el$releasever
baseurl =http://mirrors.aliyun.com/oceanbase/community/stable/el/$releasever /$basearch /
enabled =1
gpgcheck =1
gpgkey =http://mirrors.aliyun.com/oceanbase/RPM-GPG-KEY-OceanBase
[oceanbase.development-kit]
name =OceanBase-development-kit-el$releasever
baseurl =http://mirrors.aliyun.com/oceanbase/development-kit/el/$releasever /$basearch /
enabled =1
gpgcheck =1
gpgkey =http://mirrors.aliyun.com/oceanbase/RPM-GPG-KEY-OceanBase
你可以检查一下本机yum输出的$releasever变量值:
RHEL/CentOS 8:
/usr/libexec/platform-python -c 'import dnf, json; db = dnf.dnf.Base(); print (json.dumps(db .conf .substitutions, indent=2))'
RHEL/CentOS 6 and 7
python -c 'import yum, json; yb = yum.YumBase(); print json.dumps(yb.conf.yumvar, indent=2)'
RHEL/CentOS 4 and 5
# if you install python-simplejson
python -c 'import yum, simplejson as json; yb = yum.YumBase(); print json.dumps(yb.conf.yumvar, indent=2)'
# otherwise
python -c 'import yum, pprint; yb = yum.YumBase(); pprint.pprint(yb.conf.yumvar, width=1)'
longda
2021 年6 月 14 日 10:28
#3
如果yum 不能按照, 你采用 离线安装的方式
https://open.oceanbase.com/quickStart 第2章节
也可以, 自己手动下载所有的rpm 包
```cd ~/rpm
obd mirror clone *.rpm
```