[Ubuntu]libgtk2.0のインストール
- February 27th, 2009
Ubuntuでlibgtk2.0のインストールを試みた際に失敗をした。
リカバリした方法をいかに書いておく。
失敗の原因:
ubuntuの見た目をMac風にするためにglobal-menuをというのを
インストールした、このときに本来とは違うバージョンのlibgtk2.0
をインストールしてしまったのが原因のようだ。
ログ:
$ apt-get install libgtk2.0-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libgtk2.0-dev: Depends: libgtk2.0-0 (= 2.12.9-3ubuntu5) but 2.12.9-4ubuntu3 is to be installed
E: Broken packages
ということで、正しいバージョンのlibgtk2.0をインストール。
$ apt-get install libgtk2.0-0=2.12.9-3ubuntu5
これで解決!よかった〜
apt-getでバージョン指定してインストールする時は、
apt-get install [パッケージ名]=[バージョン]
で、出来る事がわかった。よかったよかった。
Popularity: 8% [?]


