======================================
[root@euler ~]# uname -rp
3.10.0-862.14.1.0.h209.eulerosv2r7.x86_64 x86_64
不能自动安装
[root@euler ~]# yum install pacemaker
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
base | 3.6 kB 00:00:00
No package pacemaker available.
Error: Nothing to do
查看更新配置,并登录网站地址查看确实没有对应包:
[root@euler ~]# cat /etc/yum.repos.d/huaweicloud.repo
[base]
name=EulerOS-2.0SP3 base
baseurl=http://mirrors.huaweicloud.com/euler/2.3/os/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://mirrors.huaweicloud.com/euler/2.3/os/RPM-GPG-KEY-EulerOS
[root@euler ~]#
https://mirrors.huaweicloud.com/euler/2.3/os/x86_64/ 下有多个子目录,extra只有2个docker包,而updates下文件多
尝试安装vsftpd,版本号和updates目录下的相同,则不修改原有的huaweicloud.repo配置。
vsftpd-3.0.2-11.h2.x86_64.rpm 167.4 KiB 2019-Jul-22 08:00
Installing: vsftpd x86_64 3.0.2-11.h2 base 168 k
但是 https://mirrors.huaweicloud.com/euler/2.3/os/x86_64/Packages/ 有2个vsftpd文件
vsftpd-3.0.2-11.h1.x86_64.rpm 167.5 KiB 2019-Jan-25 17:25
vsftpd-3.0.2-11.h2.x86_64.rpm 167.5 KiB 2019-Jun-20 20:13
先不纠结了。
参考 http://mirrors.163.com/.help/centos.html
下载对应版本repo文件, 放入/etc/yum.repos.d/(操作前请做好相应备份)
CentOS7 http://mirrors.163.com/.help/CentOS7-Base-163.repo
[root@euler ~]# cd /etc/yum.repos.d/
[root@euler yum.repos.d]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
运行以下命令生成缓存
yum clean all
yum makecache
有报错:
http://mirrors.163.com/centos/2.0SP5/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
用Oracle Linux 7.7看了一下内核版本是4.1.12估计是单独升级过的。
网上搜索centos7.0-7.7都是内核3.10.0,而7.5(3.10.0-862)则最匹配欧拉。
登录站点http://mirrors.163.com/centos/7.5.1804/发现只有一个readme文件了,不能更新。
you should use /7/ and not /7.5.1804/ in your path.
修改 CentOS7-Base-163.repo ,删除 [base]和[updates]章节
把剩下的
baseurl=http://mirrors.163.com/centos/ r e l e a s e v e r / e x t r a s / releasever/extras/ releasever/extras/basearch/
修改为
baseurl=http://mirrors.163.com/centos/7/extras/$basearch/
重新运行 yum makecache 成功。
pacemaker安装还是报错,去检查页面
http://mirrors.163.com/centos/7/extras/x86_64/Packages/ 没有安装包
http://mirrors.163.com/centos/7/updates/x86_64/Packages/ 有安装包
保留centos的update,安装报错
Error: Package: samba-client-libs-4.10.16-15.el7_9.x86_64 (updates)
Requires: libtevent.so.0(TEVENT_0.9.37)(64bit)
保留完整的centos,去掉原有的huaweicloud.repo
[root@euler yum.repos.d]# mv huaweicloud.repo /root/
只剩下一个报错:
[root@euler yum.repos.d]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base extras updates
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
[root@euler yum.repos.d]# yum makecache
Loaded plugins: fastestmirror
Determining fastest mirrors
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
(1/10): base/x86_64/group_gz | 153 kB 00:00:00
(2/10): base/x86_64/primary_db | 6.1 MB 00:00:01
(3/10): base/x86_64/filelists_db | 7.2 MB 00:00:02
(4/10): extras/x86_64/primary_db | 242 kB 00:00:00
(5/10): extras/x86_64/filelists_db | 235 kB 00:00:00
(6/10): extras/x86_64/other_db | 143 kB 00:00:00
(7/10): base/x86_64/other_db | 2.6 MB 00:00:00
(8/10): updates/x86_64/filelists_db | 5.4 MB 00:00:01
(9/10): updates/x86_64/primary_db | 9.6 MB 00:00:02
(10/10): updates/x86_64/other_db | 699 kB 00:00:00
Metadata Cache Created
[root@euler yum.repos.d]# yum install pacemaker
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package pacemaker.x86_64 0:1.1.23-1.el7_9.1 will be installed
--> Processing Dependency: pacemaker-libs(x86-64) = 1.1.23-1.el7_9.1 for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: pacemaker-cluster-libs(x86-64) = 1.1.23-1.el7_9.1 for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: pacemaker-cli = 1.1.23-1.el7_9.1 for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: libqb > 0.17.0 for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: resource-agents for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: libquorum.so.5(COROSYNC_QUORUM_1.0)(64bit) for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: libcmap.so.4(COROSYNC_CMAP_1.0)(64bit) for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: libcfg.so.6(COROSYNC_CFG_0.82)(64bit) for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: corosync for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: libxslt.so.1()(64bit) for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: libtransitioner.so.2()(64bit) for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: libstonithd.so.2()(64bit) for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: libquorum.so.5()(64bit) for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: libqb.so.0()(64bit) for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: libpengine.so.16()(64bit) for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: libpe_status.so.16()(64bit) for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: libpe_rules.so.2()(64bit) for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: liblrmd.so.1()(64bit) for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: libcrmservice.so.3()(64bit) for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: libcrmcommon.so.3()(64bit) for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: libcrmcluster.so.4()(64bit) for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: libcpg.so.4()(64bit) for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: libcorosync_common.so.4()(64bit) for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: libcmap.so.4()(64bit) for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: libcib.so.4()(64bit) for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Processing Dependency: libcfg.so.6()(64bit) for package: pacemaker-1.1.23-1.el7_9.1.x86_64
--> Running transaction check
---> Package corosync.x86_64 0:2.4.5-7.el7_9.1 will be installed
--> Processing Dependency: libcgroup.so.1(CGROUP_0.32.1)(64bit) for package: corosync-2.4.5-7.el7_9.1.x86_64
--> Processing Dependency: libcgroup.so.1(CGROUP_0.32)(64bit) for package: corosync-2.4.5-7.el7_9.1.x86_64
--> Processing Dependency: libcgroup.so.1()(64bit) for package: corosync-2.4.5-7.el7_9.1.x86_64
---> Package corosynclib.x86_64 0:2.4.5-7.el7_9.1 will be installed
---> Package libqb.x86_64 0:1.0.1-9.el7 will be installed
---> Package libxslt.x86_64 0:1.1.28-6.el7 will be installed
---> Package pacemaker-cli.x86_64 0:1.1.23-1.el7_9.1 will be installed
--> Processing Dependency: perl-TimeDate for package: pacemaker-cli-1.1.23-1.el7_9.1.x86_64
---> Package pacemaker-cluster-libs.x86_64 0:1.1.23-1.el7_9.1 will be installed
---> Package pacemaker-libs.x86_64 0:1.1.23-1.el7_9.1 will be installed
---> Package resource-agents.x86_64 0:4.1.1-61.el7_9.11 will be installed
--> Processing Dependency: /usr/sbin/rpc.nfsd for package: resource-agents-4.1.1-61.el7_9.11.x86_64
--> Processing Dependency: /usr/sbin/rpc.mountd for package: resource-agents-4.1.1-61.el7_9.11.x86_64
--> Processing Dependency: /usr/sbin/mount.cifs for package: resource-agents-4.1.1-61.el7_9.11.x86_64
--> Processing Dependency: /sbin/rpc.statd for package: resource-agents-4.1.1-61.el7_9.11.x86_64
--> Processing Dependency: /sbin/mount.nfs4 for package: resource-agents-4.1.1-61.el7_9.11.x86_64
--> Processing Dependency: /sbin/mount.nfs for package: resource-agents-4.1.1-61.el7_9.11.x86_64
--> Running transaction check
---> Package cifs-utils.x86_64 0:6.2-10.el7 will be installed
--> Processing Dependency: libwbclient.so.0(WBCLIENT_0.9)(64bit) for package: cifs-utils-6.2-10.el7.x86_64
--> Processing Dependency: libtalloc.so.2(TALLOC_2.0.2)(64bit) for package: cifs-utils-6.2-10.el7.x86_64
--> Processing Dependency: keyutils for package: cifs-utils-6.2-10.el7.x86_64
--> Processing Dependency: libwbclient.so.0()(64bit) for package: cifs-utils-6.2-10.el7.x86_64
--> Processing Dependency: libtalloc.so.2()(64bit) for package: cifs-utils-6.2-10.el7.x86_64
---> Package libcgroup.x86_64 0:0.41-21.el7 will be installed
---> Package nfs-utils.x86_64 1:1.3.0-0.68.el7.1 will be installed
--> Processing Dependency: gssproxy >= 0.7.0-3 for package: 1:nfs-utils-1.3.0-0.68.el7.1.x86_64
--> Processing Dependency: libnfsidmap for package: 1:nfs-utils-1.3.0-0.68.el7.1.x86_64
--> Processing Dependency: libevent for package: 1:nfs-utils-1.3.0-0.68.el7.1.x86_64
--> Processing Dependency: libnfsidmap.so.0()(64bit) for package: 1:nfs-utils-1.3.0-0.68.el7.1.x86_64
--> Processing Dependency: libevent-2.0.so.5()(64bit) for package: 1:nfs-utils-1.3.0-0.68.el7.1.x86_64
---> Package perl-TimeDate.noarch 1:2.30-2.el7 will be installed
--> Running transaction check
---> Package gssproxy.x86_64 0:0.7.0-30.el7_9 will be installed
--> Processing Dependency: libini_config >= 1.3.1-31 for package: gssproxy-0.7.0-30.el7_9.x86_64
--> Processing Dependency: libverto-module-base for package: gssproxy-0.7.0-30.el7_9.x86_64
--> Processing Dependency: libref_array.so.1(REF_ARRAY_0.1.1)(64bit) for package: gssproxy-0.7.0-30.el7_9.x86_64
--> Processing Dependency: libini_config.so.3(INI_CONFIG_1.2.0)(64bit) for package: gssproxy-0.7.0-30.el7_9.x86_64
--> Processing Dependency: libini_config.so.3(INI_CONFIG_1.1.0)(64bit) for package: gssproxy-0.7.0-30.el7_9.x86_64
--> Processing Dependency: libref_array.so.1()(64bit) for package: gssproxy-0.7.0-30.el7_9.x86_64
--> Processing Dependency: libini_config.so.3()(64bit) for package: gssproxy-0.7.0-30.el7_9.x86_64
--> Processing Dependency: libcollection.so.2()(64bit) for package: gssproxy-0.7.0-30.el7_9.x86_64
--> Processing Dependency: libbasicobjects.so.0()(64bit) for package: gssproxy-0.7.0-30.el7_9.x86_64
---> Package keyutils.x86_64 0:1.5.8-3.el7 will be installed
--> Processing Dependency: keyutils-libs = 1.5.8-3.el7 for package: keyutils-1.5.8-3.el7.x86_64
---> Package libevent.x86_64 0:2.0.21-4.el7 will be installed
---> Package libnfsidmap.x86_64 0:0.25-19.el7 will be installed
---> Package libtalloc.x86_64 0:2.1.16-1.el7 will be installed
---> Package libwbclient.x86_64 0:4.10.16-15.el7_9 will be installed
--> Processing Dependency: samba-client-libs = 4.10.16-15.el7_9 for package: libwbclient-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libreplace-samba4.so(SAMBA_4.10.16)(64bit) for package: libwbclient-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libreplace-samba4.so()(64bit) for package: libwbclient-4.10.16-15.el7_9.x86_64
--> Running transaction check
---> Package keyutils-libs.i686 0:1.5.8-3.el7 will be installed
--> Processing Dependency: libdl.so.2 for package: keyutils-libs-1.5.8-3.el7.i686
--> Processing Dependency: libc.so.6(GLIBC_2.7) for package: keyutils-libs-1.5.8-3.el7.i686
---> Package libbasicobjects.x86_64 0:0.1.1-32.el7 will be installed
---> Package libcollection.x86_64 0:0.7.0-32.el7 will be installed
---> Package libini_config.x86_64 0:1.3.1-32.el7 will be installed
--> Processing Dependency: libpath_utils.so.1(PATH_UTILS_0.2.1)(64bit) for package: libini_config-1.3.1-32.el7.x86_64
--> Processing Dependency: libpath_utils.so.1()(64bit) for package: libini_config-1.3.1-32.el7.x86_64
---> Package libref_array.x86_64 0:0.1.5-32.el7 will be installed
---> Package libverto-libevent.x86_64 0:0.2.5-4.el7 will be installed
--> Processing Dependency: libverto(x86-64) = 0.2.5-4.el7 for package: libverto-libevent-0.2.5-4.el7.x86_64
---> Package samba-client-libs.x86_64 0:4.10.16-15.el7_9 will be installed
--> Processing Dependency: samba-common-libs = 4.10.16-15.el7_9 for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: samba-common = 4.10.16-15.el7_9 for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: samba-common = 4.10.16-15.el7_9 for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libtevent.so.0(TEVENT_0.9.9)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libtevent.so.0(TEVENT_0.9.37)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libtevent.so.0(TEVENT_0.9.31)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libtevent.so.0(TEVENT_0.9.30)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libtevent.so.0(TEVENT_0.9.21)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libtevent.so.0(TEVENT_0.9.20)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libtevent.so.0(TEVENT_0.9.16)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libtevent.so.0(TEVENT_0.9.14)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libtevent.so.0(TEVENT_0.9.13)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libtevent.so.0(TEVENT_0.9.12)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libtdb.so.1(TDB_1.3.17)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libtdb.so.1(TDB_1.3.11)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libtdb.so.1(TDB_1.3.0)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libtdb.so.1(TDB_1.2.5)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libtdb.so.1(TDB_1.2.2)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libtdb.so.1(TDB_1.2.1)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libldb.so.1(LDB_1.3.0)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libldb.so.1(LDB_1.1.30)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libldb.so.1(LDB_1.1.19)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libldb.so.1(LDB_1.1.1)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libldb.so.1(LDB_0.9.23)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libldb.so.1(LDB_0.9.15)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libldb.so.1(LDB_0.9.10)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libaesni-intel-samba4.so(SAMBA_4.10.16)(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libtevent.so.0()(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libtdb.so.1()(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libldb.so.1()(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libcups.so.2()(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libcluster-samba4.so()(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libavahi-common.so.3()(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libavahi-client.so.3()(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Processing Dependency: libaesni-intel-samba4.so()(64bit) for package: samba-client-libs-4.10.16-15.el7_9.x86_64
--> Running transaction check
---> Package avahi-libs.x86_64 0:0.6.31-20.el7 will be installed
---> Package cups-libs.x86_64 1:1.6.3-51.el7 will be installed
---> Package glibc.x86_64 0:2.17-222.h16.eulerosv2r7 will be updated
--> Processing Dependency: glibc = 2.17-222.h16.eulerosv2r7 for package: glibc-common-2.17-222.h16.eulerosv2r7.x86_64
---> Package glibc.i686 0:2.17-324.el7_9 will be installed
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.17-324.el7_9.i686
--> Processing Dependency: libfreebl3.so for package: glibc-2.17-324.el7_9.i686
---> Package glibc.x86_64 0:2.17-324.el7_9 will be an update
---> Package libldb.x86_64 0:1.5.4-2.el7 will be installed
---> Package libpath_utils.x86_64 0:0.2.1-32.el7 will be installed
---> Package libtdb.x86_64 0:1.3.18-1.el7 will be installed
---> Package libtevent.x86_64 0:0.9.39-1.el7 will be installed
---> Package libverto-libevent.x86_64 0:0.2.5-4.el7 will be installed
--> Processing Dependency: libverto(x86-64) = 0.2.5-4.el7 for package: libverto-libevent-0.2.5-4.el7.x86_64
---> Package samba-common.noarch 0:4.10.16-15.el7_9 will be installed
---> Package samba-common-libs.x86_64 0:4.10.16-15.el7_9 will be installed
--> Running transaction check
---> Package glibc-common.x86_64 0:2.17-222.h16.eulerosv2r7 will be updated
---> Package glibc-common.x86_64 0:2.17-324.el7_9 will be an update
---> Package libverto-libevent.x86_64 0:0.2.5-4.el7 will be installed
--> Processing Dependency: libverto(x86-64) = 0.2.5-4.el7 for package: libverto-libevent-0.2.5-4.el7.x86_64
---> Package nss-softokn-freebl.x86_64 0:3.36.0-5.h3.eulerosv2r7 will be updated
---> Package nss-softokn-freebl.i686 0:3.53.1-6.el7_9 will be installed
--> Processing Dependency: nss-util >= 3.53.1-1 for package: nss-softokn-freebl-3.53.1-6.el7_9.i686
--> Processing Dependency: nspr >= 4.25.0 for package: nss-softokn-freebl-3.53.1-6.el7_9.i686
---> Package nss-softokn-freebl.x86_64 0:3.53.1-6.el7_9 will be an update
--> Running transaction check
---> Package libverto-libevent.x86_64 0:0.2.5-4.el7 will be installed
--> Processing Dependency: libverto(x86-64) = 0.2.5-4.el7 for package: libverto-libevent-0.2.5-4.el7.x86_64
---> Package nspr.x86_64 0:4.19.0-1.eulerosv2r7 will be updated
---> Package nspr.x86_64 0:4.25.0-2.el7_9 will be an update
---> Package nss-util.x86_64 0:3.36.0-1.eulerosv2r7 will be updated
---> Package nss-util.x86_64 0:3.53.1-1.el7_9 will be an update
--> Finished Dependency Resolution
Error: Package: libverto-libevent-0.2.5-4.el7.x86_64 (base)
Requires: libverto(x86-64) = 0.2.5-4.el7
Installed: libverto-0.2.5-4.eulerosv2r7.x86_64 (@anaconda/rawhide)
libverto(x86-64) = 0.2.5-4.eulerosv2r7
Available: libverto-0.2.5-4.el7.x86_64 (base)
libverto(x86-64) = 0.2.5-4.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@euler yum.repos.d]#
这个库还被其他包在用
[root@euler yum.repos.d]# rpm -evh libverto
error: Failed dependencies:
libverto.so.1()(64bit) is needed by (installed) krb5-libs-1.15.1-34.h2.eulerosv2r7.x86_64
rpm -ivh http://…/.rpm 直接安装rpm包也会报依赖错误。
由于很多库文件会被替换,可能造成系统不稳定。
看来只能用源码安装了,恢复repo文件。
[root@euler yum.repos.d]# rm CentOS7-Base-163.repo
rm: remove regular file ‘CentOS7-Base-163.repo’? y
[root@euler yum.repos.d]# mv /root/huaweicloud.repo .
[root@euler yum.repos.d]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base
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
[root@euler yum.repos.d]#
[root@euler yum.repos.d]#
[root@euler yum.repos.d]# yum makecache
Loaded plugins: fastestmirror
Determining fastest mirrors
base | 3.6 kB 00:00:00
(1/4): base/group_gz | 15 kB 00:00:00
(2/4): base/primary_db | 11 MB 00:00:08
(3/4): base/filelists_db | 9.5 MB 00:00:09
(4/4): base/other_db | 3.4 MB 00:00:02
Metadata Cache Created
[root@euler yum.repos.d]#
安装gcc也报错:
[root@euler ~]# yum install gcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.8.5-4.h12 will be installed
--> Processing Dependency: libgomp = 4.8.5-4.h12 for package: gcc-4.8.5-4.h12.x86_64
--> Processing Dependency: cpp = 4.8.5-4.h12 for package: gcc-4.8.5-4.h12.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-4.h12.x86_64
--> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.5-4.h12.x86_64
--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.5-4.h12.x86_64
--> Running transaction check
---> Package cpp.x86_64 0:4.8.5-4.h12 will be installed
---> Package glibc-devel.x86_64 0:2.17-196.h33 will be installed
--> Processing Dependency: glibc-headers = 2.17-196.h33 for package: glibc-devel-2.17-196.h33.x86_64
--> Processing Dependency: glibc = 2.17-196.h33 for package: glibc-devel-2.17-196.h33.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-196.h33.x86_64
---> Package libgomp.i686 0:4.8.5-4.h12 will be installed
---> Package libmpc.x86_64 0:1.0.1-3 will be installed
---> Package mpfr.x86_64 0:3.1.1-4.h1 will be installed
--> Running transaction check
---> Package glibc.i686 0:2.17-196.h33 will be installed
--> Processing Dependency: glibc-common = 2.17-196.h33 for package: glibc-2.17-196.h33.i686
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.17-196.h33.i686
--> Processing Dependency: libfreebl3.so for package: glibc-2.17-196.h33.i686
---> Package glibc-headers.x86_64 0:2.17-196.h33 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-196.h33.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-196.h33.x86_64
--> Running transaction check
---> Package glibc.i686 0:2.17-196.h33 will be installed
--> Processing Dependency: glibc-common = 2.17-196.h33 for package: glibc-2.17-196.h33.i686
---> Package kernel-headers.x86_64 0:3.10.0-514.44.5.10.h254 will be installed
---> Package nss-softokn-freebl.x86_64 0:3.36.0-5.h3.eulerosv2r7 will be updated
---> Package nss-softokn-freebl.i686 0:3.36.0-5.h4 will be installed
---> Package nss-softokn-freebl.x86_64 0:3.36.0-5.h4 will be an update
--> Finished Dependency Resolution
Error: Package: glibc-2.17-196.h33.i686 (base)
Requires: glibc-common = 2.17-196.h33
Installed: glibc-common-2.17-222.h16.eulerosv2r7.x86_64 (@anaconda/rawhide)
glibc-common = 2.17-222.h16.eulerosv2r7
Available: glibc-common-2.17-196.h20.x86_64 (base)
glibc-common = 2.17-196.h20
Available: glibc-common-2.17-196.h22.x86_64 (base)
glibc-common = 2.17-196.h22
Available: glibc-common-2.17-196.h24.x86_64 (base)
glibc-common = 2.17-196.h24
Available: glibc-common-2.17-196.h25.x86_64 (base)
glibc-common = 2.17-196.h25
Available: glibc-common-2.17-196.h28.x86_64 (base)
glibc-common = 2.17-196.h28
Available: glibc-common-2.17-196.h33.x86_64 (base)
glibc-common = 2.17-196.h33
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@euler ~]# rpm -q glibc
glibc-2.17-222.h16.eulerosv2r7.x86_64
[root@euler ~]#
尝试修改
[root@euler yum.repos.d]# cat huaweicloud.repo
[base]
name=EulerOS-2.0SP3 base
baseurl=http://mirrors.huaweicloud.com/euler/2.3/os/x86_64/Packages
enabled=1
gpgcheck=1
gpgkey=http://mirrors.huaweicloud.com/euler/2.3/os/RPM-GPG-KEY-EulerOS
[updates]
name=EulerOS-2.0SP3 update
baseurl=http://mirrors.huaweicloud.com/euler/2.3/os/x86_64/updates
enabled=1
gpgcheck=1
gpgkey=http://mirrors.huaweicloud.com/euler/2.3/os/RPM-GPG-KEY-EulerOS
[root@euler yum.repos.d]#
报错:
[root@euler yum.repos.d]# yum makecache
Loaded plugins: fastestmirror
Determining fastest mirrors
http://mirrors.huaweicloud.com/euler/2.3/os/x86_64/Packages/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the knowledge base article about Error 404
分析: baseurl配置的路径,要求网站在该url下要存在一个repodata目录。
根据版本
[root@euler yum.repos.d]# cat /etc/os-release
NAME="EulerOS"
VERSION="2.0 (SP5)"
ID="euleros"
ID_LIKE="rhel fedora centos"
VERSION_ID="2.0"
PRETTY_NAME="EulerOS 2.0 (SP5)"
ANSI_COLOR="0;31"
恢复配置,并修改2.3下载地址为2.5
[root@euler yum.repos.d]# cat huaweicloud.repo
[base]
name=EulerOS-2.0SP5 base
baseurl=http://mirrors.huaweicloud.com/euler/2.5/os/x86_64
enabled=1
gpgcheck=1
gpgkey=http://mirrors.huaweicloud.com/euler/2.5/os/RPM-GPG-KEY-EulerOS
重新安装gcc,提示正常,但仍然有部分库文件会更新
[root@euler yum.repos.d]# yum install gcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.8.5-28.1.h8.eulerosv2r7 will be installed
--> Processing Dependency: libgomp = 4.8.5-28.1.h8.eulerosv2r7 for package: gcc-4.8.5-28.1.h8.eulerosv2r7.x86_64
--> Processing Dependency: cpp = 4.8.5-28.1.h8.eulerosv2r7 for package: gcc-4.8.5-28.1.h8.eulerosv2r7.x86_64
--> Processing Dependency: libgcc >= 4.8.5-28.1.h8.eulerosv2r7 for package: gcc-4.8.5-28.1.h8.eulerosv2r7.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-28.1.h8.eulerosv2r7.x86_64
--> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.5-28.1.h8.eulerosv2r7.x86_64
--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.5-28.1.h8.eulerosv2r7.x86_64
--> Running transaction check
---> Package cpp.x86_64 0:4.8.5-28.1.h8.eulerosv2r7 will be installed
---> Package glibc-devel.x86_64 0:2.17-222.h43.eulerosv2r7 will be installed
--> Processing Dependency: glibc-headers = 2.17-222.h43.eulerosv2r7 for package: glibc-devel-2.17-222.h43.eulerosv2r7.x86_64
--> Processing Dependency: glibc = 2.17-222.h43.eulerosv2r7 for package: glibc-devel-2.17-222.h43.eulerosv2r7.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-222.h43.eulerosv2r7.x86_64
---> Package libgcc.x86_64 0:4.8.5-28.1.h6.eulerosv2r7 will be updated
---> Package libgcc.x86_64 0:4.8.5-28.1.h8.eulerosv2r7 will be an update
---> Package libgomp.x86_64 0:4.8.5-28.1.h6.eulerosv2r7 will be updated
---> Package libgomp.x86_64 0:4.8.5-28.1.h8.eulerosv2r7 will be an update
---> Package libmpc.x86_64 0:1.0.1-3.eulerosv2r7 will be installed
---> Package mpfr.x86_64 0:3.1.1-4.h2.eulerosv2r7 will be installed
--> Running transaction check
---> Package glibc.x86_64 0:2.17-222.h16.eulerosv2r7 will be updated
--> Processing Dependency: glibc = 2.17-222.h16.eulerosv2r7 for package: glibc-common-2.17-222.h16.eulerosv2r7.x86_64
---> Package glibc.x86_64 0:2.17-222.h43.eulerosv2r7 will be an update
---> Package glibc-headers.x86_64 0:2.17-222.h43.eulerosv2r7 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-222.h43.eulerosv2r7.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-222.h43.eulerosv2r7.x86_64
--> Running transaction check
---> Package glibc-common.x86_64 0:2.17-222.h16.eulerosv2r7 will be updated
---> Package glibc-common.x86_64 0:2.17-222.h43.eulerosv2r7 will be an update
---> Package kernel-headers.x86_64 0:3.10.0-862.14.1.5.h591.eulerosv2r7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================================================
Package Arch Version Repository Size
=======================================================================================================================
Installing:
gcc x86_64 4.8.5-28.1.h8.eulerosv2r7 base 15 M
Installing for dependencies:
cpp x86_64 4.8.5-28.1.h8.eulerosv2r7 base 5.0 M
glibc-devel x86_64 2.17-222.h43.eulerosv2r7 base 1.1 M
glibc-headers x86_64 2.17-222.h43.eulerosv2r7 base 687 k
kernel-headers x86_64 3.10.0-862.14.1.5.h591.eulerosv2r7 base 7.2 M
libmpc x86_64 1.0.1-3.eulerosv2r7 base 51 k
mpfr x86_64 3.1.1-4.h2.eulerosv2r7 base 204 k
Updating for dependencies:
glibc x86_64 2.17-222.h43.eulerosv2r7 base 3.5 M
glibc-common x86_64 2.17-222.h43.eulerosv2r7 base 12 M
libgcc x86_64 4.8.5-28.1.h8.eulerosv2r7 base 102 k
libgomp x86_64 4.8.5-28.1.h8.eulerosv2r7 base 158 k
Transaction Summary
=======================================================================================================================
Install 1 Package (+6 Dependent packages)
Upgrade ( 4 Dependent packages)
Total download size: 45 M
Is this ok [y/d/N]:
这里选择n,暂未安装
如果直接使用 yum update 则更新所有的软件包:
Transaction Summary
=======================================================================================================================
Install 1 Package (+20 Dependent packages)
Upgrade 255 Packages
Total download size: 287 M
Is this ok [y/d/N]:
包括内核
Installing:
kernel x86_64 3.10.0-862.14.1.5.h591.eulerosv2r7 base 44 M
Updating:
NetworkManager x86_64 1:1.10.2-16.h5.eulerosv2r7 base 1.8 M
从中可以看出内核是直接安装替换的,不是更新
这里选择y,先更新所有包为最新,reboot让内核生效
[root@euler ~]# uname -rp
3.10.0-862.14.1.5.h591.eulerosv2r7.x86_64 x86_64
安装好gcc等工具
yum install gcc make git
补:最好提前安装如下包:
yum install autoconf automake
参考官网方法:https://wiki.clusterlabs.org/wiki/SourceInstall
1、First Steps
export PREFIX=/usr
getent group haclient >/dev/null || groupadd -r haclient
getent passwd hacluster >/dev/null || useradd -r -g haclient -d /var/lib/heartbeat/cores/hacluster -s /sbin/nologin -c "cluster user" hacluster
2、LibQB
[root@euler ~]# chmod 777 /usr/local/src
[root@euler ~]# su - xy
Last login: Wed Aug 18 14:11:41 CST 2021 on pts/0
[xy@euler ~]$ cd /usr/local/src
[xy@euler src]$ git clone git://github.com/ClusterLabs/libqb.git
Cloning into 'libqb'...
remote: Enumerating objects: 11099, done.
remote: Counting objects: 100% (25/25), done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 11099 (delta 8), reused 6 (delta 3), pack-reused 11074
Receiving objects: 100% (11099/11099), 7.37 MiB | 883.00 KiB/s, done.
Resolving deltas: 100% (7865/7865), done.
[xy@euler src]$ cd libqb
[xy@euler libqb]$ export PREFIX=/usr
[xy@euler libqb]$ ./autogen.sh && ./configure --prefix=$PREFIX
./autogen.sh: line 10: autoreconf: command not found
搜索autoreconf,切换root安装autoconf
[root@euler ~]# yum install autoconf
新报错
[xy@euler libqb]$ ./autogen.sh && ./configure --prefix=$PREFIX
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4 --output=aclocal.m4t
Can't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory
[xy@euler libqb]$
搜索aclocal,切换root安装automake
[root@euler ~]# yum install automake
新报错
[xy@euler libqb]$ export PREFIX=/usr
[xy@euler libqb]$ ./autogen.sh && ./configure --prefix=$PREFIX
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
configure.ac:44: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
[xy@euler libqb]$
参考案例 LIBTOOL is undefined 问题的解决方法
[xy@euler libqb]$ aclocal --print-ac-dir
/usr/share/aclocal
[xy@euler libqb]$ ls /usr/share/aclocal
pkg.m4
切换root安装libtool
[root@euler ~]# rpm -q libtool
[xy@euler libqb]$ ls /usr/share/aclocal
argz.m4 libtool.m4 ltdl.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4 pkg.m4
新报错
[xy@euler libqb]$ ./autogen.sh && ./configure --prefix=$PREFIX
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: copying file `build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:84: installing 'build-aux/compile'
configure.ac:38: installing 'build-aux/config.guess'
configure.ac:38: installing 'build-aux/config.sub'
configure.ac:22: installing 'build-aux/install-sh'
configure.ac:22: installing 'build-aux/missing'
doxygen2man/Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
autoreconf: Leaving directory `.'
: About to consume a checked out tree (dedicated for maintenance!)...
: Now run ./configure && make
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/usr/local/src/libqb':
configure: error: C compiler cannot create executables
See `config.log' for more details
[xy@euler libqb]$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-Huawei-linux/4.8.5/lto-wrapper
Target: x86_64-Huawei-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/home/abuild/rpmbuild/BUILD/gcc-4.8.5-20150702/obj-x86_64-Huawei-linux/isl-install --with-cloog=/home/abuild/rpmbuild/BUILD/gcc-4.8.5-20150702/obj-x86_64-Huawei-linux/cloog-install --enable-gnu-indirect-function --with-stage1-ldflags=' -Wl,-z,relro,-z,now -pie' --with-boot-ldflags=' -Wl,-z,relro,-z,now -pie' --with-tune=generic --with-arch_32=x86-64 --build=x86_64-Huawei-linux
Thread model: posix
gcc version 4.8.5 20150623 (EulerOS 4.8.5-28) (GCC)
[xy@euler libqb]$
关键日志报错:
checking whether the C compiler works… no
configure: error: C compiler cannot create executables
根据提示查看config.log
46 configure:3108: checking for C compiler version
47 configure:3117: gcc --version >&5
48 gcc (GCC) 4.8.5 20150623 (EulerOS 4.8.5-28)
49 Copyright (C) 2015 Free Software Foundation, Inc.
50 This is free software; see the source for copying conditions. There is NO
51 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
52
53 configure:3128: $? = 0
54 configure:3117: gcc -v >&5
55 Using built-in specs.
56 COLLECT_GCC=gcc
57 COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-Huawei-linux/4.8.5/lto-wrapper
58 Target: x86_64-Huawei-linux
59 Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --e nable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linke r-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/home/abuild/rpmbuild/BUILD/gcc-4.8 .5-20150702/obj-x86_64-Huawei-linux/isl-install --with-cloog=/home/abuild/rpmbuild/BUILD/gcc-4.8.5-20150702/obj-x86_64-Huawei-linux/cloog-install --enable-gnu-indirect-function --wit h-stage1-ldflags=' -Wl,-z,relro,-z,now -pie' --with-boot-ldflags=' -Wl,-z,relro,-z,now -pie' --with-tune=generic --with-arch_32=x86-64 --build=x86_64-Huawei-linux
60 Thread model: posix
61 gcc version 4.8.5 20150623 (EulerOS 4.8.5-28) (GCC)
62 configure:3128: $? = 0
63 configure:3117: gcc -V >&5
64 gcc: error: unrecognized command line option '-V'
65 gcc: fatal error: no input files
66 compilation terminated.
67 configure:3128: $? = 4
68 configure:3117: gcc -qversion >&5
69 gcc: error: unrecognized command line option '-qversion'
70 gcc: fatal error: no input files
71 compilation terminated.
72 configure:3128: $? = 4
73 configure:3148: checking whether the C compiler works
74 configure:3170: gcc conftest.c >&5
75 collect2: fatal error: cannot find 'ld'
76 compilation terminated.
77 configure:3174: $? = 1
78 configure:3212: result: no
79 configure: failed program was:
当前版本4.8.5不满足5的要求
删了
[xy@euler src]$ pwd
/usr/local/src
[xy@euler src]$ rm -rf libqb/
[xy@euler src]$
重新找一个低一点的版本—版本配套有点难搞,官网没有写gcc版本,先跳过
CoroSync
git clone git://github.com/corosync/corosync.git
cd corosync
export PREFIX=/usr
./autogen.sh
./configure --prefix=$PREFIX
一样的报错,gcc版本太低。
[root@euler ~]# yum install https://mirrors.huaweicloud.com/centos/7/extras/x86_64/Packages/epel-release-7-11.noarch.rpm
安装epel后,还是没法安装pacemaker。
[root@euler ~]# yum install pacemaker
[root@euler yum.repos.d]# yum remove epel-release
想升级sp9
[root@euler yum.repos.d]# cat huaweicloud.repo
[base]
name=EulerOS-2.0SP5 base
baseurl=http://mirrors.huaweicloud.com/euler/2.5/os/x86_64
enabled=1
gpgcheck=1
gpgkey=http://mirrors.huaweicloud.com/euler/2.5/os/RPM-GPG-KEY-EulerOS
[updates]
name=EulerOS-2.0SP9 updates
baseurl=http://mirrors.huaweicloud.com/euler/2.9/os/x86_64
enabled=1
gpgcheck=1
gpgkey=http://mirrors.huaweicloud.com/euler/2.9/os/RPM-GPG-KEY-EulerOS
执行
yum clean all
yum makecache
正常
yum update 很多报错
yum 没有安装源
源码gcc版本过低
莫法安装。