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. Error: No matching Packages to list [root@253Test ~]# 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)
时间: 2024-01-30 10:03:57 浏览: 113
RedHat Enterprise Linux 6.4使用yum安装出现This system is not registered to Red Hat Subscription Management-附件资源
这个错误看起来像是编码问题。你的系统可能使用了非ASCII字符,导致在输出时出现编码错误。你可以尝试设置环境变量LC_ALL为一个支持你系统编码的值,例如:
```
export LC_ALL=en_US.UTF-8
```
然后再尝试运行你的命令。如果问题仍然存在,你可以查看系统日志文件,以获取更多信息来解决问题。
阅读全文