installer crashed just after vnc server url return 404 error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kde-guidance (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: ubiquity
Traceback (most recent call last):
File "/usr/lib/
main()
File "/usr/lib/
install(
File "/usr/lib/
ret = wizard.run()
File "/usr/lib/
self.
File "/usr/lib/
(ret, realtb))
RuntimeError: Install failed with exit code 1
Traceback (most recent call last):
File "/usr/share/
install.run()
File "/usr/share/
self.
File "/usr/share/
handler.run()
File "/usr/lib/
self.
File "/var/lib/
fhandle = codecs.
File "locale.py", line 514, in getpreferredenc
setlocale(
File "locale.py", line 478, in setlocale
return _setlocale(
Error: unsupported locale setting
IMO this is a bug in xorgconfig.py. Note that in one place it does:
try: getpreferredenc oding()
loc = locale.
except locale.Error:
loc = 'ANSI_X3.4-1968'
... while in the offending function it does:
def writeConfig( self,filename) : open(filename, 'w',locale. getpreferredenc oding() )
fhandle. write(self. toString( ))
fhandle. close()
fhandle = codecs.
I suggest this code instead to match the first segment I quoted:
def writeConfig( self,filename) :
encoding = locale. getpreferredenc oding()
encoding = 'ANSI_X3.4-1968' open(filename, 'w',encoding)
fhandle. write(self. toString( ))
fhandle. close()
try:
except locale.Error:
fhandle = codecs.