2011-07-21 61 views
5

試圖從源代碼編譯Wireshark的,因爲沒有Linux安裝程序,當我運行配置腳本我收到此錯誤:需要在Ubuntu上更新GTK +(10.04)

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 

任何人都可以幫助我如何做到這一點?

在此先感謝。

+0

嗨,大家好,感謝您的意見。我已經嘗試過使用apt-get,但它報告說找不到包gtk。 – MeanwhileInHell

+2

爲什麼你不能'sudo apt-get install wireshark'? –

+1

哈哈,我簡直就是這麼做的。工作過一種享受。謝謝! – MeanwhileInHell

回答

5

這爲我工作: apt-get install libgtk2.0-dev

0

你提到的兩個命令沒有說明你想要更新的應用程序。實際的命令實際上是 apt-get appname install

無論如何我建議你使用GUI軟件更新管理器。

0

嘗試使用 sudo apt-get install gtk+2.4

sudo apt-get upgrade實際的升級,也已經安裝包:

目前可用的檢索和升級的新版本 安裝包;在沒有 的情況下,當前安裝的軟件包已被刪除,或者尚未安裝檢索並安裝的軟件包 。
(從手冊頁)

,但你必須以無效關於可用的軟件包當地信息,並獲得來自/etc/apt/sources.list入伍回購所有最新變化發出update命令upgrade之前。
這是因爲當您使用apt-get時,軟件包系統使用它自己的本地軟件包索引來跟蹤相關性。