Traceback (most recent call last): File "/usr/bin/yum-config-manager", line 6, in <module> import yum

 

 

# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Traceback (most recent call last): File "/usr/bin/yum-config-manager", line 6, in <module> import yum

 

解决方案

vim /usr/bin/yum-config-manager

修改首行:
#!/usr/bin/python2.7 -tt

 

posted @ 2022-12-02 04:17  JeromePowell  阅读(820)  评论(0编辑  收藏  举报