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

おすすめ記事