11.10 升级和安装 ia32-libs 时出现 libglib2.0 错误

11.10 升级和安装 ia32-libs 时出现 libglib2.0 错误

升级到 11.10 后又出现了一堆错误。经过初步诊断并通过 apt-get 自动删除后,仍有 17 个软件包无法安装。运行 dpkg --audit 后,我​​得到以下信息:

The following packages are only half configured, probably due to problems
configuring them the first time.  The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
 libglib2.0-0:i386    GLib library of C routines

因此我运行该程序并得到以下结果:

sudo dpkg --configure libglib2.0-0:i386
Setting up libglib2.0-0:i386 (2.30.0-0ubuntu4) ...
/usr/lib/i386-linux-gnu/glib-2.0/glib-compile-schemas: error while loading shared                  libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory
/usr/lib/i386-linux-gnu/glib-2.0/gio-querymodules: error while loading shared   libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory
dpkg: error processing libglib2.0-0:i386 (--configure):
 subprocess installed post-installation script returned error exit status 127
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 libglib2.0-0:i386

有任何想法吗?

更新:因此,我能够清除一些错误,但现在我可以在尝试安装 ia32-libs 时重现此错误。

更新2:

ldd /usr/lib/i386-linux-gnu/glib-2.0/glib-compile-schemas
  linux-gate.so.1 =>  (0xf779d000)
  libglib-2.0.so.0 => not found
  libc.so.6 => /opt/McAfee/runtime/2.0/lib/libc.so.6 (0xf767b000)
  /lib/ld-linux.so.2 (0xf779e000)

ldd /usr/lib/i386-linux-gnu/glib-2.0/gio-querymodules 
  linux-gate.so.1 =>  (0xf76f2000)
  libglib-2.0.so.0 => not found
  libgobject-2.0.so.0 => not found
  libgmodule-2.0.so.0 => not found
  libgio-2.0.so.0 => not found
  libc.so.6 => /opt/McAfee/runtime/2.0/lib/libc.so.6 (0xf75cf000)
  /lib/ld-linux.so.2 (0xf76f3000)

使用 grep -r 执行以下命令: /etc/ld.so.conf*:

/etc/ld.so.conf:include /etc/ld.so.conf.d/*.conf
/etc/ld.so.conf.d/biarch-compat.conf:# Legacy biarch compatibility support
/etc/ld.so.conf.d/biarch-compat.conf:/lib32
/etc/ld.so.conf.d/biarch-compat.conf:/usr/lib32
/etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf:/usr/lib/nvidia-current-updates
/etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf:/usr/lib32/nvidia-current-updates
/etc/ld.so.conf.d/i686-linux-gnu.conf:# Multiarch support
/etc/ld.so.conf.d/i686-linux-gnu.conf:/lib/i386-linux-gnu
/etc/ld.so.conf.d/i686-linux-gnu.conf:/usr/lib/i386-linux-gnu
/etc/ld.so.conf.d/i686-linux-gnu.conf:/lib/i686-linux-gnu
/etc/ld.so.conf.d/i686-linux-gnu.conf:/usr/lib/i686-linux-gnu
/etc/ld.so.conf.d/nvidia_settings.conf:/usr/lib/nvidia-settings-updates
/etc/ld.so.conf.d/libc.conf:# libc default configuration
/etc/ld.so.conf.d/libc.conf:/usr/local/lib
/etc/ld.so.conf.d/x86_64-linux-gnu.conf:# Multiarch support
/etc/ld.so.conf.d/x86_64-linux-gnu.conf:/lib/x86_64-linux-gnu
/etc/ld.so.conf.d/x86_64-linux-gnu.conf:/usr/lib/x86_64-linux-gnu

这些文件存在:

/lib32/libglib-2.0.so.0 -> libglib-2.0.so.0.3000.0
/lib/i386-linux-gnu/libglib-2.0.so.0 -> libglib-2.0.so.0.3000.0
/usr/lib32/libgobject-2.0.so.0 -> libgobject-2.0.so.0.3000.0
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0 -> libgobject-2.0.so.0.3000.0

更多信息:

echo $LD_LIBRARY_PATH, $LD_PRELOAD, $PATH:
, , /home/vrigdon/bin:/home/vrigdon/apache-maven-3.0.3/bin:/home/vrigdon/apache-ant-1.8.2/bin:/home/vrigdon/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/vrigdon/dev/lib/android-sdk-linux_x86/platform-tools:/home/vrigdon/gradle-1.0-milestone-3/bin

答案1

我从来没解决过这个问题,因为我重新安装了操作系统,但我很确定这是 McAfee 安装的问题。

相关内容