Centos Authconf 错误

Centos Authconf 错误

我目前正在尝试使用以下命令在centos上进行身份验证和授权:

authconfig --enableforcelegacy --update 它向我抛出了以下消息,因为我对 Linux 还很陌生,所以我目前有点努力找出我必须做什么:

`Traceback (most recent call last):
File "/sbin/authconfig", line 1071, in <module>
sys.exit(module.run())
File "/sbin/authconfig", line 640, in run
self.parseOptions()
File "/sbin/authconfig", line 128, in parseOptions
help=_("enable shadowed passwords by default"))
File "/usr/lib64/python2.7/gettext.py", line 571, in lgettext
return ldgettext(_current_domain, message)
File "/usr/lib64/python2.7/gettext.py", line 543, in ldgettext
return t.lgettext(message)
File "/usr/lib64/python2.7/gettext.py", line 368, in lgettext
return tmsg.encode(locale.getpreferredencoding())
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position
12: ordinal not in range(128)

以前有人遇到过类似的问题吗?您能与我分享一下您是如何解决的吗?预先非常感谢您!

答案1

我能够使用以下命令修复它:

export LC_ALL=C

我从一个类似的案例中发现:https://stackoverflow.com/questions/14547631/python-locale-error-unsupported-locale-setting

相关内容