2016-07-20 3 views
0

端末で実行すると、エラーのあるLinux初心者OSでソフトウェアセンターを修正する方法: "gi.RepositoryError:名前空間 'GdkPixbuf'、バージョン '2.0'のタイプライブラリファイルが見つかりません"

研究の時間後
Traceback (most recent call last) 
File "/usr/bin/software-center", line 25, in <module> from 
gi.repository import Gtk, GObject 
File "/usr/lib/python2.7/dist-packages/gi/importer.py", line 67, in load_module 
dynamic_module._load() 
File "/usr/lib/python2.7/dist-packages/gi/module.py", line 294, in _load 
self._introspection_module = get_introspection_module(self._namespace) 
File "/usr/lib/python2.7/dist-packages/gi/module.py", line 273, in get_introspection_module 
module = IntrospectionModule(namespace, version) 
File "/usr/lib/python2.7/dist-packages/gi/module.py", line 122, in __init__repository.require(namespace, version) 
gi.RepositoryError: Typelib file for namespace 'GdkPixbuf', version '2.0' not found 

答えて

1

-center私は、次のコマンドを実行した後のソフトウェア・中央開口部を得る:

export GI_TYPELIB_PATH=/usr/lib/x86_64-linux-gnu/girepository-1.0 

(私の場合は、上記のコマンドは、このようなものだったが、あなたは上記の/パス/知らせるかもしれません/ my/typelib_dir python my_prog.py、あなたのフォルダが別のパスにある場合)。

関連する問題