Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/visual-studio-2010/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
需要更新GTK+;在Ubuntu上(10.04)_Ubuntu_Gtk - Fatal编程技术网

需要更新GTK+;在Ubuntu上(10.04)

需要更新GTK+;在Ubuntu上(10.04),ubuntu,gtk,Ubuntu,Gtk,正在尝试从源代码构建Wireshark,因为没有Linux安装程序,并且在运行配置脚本时出现以下错误: checking for GTK+ - version >= 2.4.0... no *** Could not run GTK+ test program, checking why... *** The test program failed to compile or link. See the file config.log for the *** exact error tha

正在尝试从源代码构建Wireshark,因为没有Linux安装程序,并且在运行配置脚本时出现以下错误:

checking for GTK+ - version >= 2.4.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error: GTK+ 2.4 or later isn't available, so Wireshark can't be compiled
尝试运行以下命令时运气不佳:

sudo apt-get update
sudo apt-get upgrade
有谁能帮我做这件事吗


提前感谢。

您提到的两个命令没有说明要更新的应用程序。实际命令实际上是 apt获取appname安装

无论如何,我建议您为此使用GUI软件更新管理器。

尝试使用
sudo apt get安装gtk+2.4

sudo apt get upgrade
实际升级刚刚安装的数据包:

当前安装了新软件包的软件包 检索并升级可用版本;不下 当前已安装的包或已删除的包 尚未安装,已检索并安装。
(摘自手册页)

但是在
升级之前
您必须发出
更新
命令,以使可用软件包的本地信息无效,并从
/etc/apt/sources.list中登记的回购中获取所有最新更改
这是因为当您使用
apt-get

时,包系统使用它自己的本地包索引来跟踪依赖关系,这对我很有用:
apt get install libgtk2.0-dev

大家好,谢谢大家的评论。我已经尝试过使用apt-get,但是它报告说它找不到包gtk。为什么你不能直接执行
sudo-apt-get-install-wireshark
?哈哈,我确实做到了。工作很愉快。谢谢