Solve the yum command to see [Errno 14] curl #6-"Couldn't resolve host ..."
When installing svn, an error is reported that an address cannot be accessed.
# Yum list | grep subversion
[Plain] view plaincopy
- Response-"Couldn 'tresolvehost' opensource .wandisco.com '"
- Attempting other images.
- Oneoftheconfiguredrepositoriesfailed (WandiscoSVNRepo ),
- Andyumdoesn' thaveenoughcacheddatatocontinue. Atthispointtheonly
- Safethingyumcandoisfail. Thereareafewwaystowork "fix" this:
- 1. Contacttheupstreamfortherepositoryandgetthemtofixtheproblem.
- 2. Reconfigurethebaseurl/etc. fortherepository, topointtoaworking
- Upstream. Thisismostoftenusefulifyouareusinganewer
- Distributionreleasethanissupportedbytherepository (andthe
- Packagesforthepreviousdistributionreleasestillwork ).
- 3. Disabletherepository, soyumwon 'tuseitbydefault. Yumwillthen
- Justignoretherepositoryuntilyoupermanentlyenableitagainoruse
- -- Enablerepofortemporaryusage:
- Yum-config-manager -- disableWandiscoSVN
- 4. Configurethefailingrepositorytobeskipped, ifitisunavailable.
- Notethatyumwilltrytocontacttherepo. whenitrunsmostcommands,
- Sowillhavetotryandfaileachtime (andthus. yumwillbebemuch
- Slower). Ifitisaverytemporaryproblemthough, thisisoftenanice
- Compromise:
- Yum-config-manager -- save -- setopt = WandiscoSVN. skip_if_unavailable = true
- Failure: repodata/repomd. xmlfromWandiscoSVN: [Errno256] Nomoremirrorstotry.
- Response-"Couldn 'tresolvehost' opensource .wandisco.com '"
In the Domain Name Server Configuration, add 8.8.8.8 to solve the problem: [plain] view plaincopy
- # Vi/etc/resolv. conf
- # GeneratedbyNetworkManager
- Nameserver8.8.8.8
- Nameserver211.155.23.88
- Nameserver211.155.27.88