glibc被误升级了,怎么办?

2203的glibc被升级成2503的glibc了

执行 yum downgrade glibc 命令,看看降级后的版本是否是所需要的,然后确认执行即可

[root@localhost lib64]# yum downgrade glibc
Last metadata expiration check: 0:00:42 ago on Tue 20 May 2025 09:14:00 PM CST.
Error:
Problem: cannot install both glibc-2.34-70.oe2203.aarch64 and glibc-2.38-56.oe2503.aarch64

  • package compat-openssl11-libs-1:1.1.1m-13.oe2503.aarch64 requires libc.so.6(GLIBC_2.38)(64bit), but none of the providers can be installed
  • conflicting requests
  • problem with installed package compat-openssl11-libs-1:1.1.1m-13.oe2503.aarch64
    (try to add ‘–allowerasing’ to command line to replace conflicting packages or ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)
    [root@localhost lib64]# yum downgrade glibc compat-openssl-libs
    Last metadata expiration check: 0:01:28 ago on Tue 20 May 2025 09:14:00 PM CST.
    No package compat-openssl-libs available.
    Error:
    Problem: cannot install both glibc-2.34-70.oe2203.aarch64 and glibc-2.38-56.oe2503.aarch64
  • package compat-openssl11-libs-1:1.1.1m-13.oe2503.aarch64 requires libc.so.6(GLIBC_2.38)(64bit), but none of the providers can be installed
  • conflicting requests
  • problem with installed package compat-openssl11-libs-1:1.1.1m-13.oe2503.aarch64
    (try to add ‘–allowerasing’ to command line to replace conflicting packages or ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)
    [root@localhost lib64]# yum install compat-openssl11-libs
    Last metadata expiration check: 0:01:43 ago on Tue 20 May 2025 09:14:00 PM CST.
    Package compat-openssl11-libs-1:1.1.1m-13.oe2503.aarch64 is already installed.
    Dependencies resolved.
    Nothing to do.
    Complete!
    [root@localhost lib64]# yum downgrade glibc compat-openssl11-libs
    Last metadata expiration check: 0:01:53 ago on Tue 20 May 2025 09:14:00 PM CST.
    Packages for argument compat-openssl11-libs available, but not installed.
    Error:
    Problem: cannot install both glibc-2.34-70.oe2203.aarch64 and glibc-2.38-56.oe2503.aarch64
  • package compat-openssl11-libs-1:1.1.1m-13.oe2503.aarch64 requires libc.so.6(GLIBC_2.38)(64bit), but none of the providers can be installed
  • conflicting requests
  • problem with installed package compat-openssl11-libs-1:1.1.1m-13.oe2503.aarch64
    (try to add ‘–allowerasing’ to command line to replace conflicting packages or ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)

加上下面提示的 --allowerasing 选项即可:

因为报冲突的这个包在 25.03 上才有,而其又依赖高版本 glibc,在 22.03 上是没有的,因此可以直接擦除

在试验机上验证通过,非常感谢