[[email protected]]#yumlist
Loadedplugins:fastestmirror,langpacks
Determiningfastestmirrors
Couldnotretrievemirrorlisthttp://mirrorlist.centos.org/?release=7&arch=x86_64&repo=fasttrack&infra=stockerrorwas
14:curl#6-"Couldnotresolvehost:mirrorlist.centos.org;Unknownerror"
Oneoftheconfiguredrepositoriesfailed(Unknown),
andyumdoesn'thaveenoughcacheddatatocontinue.Atthispointtheonly
safethingyumcandoisfail.Thereareafewwaystowork"fix"this:
1.Contacttheupstreamfortherepositoryandgetthemtofixtheproblem.
2.Reconfigurethebaseurl/etc.fortherepository,topointtoaworking
upstream.Thisismostoftenusefulifyouareusinganewer
distributionreleasethanissupportedbytherepository(andthe
packagesforthepreviousdistributionreleasestillwork).
3.Runthecommandwiththerepositorytemporarilydisabled
yum--disablerepo=...
4.Disabletherepositorypermanently,soyumwon'tuseitbydefault.Yum
willthenjustignoretherepositoryuntilyoupermanentlyenableit
againoruse--enablerepofortemporaryusage:
yum-config-manager--disable
or
subscription-managerrepos--disable=
5.Configurethefailingrepositorytobeskipped,ifitisunavailable.
Notethatyumwilltrytocontacttherepo.whenitrunsmostcommands,
sowillhavetotryandfaileachtime(andthus.yumwillbebemuch
slower).Ifitisaverytemporaryproblemthough,thisisoftenanice
compromise:
yum-config-manager--save--setopt=.skip_if_unavailable=true
Cannotfindavalidbaseurlforrepo:fasttrack/7/x86_64
[[email protected]]#ls
CentOS-Base.repoCentOS-CR.repoCentOS-fasttrack.repoCentOS-Media.repoCentOS-Sources.repoCentOS-Vault.repo
[[email protected]]#ll
total28
-rw-r--r--.1rootroot276Apr1918:33CentOS-Base.repo
-rw-r--r--.1rootroot1309Sep52019CentOS-CR.repo
-rw-r--r--.1rootroot314Apr1915:30CentOS-fasttrack.repo
-rw-r--r--.1rootroot629Apr1918:36CentOS-Media.repo
-rw-r--r--.1rootroot1331Sep52019CentOS-Sources.repo
-rw-r--r--.1rootroot6639Sep52019CentOS-Vault.repo
[[email protected]]#
分 -->
|