启动 Red Hat(7.7) 订阅管理器时遇到问题

启动 Red Hat(7.7) 订阅管理器时遇到问题

我的系统配置:Red Hat 7.7 [开发者版]。独立系统。

root@thinkred1cartoon:$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.7 (Maipo)

root@thinkred1cartoon:$ uname -a
Linux thinkred1cartoon.biz 3.10.0-1062.9.1.el7.x86_64 #1 SMP Mon Dec 2 08:31:54 EST 2019 x86_64 x86_64 x86_64 GNU/Linux

我在启动订阅管理器(CLI 或 GUI)时遇到问题。错误 -

root@thinkred1cartoon:$ subscription-manager
Traceback (most recent call last):
  File "/usr/sbin/subscription-manager", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 3011, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: six
subscription-manager via CLI or GUI failing to launch

我遵循了这个 Redhat 解决方案 -https://access.redhat.com/solutions/3967521

1. Uninstall packages installed via pip3

    pip3 pip freeze --local | xargs pip3 uninstall -y

2. Uninstall packages installed via pip

    scl enable python27 bash
    pip freeze --local | xargs pip uninstall -y

3. Uninstalled all python packages from 3rd party listed by command below using "yum remove"

    rpm -qa --queryformat "%{name}-%{version}-%{release}.%{arch}------->%{vendor}\n" | grep -v "Red Hat" | grep -i python

4.  yum reinstall insights-client python-requests python-urllib3

5. yum update -y

6. Rebooted system

没有运气。

网络没问题。 yum 可与现有启用的存储库配合使用,我可以通过网络浏览器上网。

root@thinkred1cartoon:$ strace -T -tt -f -v -s 1024 -o register.out insights-client --register
Traceback (most recent call last):
  File "/usr/bin/insights-client", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 3007, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 728, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: six

系统错误信息 -

root@thinkred1cartoon:$ tail -f /var/log/messages

Dec 26 15:54:30 thinkred1cartoon python: detected unhandled Python exception in '/usr/sbin/subscription-manager'
Dec 26 15:54:30 thinkred1cartoon python: detected unhandled Python exception in '/usr/sbin/sosreport'
Dec 26 15:54:35 thinkred1cartoon python: communication with ABRT daemon failed: timed out
Dec 26 15:54:35 thinkred1cartoon python: communication with ABRT daemon failed: timed out
Dec 26 15:54:35 thinkred1cartoon abrt-server: sosreport run failed with exit code 1, log follows:
Dec 26 15:54:35 thinkred1cartoon abrt-server: Traceback (most recent call last):
Dec 26 15:54:35 thinkred1cartoon abrt-server:  File "/usr/sbin/sosreport", line 14, in <module>
Dec 26 15:54:35 thinkred1cartoon abrt-server:    from sos.sosreport import main
Dec 26 15:54:35 thinkred1cartoon abrt-server:  File "/usr/lib/python2.7/site-packages/sos/__init__.py", line 19, in <module>
Dec 26 15:54:35 thinkred1cartoon abrt-server:    import six
Dec 26 15:54:35 thinkred1cartoon abrt-server: ImportError: No module named six
Dec 26 15:54:35 thinkred1cartoon abrt-server: 'post-create' on '/var/spool/abrt/Python-2019-12-26-15:54:30-20008' exited with 1
Dec 26 15:54:35 thinkred1cartoon abrt-server: Deleting problem directory '/var/spool/abrt/Python-2019-12-26-15:54:30-20008'
Dec 26 15:54:35 thinkred1cartoon python: detected unhandled Python exception in '/usr/sbin/sosreport'
Dec 26 15:54:36 thinkred1cartoon abrt-server: Not saving repeating crash in '/usr/sbin/sosreport'
Dec 26 15:54:36 thinkred1cartoon abrt-server: sosreport run failed with exit code 1, log follows:
Dec 26 15:54:36 thinkred1cartoon abrt-server: Traceback (most recent call last):
Dec 26 15:54:36 thinkred1cartoon abrt-server:  File "/usr/sbin/sosreport", line 14, in <module>
Dec 26 15:54:36 thinkred1cartoon abrt-server:    from sos.sosreport import main
Dec 26 15:54:36 thinkred1cartoon abrt-server:  File "/usr/lib/python2.7/site-packages/sos/__init__.py", line 19, in <module>
Dec 26 15:54:36 thinkred1cartoon abrt-server:    import six
Dec 26 15:54:36 thinkred1cartoon abrt-server: ImportError: No module named six
Dec 26 15:54:36 thinkred1cartoon abrt-server: 'post-create' on '/var/spool/abrt/Python-2019-12-26-15:54:30-20024' exited with 1
Dec 26 15:54:36 thinkred1cartoon abrt-server: Deleting problem directory '/var/spool/abrt/Python-2019-12-26-15:54:30-20024'

任何建议表示赞赏。

相关内容