解决centos中python升级后yum不可用问题

  • A+
所属分类:运维教程

系统Python软链接指向Python2.7版本后,因yum是不兼容Python 2.7的,故yum不能正常工作,我们需要指定yum的Python版本为升级前的版本

  1. vi /usr/bin/yum

将文件头部的

  1. #!/usr/bin/python

改成

  1. #!/usr/bin/python.bak
  • 问答中心
  • 微信小程序扫一扫
  • weinxin
  • 微信公众
  • 微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:30   其中:访客  30   博主  0

    • avatar grolyrto lemcs

      I like this web site so much, saved to favorites.

      • avatar grolyrto lemcs

        Aw, this was a really nice post. In idea I wish to put in writing like this moreover – taking time and actual effort to make a very good article… but what can I say… I procrastinate alot and certainly not seem to get one thing done.

        • avatar check it out

          When I originally commented I clicked the -Notify me when new comments are added- checkbox and now each time a comment is added I get four emails with the same comment. Is there any way you can remove me from that service? Thanks!

          • avatar Charleston wedding photographers

            Aw, this was a really nice post. In idea I wish to put in writing like this moreover – taking time and precise effort to make a very good article… but what can I say… I procrastinate alot and by no means seem to get something done.

            • avatar Austin newborn photography

              naturally like your web site but you have to take a look at the spelling on quite a few of your posts. A number of them are rife with spelling issues and I find it very bothersome to tell the truth then again I’ll surely come back again.

              • avatar wedding photographers Lynchburg

                Great line up. We will be linking to this great article on our site. Keep up the good writing.

                • avatar newborn photographers Lynchburg

                  Utterly indited subject matter, regards for information .

                  • avatar paper shredding Roanoke

                    Woah! I’m really loving the template/theme of this blog. It’s simple, yet effective. A lot of times it’s very hard to get that “perfect balance” between superb usability and appearance. I must say you’ve done a fantastic job with this. In addition, the blog loads super fast for me on Opera. Excellent Blog!

                    • avatar auto repair shops Roanoke

                      I rattling thankful to find this internet site on bing, just what I was searching for : D also saved to bookmarks.

                      • avatar jet ski rental Smith Mountain Lake

                        I like this post, enjoyed this one thankyou for putting up.