ubuntu - apt-get:/lib/x86_64-linux-gnu/libc.so.6:找不到版本 `GLIBC_2.18'(/usr/lib/x86_64-linux-gnu/libstdc++.so.6 需要)

标签 ubuntu apt-get libc dpkg

我有这台机器

$ cat /proc/cpuinfo
processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 16
model       : 8
model name  : AMD Opteron(tm) Processor 4171 HE
stepping    : 1
microcode   : 0xffffffff
cpu MHz     : 2094.720
cache size  : 512 KB
physical id : 0
siblings    : 1
core id     : 0
cpu cores   : 1
apicid      : 0
initial apicid  : 0
fpu     : yes
fpu_exception   : yes
cpuid level : 5
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow rep_good nopl extd_apicid pni cx16 popcnt hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw vmmcall
bogomips    : 4189.44
TLB size    : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 42 bits physical, 48 bits virtual
power management:

继续运行
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:    14.04
Codename:   trusty

出于某种原因,我收到此错误
$ apt-get
apt-get: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.18' not found (required by /usr/lib/x86_64-linux-gnu/libstdc++.so.6)

并尝试重新安装软件包并不能解决问题
$ sudo dpkg -i ipts libc6_2.17-0ubuntu5.1_i386.deb 
dpkg: error processing archive ipts (--install):
 cannot access archive: No such file or directory
(Reading database ... 194474 files and directories currently installed.)
Preparing to unpack libc6_2.17-0ubuntu5.1_i386.deb ...
Unpacking libc6:i386 (2.17-0ubuntu5.1) over (2.17-0ubuntu5.1) ...
dpkg: error processing package libc6:i386 (--install):
 package libc6:i386 2.17-0ubuntu5.1 cannot be configured because libc6:amd64 is at a different version (2.17-0ubuntu5)
Errors were encountered while processing:
 ipts
 libc6:i386


$ sudo dpkg -i ipts libc6_2.17-0ubuntu5_amd64.deb
dpkg: error processing archive ipts (--install):
 cannot access archive: No such file or directory
(Reading database ... 194474 files and directories currently installed.)
Preparing to unpack libc6_2.17-0ubuntu5_amd64.deb ...
Unpacking libc6:amd64 (2.17-0ubuntu5) over (2.17-0ubuntu5) ...
dpkg: error processing package libc6:amd64 (--install):
 package libc6:amd64 2.17-0ubuntu5 cannot be configured because libc6:i386 is at a different version (2.17-0ubuntu5.1)
Errors were encountered while processing:
 ipts
 libc6:amd64

最佳答案

For some reason I get this error


trusty使用 glibc-2.19默认。

不知何故,您设法安装了 glibc-2.17相反,现在你正面临后果。降级您的 glibc降低版本是有史以来最糟糕的想法,并且可能会使您的系统无法启动。只是不要这样做(TM)。

关于ubuntu - apt-get:/lib/x86_64-linux-gnu/libc.so.6:找不到版本 `GLIBC_2.18'(/usr/lib/x86_64-linux-gnu/libstdc++.so.6 需要),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39254655/

相关文章:

android - 使用 ndk 工具链的 tcdrain 函数调用 for android

c - 将共享库重新链接到不同版本的 libc

c++ - boost 1.71.0 : How to get process output?

c++ - boost::date_time, g++-4.7.0, 编译错误

shell - 如何提前知道apt-get要安装的某个包的版本?

ubuntu - E : Unable to locate package - Ubuntu

python - 尝试更新 libpython3.6-stdlib 导致覆盖错误

php - "unlink permission denied"尝试删除 deleteme.txt 时出错

android - 在 termux android N OS 上安装 python 时出错

c - 为什么我在Rust中的C strlen()也计算print中的字符串切片! `s`变量后的宏?