我在 CentOS 机器上尝试了一个 python 应用程序,它给了我以下错误:
ImportError: /usr/lib64/libc.so.6: version `GLIBC_2.18' not found (required by /tmp/_MEI2BYIr4/libstdc++.so.6)
Run Code Online (Sandbox Code Playgroud)
我一直想升级 GLIBC,但是在阅读了一些论坛之后,我似乎可以破坏系统。你知道有什么替代方案吗?
谢谢
我正在尝试创建一个脚本,强制 Debian Lenny 安装以安装最新版本的 CRAN R。在安装过程中,似乎 libc6 已升级,并且安装需要交互确认可以重新启动三个服务(mysql、exim4、cron )。此过程必须无人值守,因为它在 Amazon 的 Elastic Map Reduce (EMR) 机器上运行。但我的选择不多了。这是我尝试过的一些事情:
这个前面的问题似乎正是我要找的。所以我设置了我的安装脚本如下:
# set my CRAN repos... yes, I know there's a new convention where to put these.
echo "deb http://cran.r-project.org/bin/linux/debian lenny-cran/" | sudo tee -a /etc/apt/sources.list
echo "deb-src http://cran.r-project.org/bin/linux/debian lenny-cran/" | sudo tee -a /etc/apt/sources.list
# set the dpkg.cfg options per the previous SuperUser question
echo "force-confold" | sudo tee -a /etc/dpkg/dpkg.cfg
echo "force-confdef" | sudo tee -a /etc/dpkg/dpkg.cfg
export DEBIAN_FRONTEND=noninteractive
# …Run Code Online (Sandbox Code Playgroud) 我尝试升级几个软件包,然后在 libc 升级时失败。现在根本不可能升级任何东西。这是我做过的事情:
# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libc6 : Depends: libc-bin (= 2.13-37) but 2.13-38 is installed
E: Unmet dependencies. Try using -f.
root@pagalbadaiktais:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libc6
Suggested packages:
glibc-doc
The …Run Code Online (Sandbox Code Playgroud) 我在 Debian 9.12 中遇到以下 libc6 依赖问题。
sudo apt 安装 libc6-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libc6-dev : Depends: libc6 (= …Run Code Online (Sandbox Code Playgroud)