apt-get 升级过程中的错误

apt-get 升级过程中的错误

使用时sudo apt-get update; sudo apt-get upgrade,我总是收到以下错误消息(有时不止一次):

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
/sbin/ldconfig.real: /usr/lib32/libstdc++.so.6.0.18-gdb.py is not an ELF file - it has the wrong magic bytes at the start.

/sbin/ldconfig.real: /usr/lib/libisl.so.10.1.1-gdb.py is not an ELF file - it has the wrong magic bytes at the start.

这是什么意思(我的意思是,python 源文件怎么会是 ELF)?我该如何解决这个问题?谢谢。


附加信息:

我使用zsh而不是bash。这是 shell 兼容性问题吗?

答案1

我不认为这是 shell 问题。不过,我确实看到其他人也遇到了这个问题——甚至有一个错误报告就此而言。显然,这些文件最终会进入/usr/lib,当 ldconfig 尝试处理它们时,它自然会失败。但是,由于这只是一个警告,也许您不应该担心它?或者,您可以尝试将它们移动到某个临时位置,看看它会带您到哪里。

尝试找出该文件属于哪个包(例如apt-file search "libisl.so.10.1.1-gdb.py",我认为可能是libisl8-dbg——您需要这个包吗?),并检查包本身(或依赖于该包的包)是否运行正常。不幸的是,您没有提到您使用的是哪个 Ubuntu 版本。

相关内容