本人参照以下链接中的提示安装Ubuntu子系统
参考网址
安装图形化界面,输入ccsm后报错
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
Traceback (most recent call last):
File "/usr/bin/ccsm", line 94, in <module>
import ccm
File "/usr/lib/python2.7/dist-packages/ccm/__init__.py", line 1, in <module>
from ccm.Conflicts import *
File "/usr/lib/python2.7/dist-packages/ccm/Conflicts.py", line 26, in <module>
from ccm.Constants import *
File "/usr/lib/python2.7/dist-packages/ccm/Constants.py", line 30, in <module>
CurrentScreenNum = gtk.gdk.display_get_default().get_default_screen().get_number()
AttributeError: 'NoneType' object has no attribute 'get_default_screen'
想知道有没有人遇到了一样的问题,又应该如何解决