软件中心打不开
Tofloor
poster avatar
182******97
deepin
2015-12-25 14:51
Author
wonchong-ug@Home-PC:~$ deepin-software-center
Traceback (most recent call last):
  File "/usr/bin/deepin-software-center", line 83, in
    start_main()
  File "/usr/bin/deepin-software-center", line 63, in start_main
    software_center.run()
  File "/usr/share/deepin-software-center/ui/software_center.py", line 1132, in run
    self.ready_show()
  File "/usr/share/deepin-software-center/ui/software_center.py", line 872, in ready_show
    if utils.is_first_started():
  File "/usr/share/deepin-software-center/ui/utils.py", line 235, in is_first_started
    config = get_config_info_config()
  File "/usr/share/deepin-software-center/ui/utils.py", line 229, in get_config_info_config
    touch_file(CONFIG_INFO_PATH)
  File "/usr/lib/python2.7/dist-packages/deepin_utils/file.py", line 146, in touch_file
    open(filepath, 'w').close()
IOError: [Errno 13] 权限不够: '/home/wonchong-ug/.config/deepin-software-center/config_info.ini'
wonchong-ug@Home-PC:~$ sudo deepin-software-center
[sudo] wonchong-ug 的密码:
对不起,请重试。
[sudo] wonchong-ug 的密码:
Traceback (most recent call last):
  File "/usr/bin/deepin-software-center", line 23, in
    from software_center import DeepinSoftwareCenter
  File "/usr/share/deepin-software-center/ui/software_center.py", line 41, in
    from dtk.ui.menu import Menu
  File "/usr/lib/python2.7/dist-packages/dtk/ui/menu.py", line 27, in
    from window import Window
  File "/usr/lib/python2.7/dist-packages/dtk/ui/window.py", line 30, in
    from deepin_utils.xutils import set_window_property_by_id
  File "/usr/lib/python2.7/dist-packages/deepin_utils/xutils.py", line 39, in
    @init_xlib        
  File "/usr/lib/python2.7/dist-packages/deepin_utils/xutils.py", line 31, in init_xlib
    xlib_display =  display.Display()
  File "/usr/lib/python2.7/dist-packages/Xlib/display.py", line 80, in __init__
    self.display = _BaseDisplay(display)
  File "/usr/lib/python2.7/dist-packages/Xlib/display.py", line 62, in __init__
    display.Display.__init__(*(self, ) + args, **keys)
  File "/usr/lib/python2.7/dist-packages/Xlib/protocol/display.py", line 129, in __init__
    raise error.DisplayConnectionError(self.display_name, r.reason)
Xlib.error.DisplayConnectionError: Can't connect to display ":0": No protocol specified


Reply Favorite View the author
All Replies
136******54
deepin
2015-12-25 17:45
#1
是deepin系统吗?你对系统做了什么?
Reply View the author
ArthurDeepin
deepin
2015-12-25 18:48
#2
第一句执行就说权限不够,那就去看看那个文件的权限呗。所以说啊,不要随意使用root,搞乱了权限也是自找苦吃
Reply View the author