春晖饶阳 2024-08-10 18:29 采纳率: 16.7%
浏览 6

linux安装python3

img

 [root@192Python-3.6.6]#yum                              m-y instalt zlib-devel bzip2-devel openssi-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make gdb
 m-devel db4-devel libpcap-devel xz-devel libffi-devel
 Loadedplugins:fastestmirror,langpacks
 Loading mirror speedsfrom cached hostfile
 Couldnotretrievemirrorlisthttp://mirrorlist.centos.org/?release=7&arch=x8664&repo=os&infra=stockerrorwas
 14:curl#6-"Couldnotresolvehost:mirrorlist.centos.org;Unknownerror"
 One of the configuredrepositoriesfailed(Unknown),
 andyumdoesnthaveenough cacheddatato continue.Atthispointtheonly
 safe thing yum can do is fail.There are a fewways to work "fix" this:
     1.Contact theupstreamfor therepository and getthem tofixtheproblem
     2.Reconfigurethebaseurl/etc.fortherepository,topoint toaworking
        upstream.Thisismost often useful ifyouareusinganewer
        distributionreleasethanis supportedby therepository(andthe
        packages for the previous distribution release still work).
     3.Run the command with the repository temporarily disabled
     4.Disable the repository permanently,soyum won't use it by default.Yum
        will then just ignore the repository until you permanently enable it
        again or use·-enablerepo for temporary usage:
            yum-config-manager·-disable<repoid
        or
             subscription-managerrepos--disable=<repoid
     5.Configure the failing repository to be skipped,if itis unavailable.
        Note thatyumwiLl try to contact therepo.whenitrunsmostcommands,
        So will have to try and fail each time(and thus.yum will be be much
        slower).If itis a very temporary problem though,this is often a nice
        compromise                                                                                                                                    CSDN@春晖饶阳

我能ping外网还需要检查什么,或者是因为什么原因

  • 写回答

1条回答 默认 最新

  • Sherry102 2024-08-10 19:45
    关注

    centos官方已经不维护了,现在用的源是vault
    参考清华镜像,替换掉
    https://mirrors.tuna.tsinghua.edu.cn/help/centos-vault/

    评论

报告相同问题?

问题事件

  • 创建了问题 8月10日