Centos6 upgrade glibc-2.17, solve Requires: libc.so.6(GLIBC_2.17)(64bit) error solution

Install mysql 8.0.33 series on Centos6 and the error message is as follows:

[root@rhel64 Downloads]# rpm -ivh mysql-community-common-8.0.33-1.el6.x86_64.rpm \
> mysql-community-client-plugins-8.0.33-1.el6.x86_64.rpm \
> mysql-community-client-8.0.33-1.el6.x86_64.rpm \
> mysql-community-libs-8.0.33-1.el6.x86_64.rpm \
> mysql-community-icu-data-files-8.0.33-1.el6.x86_64.rpm \
> mysql-community-server-8.0.33-1.el6.x86_64.rpm 
warning: mysql-community-common-8.0.33-1.el6.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY
error: Failed dependencies:
	libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) is needed by mysql-community-client-plugins-8.0.33-1.el6.x86_64
	libcrypto.so.10(libcrypto.so.10)(64bit) is needed by mysql-community-client-plugins-8.0.33-1.el6.x86_64
	libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) is needed by mysql-community-client-8.0.33-1.el6.x86_64
	libcrypto.so.10(libcrypto.so.10)(64bit) is needed by mysql-community-client-8.0.33-1.el6.x86_64
	libssl.so.10(libssl.so.10)(64bit) is needed by mysql-community-client-8.0.33-1.el6.x86_64
	libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) is needed by mysql-community-libs-8.0.33-1.el6.x86_64
	libcrypto.so.10(libcrypto.so.10)(64bit) is needed by mysql-community-libs-8.0.33-1.el6.x86_64
	libssl.so.10(libssl.so.10)(64bit) is needed by mysql-community-libs-8.0.33-1.el6.x86_64
	libcrypto.so.10(OPENSSL_1.0.1)(64bit) is needed by mysql-community-server-8.0.33-1.el6.x86_64
	libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) is needed by mysql-community-server-8.0.33-1.el6.x86_64
	libcrypto.so.10(libcrypto.so.10)(64bit) is needed by mysql-community-server-8.0.33-1.el6.x86_64
	libssl.so.10(libssl.so.10)(64bit) is needed by mysql-community-server-8.0.33-1.el6.x86_64
[root@rhel64 Downloads]# ls

2. According to the solution on the Internet, according to openssl-libs-1.0.2k-19.el7.x86_64.rpm, the report needs libc.so.6(GLIBC_2.17)

[root@rhel64 Downloads]# rpm -ivh  openssl-libs-1.0.2k-19.el7.x86_64.rpm --force
warning: openssl-libs-1.0.2k-19.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
	libc.so.6(GLIBC_2.14)(64bit) is needed by openssl-libs-1:1.0.2k-19.el7.x86_64
	libc.so.6(GLIBC_2.17)(64bit) is needed by openssl-libs-1:1.0.2k-19.el7.x86_64

2. Configure centos-base source

Backup Ali source configuration file

[wanchao@localhost ~]$  mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/Centos-Base.repo.bak

Download Aliyuan configuration file (2 ways)

[root@localhost ~]#wget -O /etc/yum.repos.d/CentOS-Base.repo  https://mirrors.aliyun.com/repo/Centos-7.repo

[root@localhost ~]#curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

Modify the yum configuration file CentOS-Base.repo

[wanchao@localhost ~]$ vim /etc/yum.repos.d/CentOS-Base.repo
#2、将全文中所有的“$releasever”字符串替换成“7”,因为我的系统centos7版本
#进入命令行模式
:%s/$releasever/7/g
#保存并退出
:wq

Update the mirror source again

[wanchao@localhost ~]$ yum clean all
[wanchao@localhost ~]$ yum makecache

3 Check the installed gblic version

[root@rhel64 Downloads]# strings /lib64/libc.so.6 | grep GLIBC
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_2.13
GLIBC_2.14
GLIBC_PRIVATE

4 Use yum to update the installation dependencies

sudo yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make -y

download rpm package

wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-utils-2.17-55.el6.x86_64.rpm &
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-static-2.17-55.el6.x86_64.rpm &
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-2.17-55.el6.x86_64.rpm &
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-common-2.17-55.el6.x86_64.rpm &
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-devel-2.17-55.el6.x86_64.rpm &
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-headers-2.17-55.el6.x86_64.rpm &
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/nscd-2.17-55.el6.x86_64.rpm &


Length: 1723952 (1.6M) [application/x-rpm]
Saving to: `glibc-static-2.17-55.el6.x86_64.rpm'

100%[=================================================================>] 197,136      246K/s   in 0.8s    

2023-07-07 00:33:34 (246 KB/s) - `glibc-utils-2.17-55.el6.x86_64.rpm' saved [197136/197136]

100%[=================================================================>] 1,043,692    587K/s   in 1.7s    

2023-07-07 00:33:35 (587 KB/s) - `glibc-devel-2.17-55.el6.x86_64.rpm' saved [1043692/1043692]

100%[=================================================================>] 677,944      499K/s   in 1.3s    

2023-07-07 00:33:35 (499 KB/s) - `glibc-headers-2.17-55.el6.x86_64.rpm' saved [677944/677944]

100%[=================================================================>] 1,723,952    293K/s   in 6.1s    

2023-07-07 00:33:40 (277 KB/s) - `glibc-static-2.17-55.el6.x86_64.rpm' saved [1723952/1723952]

100%[=================================================================>] 4,181,172    246K/s   in 13s     

2023-07-07 00:33:46 (312 KB/s) - `glibc-2.17-55.el6.x86_64.rpm' saved [4181172/4181172]

100%[=================================================================>] 14,624,176   199K/s   in 1m 44s  

2023-07-07 00:35:17 (138 KB/s) - `glibc-common-2.17-55.el6.x86_64.rpm' saved [14624176/14624176]


[7] 4151
[1]   Done                    wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-utils-2.17-55.el6.x86_64.rpm
[2]   Done                    wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-static-2.17-55.el6.x86_64.rpm
[3]   Done                    wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-2.17-55.el6.x86_64.rpm
[4]   Done                    wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-common-2.17-55.el6.x86_64.rpm
[5]   Done                    wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-devel-2.17-55.el6.x86_64.rpm
[6]   Done                    wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-headers-2.17-55.el6.x86_64.rpm
[root@rhel64 glibc-2.17]# --2023-07-07 00:37:47--  http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/nscd-2.17-55.el6.x86_64.rpm
Resolving copr-be.cloud.fedoraproject.org... 52.44.175.77, 2600:1f18:8ee:ae00:d553:8ed5:d8b6:9f83
Connecting to copr-be.cloud.fedoraproject.org|52.44.175.77|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 255380 (249K) [application/x-rpm]
Saving to: `nscd-2.17-55.el6.x86_64.rpm'

100%[=================================================================>] 255,380      281K/s   in 0.9s    

2023-07-07 00:37:48 (281 KB/s) - `nscd-2.17-55.el6.x86_64.rpm' saved [255380/255380]


[7]+  Done                    wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/nscd-2.17-55.el6.x86_64.rpm

After downloading, the installation package is as follows:

[root@rhel64 glibc-2.17]# ll
total 22184
-rw-r--r-- 1 root root  4181172 Feb 16  2015 glibc-2.17-55.el6.x86_64.rpm
-rw-r--r-- 1 root root 14624176 Feb 16  2015 glibc-common-2.17-55.el6.x86_64.rpm
-rw-r--r-- 1 root root  1043692 Feb 16  2015 glibc-devel-2.17-55.el6.x86_64.rpm
-rw-r--r-- 1 root root   677944 Feb 16  2015 glibc-headers-2.17-55.el6.x86_64.rpm
-rw-r--r-- 1 root root  1723952 Feb 16  2015 glibc-static-2.17-55.el6.x86_64.rpm
-rw-r--r-- 1 root root   197136 Feb 16  2015 glibc-utils-2.17-55.el6.x86_64.rpm
-rw-r--r-- 1 root root   255380 Feb 16  2015 nscd-2.17-55.el6.x86_64.rpm
[root@rhel64 glibc-2.17]# 

Install the rpm package

sudo rpm -Uvh *-2.17-55.el6.x86_64.rpm --force --nodeps

Guess you like

Origin blog.csdn.net/weixin_44048054/article/details/131581436