authconfig is failing with error "return _setlocale(category, locale) locale.Error: unsupported locale setting"

Solution Verified - Updated -

Issue

  • authconfig failed to update /etc/nssswitc.conf and PAM config.
# authconfig --enablesssd --enablesssdauth --update
Traceback (most recent call last):
  File "/usr/sbin/authconfig", line 33, in <module>
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib64/python2.6/locale.py", line 513, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

Environment

  • Red Hat Enterprise Linux 6 and later
  • authconfig

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content