且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

找不到GLIBC_2.27 Ubuntu 16.04

更新时间:2023-11-21 18:15:34

如何将GLIBC更新为2.27并摆脱上述错误?

How can I update GLIBC to 2.27 and get rid of the above error?

虽然可以做到,但也有一些缺点:

While it's possible to do, there are some disadvantages:

  1. 如果在此过程中犯了 any 错误,将使系统无法启动.***准备好恢复媒体,并知道如何使用它来手动挂载根文件系统并进行修复.
  2. 虽然GLIBC具有高度的向后兼容性,但是依赖未定义行为的现有程序可能会中断.
  1. If you make any mistake in the process, you will render the system un-bootable. Better have recovery media ready and know how to use it to manually mount your root filesystem and repair it.
  2. While GLIBC is highly backward compatible, existing programs that depend on undefined behavior may break.

您***的选择是在chroot环境或Docker容器中运行此新程序.

Your best bet is to run this new program in a chroot environment or in a docker container.

您的下一个***选择是与系统GLIBC并行安装GLIBC-2.27 ,例如, 此答案.

Your next best bet is to install GLIBC-2.27 in parallel with system GLIBC, as described in e.g. this answer.

如果您决定将系统GLIBC更新到新版本,则最不容易出错的方法是下载新软件包,从恢复介质启动系统,在例如/mnt,并在其顶部解压缩新版本.

If you do decide to update the system GLIBC to the new version, the least error-prone way to do so is to download a new package, boot the system from recovery media, mount root filesystem on e.g. /mnt, and unpack the new version on top of it.