1、问题描述:
[root@localhost data]# yum Loaded plugins: product-id, refresh-packagekit, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. You need to give some command Traceback (most recent call last): File "/usr/bin/yum", line 29, in <module> yummain.user_main(sys.argv[1:], exit_code=True) File "/usr/share/yum-cli/yummain.py", line 285, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 105, in main base.getOptionsConfig(args) File "/usr/share/yum-cli/cli.py", line 310, in getOptionsConfig self.parseCommands() # before we return check over the base command + args File "/usr/share/yum-cli/cli.py", line 333, in parseCommands self.usage() File "/usr/share/yum-cli/cli.py", line 1340, in usage sys.stdout.write(self.optparser.format_help()) File "/usr/lib64/python2.6/optparse.py", line 1641, in format_help result.append(self.get_usage() + "\n") File "/usr/lib64/python2.6/optparse.py", line 1583, in get_usage self.expand_prog_name(self.usage)) File "/usr/lib64/python2.6/optparse.py", line 374, in format_usage return _("Usage: %s\n") % usage UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 0: ordinal not in range(128)