CentOS7.2安装ceph时需要liblttng

CentOS7.2安装ceph时需要liblttng

当我在 CentOS 7.2 中安装ceph和时:ceph-radosgw

yum -y install ceph ceph-radosgw 

我收到以下错误:

......
--> Finished Dependency Resolution
Error: Package: 1:ceph-base-10.2.9-0.el7.x86_64 (Ceph)
           Requires: liblttng-ust.so.0()(64bit)
Error: Package: 1:ceph-radosgw-10.2.9-0.el7.x86_64 (Ceph)
           Requires: libfcgi.so.0()(64bit)
Error: Package: 1:ceph-mon-10.2.9-0.el7.x86_64 (Ceph)
           Requires: libleveldb.so.1()(64bit)
Error: Package: 1:ceph-common-10.2.9-0.el7.x86_64 (Ceph)
           Requires: libbabeltrace-ctf.so.1()(64bit)
Error: Package: 1:librados2-10.2.9-0.el7.x86_64 (Ceph)
           Requires: liblttng-ust.so.0()(64bit)
Error: Package: 1:ceph-osd-10.2.9-0.el7.x86_64 (Ceph)
           Requires: libleveldb.so.1()(64bit)
Error: Package: 1:librgw2-10.2.9-0.el7.x86_64 (Ceph)
           Requires: libfcgi.so.0()(64bit)
Error: Package: 1:ceph-common-10.2.9-0.el7.x86_64 (Ceph)
           Requires: libbabeltrace.so.1()(64bit)
Error: Package: 1:librbd1-10.2.9-0.el7.x86_64 (Ceph)
           Requires: liblttng-ust.so.0()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

答案1

CentOS Linux 版本 7.5.1804(核心)和 Ceph Mimic 13.2.2 的示例。所有信息均出自头孢文档

[root@server1 ]# cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core) 

[root@server1 ]# ceph --version
ceph version 13.2.2 (02899bfda814146b021136e9d8e80eba494e1126) mimic (stable)
  1. 添加键:

sudo rpm --import 'https://download.ceph.com/keys/release.asc'

  1. 创建一个文件,例如:

/etc/yum.repos.d/ceph.repro

包含以下内容:

[ceph]
name=Ceph packages for $basearch
baseurl=https://download.ceph.com/rpm-mimic/el7/$basearch
enabled=1
priority=2
gpgcheck=1
gpgkey=https://download.ceph.com/keys/release.asc

[ceph-noarch]
name=Ceph noarch packages
baseurl=https://download.ceph.com/rpm-mimic/el7/noarch
enabled=1
priority=2
gpgcheck=1
gpgkey=https://download.ceph.com/keys/release.asc

[ceph-source]
name=Ceph source packages
baseurl=https://download.ceph.com/rpm-mimic/el7/SRPMS
enabled=0
priority=2
gpgcheck=1
gpgkey=https://download.ceph.com/keys/release.asc
  1. 下载附加包

须藤百胜安装-y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

  1. 升级 Ceph

su -c 'rpm -Uvh https://download.ceph.com/rpm-mimic/el7/noarch/ceph-release-1-1.el7.noarch.rpm'

  1. 更新

sudo yum update

  1. 安装你的 Ceph

yum -y install ceph ceph-radosgw

答案2

尝试这个:

sudo yum install -y yum-utils && sudo yum-config-manager --add-repo https://dl.fedoraproject.org/pub/epel/7/x86_64/ && sudo yum install --nogpgcheck -y epel-release && sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 && sudo rm /etc/yum.repos.d/dl.fedoraproject.org*

也许你用这个:http://bbs.ceph.org.cn/question/584

答案3

如果是 Ubuntu 18.04,请尝试添加universe发行版:

sudo add-apt-repository universe

来源:https://github.com/dotnet/cli/issues/9876#issuecomment-414854527

相关内容