本文介绍了Ubuntu 12.10 libgtk-3-0 缺少符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行 Ubuntu 12.10,但不知何故我的 libgtk-3-0 搞砸了.尝试运行许多不同的应用程序时,我收到如下错误:

I am running Ubuntu 12.10 and somehow my libgtk-3-0 became screwed up. When trying to run many different apps, I get errors like:

gedit: symbol lookup error: /usr/lib/libgtk-3.so.0: undefined symbol: g_action_group_action_state_changed

我尝试重新安装 libgtk-3-0:

I've tried to reinstall libgtk-3-0:

sudo apt-get install --reinstall libgtk-3-0
sudo apt-get update
sudo apt-get upgrade

但我仍然遇到这个问题 - 在尝试运行各种应用程序时,来自 libgtk-3.so.0 的几个未定义符号.启动系统没有问题.我该如何解决这个问题?

But still I get this problem - several undefined symbols from libgtk-3.so.0 when trying to run various apps. There is no problem booting the system. How can I fix this?

更新:

我的 libgtk 版本安装为:

My version of libgtk is installed as:

/usr/lib/libgtk-3.so.0 -> libgtk-3.so.0.400.2

推荐答案

我使用 'ldd' 发现我在一个单独的目录中有错误的 libcairo 和 libgtk 版本.库链接到这个错误的版本.我删除了错误的版本,重新启动,一切正常.

I used 'ldd' to figure out that I had the wrong versions of the libcairo and libgtk in a seperate directory. The libraries were linking against this wrong version. I removed the wrong versions, rebooted, and everything worked.

ldd /usr/bin/gedit

这篇关于Ubuntu 12.10 libgtk-3-0 缺少符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-03 09:08