2016-07-20 6 views
0

터미널에서 실행할 때마다 : $ 소프트웨어 연구 시간 후오류가있는 Linux 초급 OS에서 소프트웨어 센터를 수정하는 방법 : "gi.RepositoryError : 네임 스페이스 용 Typelib 파일 '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 

(위의 명령은 다음과 같이이었다,하지만 당신은 위/경로 알릴 수있는 내 경우에는/to/my/typelib_dir python my_prog.py 대신 폴더가 다른 경로에있는 경우).