首页 > 系统相关 >Traceback (most recent call last): File "/usr/bin/yum-config-manager", line 6, in <modu

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

时间:2022-12-02 04:33:05浏览次数:34  
标签:bin last manager yum usr call config

 

 

# 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

 

标签:bin,last,manager,yum,usr,call,config
From: https://www.cnblogs.com/Primzahl/p/16943317.html

相关文章

  • 124. Binary Tree Maximum Path Sum(难)
    Givenabinarytree,findthemaximumpathsum.Forthisproblem,apathisdefinedasanysequenceofnodesfromsomestartingnodetoanynodeinthetreeal......
  • 98. Validate Binary Search Tree
    Givenabinarytree,determineifitisavalidbinarysearchtree(BST).AssumeaBSTisdefinedasfollows:Theleftsubtreeofanodecontainsonlynodeswit......
  • Remove Node in Binary Search Tree
    GivenarootofBinarySearchTreewithuniquevalueforeachnode.Removethenodewithgivenvalue.Ifthereisnosuchanodewithgivenvalueinthebinary......
  • lintcode:Binary Tree Serialization
    Designanalgorithmandwritecodetoserializeanddeserializeabinarytree.Writingthetreetoafileiscalled‘serialization’andreadingbackfromthe......
  • 更新centos中yum仓库
    1.增加基础源/etc/yum.repos.d/CentOS-Base.repo#CentOS-Base.repo##ThemirrorsystemusestheconnectingIPaddressoftheclientandthe#updatestatus......
  • ElasticSearch笔记
    原文地址:https://www.kuangstudy.com/bbs/1354069127022583809笔记记录B站狂神说Java的ElasticSearch课程:https://www.bilibili.com/video/BV17a4y1x7zq在学习E......
  • Elasticsearch Mapping字段未支持索引导致搜索失效问题处理
    问题描述:生产上Es根据一个时间字段搜索,却没有返回数据问题分析:根据命令:GETindexName/_mapping查看#GETindexName/_mapping{ "indexName":{ "mappin......
  • ElasticSearch面试题
    1.为什么要使用ElasticSearch系统中的数据,随着业务的发展,时间的推移,将会非常多,而业务中往往采用模糊查询进行数据的搜索,而模糊查询会导致查询引擎放弃索引,导致系统......
  • Linux搭建ElasticSearch集群
    前言这是整个ElasticSearch搭建的最后一篇文章,其实对我而言ElasticSearch在Linux上搭建集群写这篇文章意义并不大,只是为了补充这个空白而已,所以这篇文章并不会讲解很详细......
  • ElasticSearch集群数据读写流程
    前言本章作为ElasticSearch分布式集群的附属章节,主要讲解ElasticSearch集群环境下数据是如何读写的,既然讲到读写,那么ElasticSearch的更新就是基于二者的结合,顺带也讲一下......