Yum is throwing "UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position XX: ordinal not in range(XXX)" error.

Solution Verified - Updated -

Issue

  • yum command is throwing several Unicode errors
  • yum check-update throws below error message:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xec in position 41: ordinal not in range(128)
'ascii' codec can't decode byte 0xc3 in position 17: ordinal not in range(128)

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • yum

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