前言

  • 以后日期是 2022.7.6,CentOS 6 进行保护更新日期是 2020.11.30,CentOS 6 已进行保护近两年
  • 因为种种原因,qbit 须要在 CentOS 6.9 上通过 Miniconda 装置 Python 3.8,发现 glibc 版本太旧装不上,于是试验降级了glibc
  • 初始环境

    CentOS 6.9 x86_64glibc 2.12

步骤

  • 间接装置 MiniConda3 报错

    $ sh Miniconda3-py38_4.12.0-Linux-x86_64.sh WARNING:  The installer is not compatible with the version of the Linux distribution  installed on your system. The version of GLIBC is no longer supported.  Found version 2.12, which is less than 2.17Aborting installation.
  • 查看以后 glibc 版本

    $ ldd --versionldd (GNU libc) 2.12Copyright (C) 2010 Free Software Foundation, Inc.This is free software; see the source for copying conditions.  There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.由 Roland McGrath 和 Ulrich Drepper 编写。
  • 切换软件仓库(centos-vault源)

     curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-6.10.repo
  • 生成缓存

    yum makecache
  • 用 github 上的脚本降级 glibc,脚本内容如下

    #!/bin/bash# update glibc to 2.17 for CentOS 6GLIBC=glibcOS=el6SERVER=https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6VERSION=2.17-55FULL_VERSION=$GLIBC-$VERSION.fc20X64=x86_64I386=i386I636=i686REPO_32=epel-6-$I386REPO_64=epel-6-$X64SERVER_32=$SERVER/$REPO_32/$FULL_VERSIONRPM_32=$VERSION.$OS.$I636.rpmSERVER_64=$SERVER/$REPO_64/$FULL_VERSIONRPM_64=$VERSION.$OS.$X64.rpm# PackagesP_1=$GLIBCP_2=$GLIBC-commonP_3=$GLIBC-develP_4=$GLIBC-headersP_5=$GLIBC-staticP_6=$GLIBC-utilsP_7=nscd# Required as dependency of glibc-utilssudo yum install --assumeyes gd# 64-bitsudo rpm -Uvh --force $SERVER_64/$P_1-$RPM_64 $SERVER_64/$P_2-$RPM_64 $SERVER_64/$P_3-$RPM_64 $SERVER_64/$P_4-$RPM_64 $SERVER_64/$P_5-$RPM_64 $SERVER_64/$P_6-$RPM_64 $SERVER_64/$P_7-$RPM_64# Print out versionsstrings /lib64/libc.so.6 | grep GLIBC
  • 再次查看以后 glibc 版本(不必重启)

    $ ldd --versionldd (GNU libc) 2.17Copyright (C) 2012 Free Software Foundation, Inc.This is free software; see the source for copying conditions.  There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.Written by Roland McGrath and Ulrich Drepper.
  • 失常装置 Miniconda3

    $ sh Miniconda3-py38_4.12.0-Linux-x86_64.sh Welcome to Miniconda3 py38_4.12.0In order to continue the installation process, please review the licenseagreement.Please, press ENTER to continue>>> 
本文出自qbit snap