Updated on 2024-09-23 GMT+08:00

URL Domain Name Resolution Failure

Symptoms

The error message urlopen error [Errno -2] Name or service not known is displayed.

Cause Analysis

Your host fails to resolve the domain name of the release repository. As a result, the file fails to be downloaded.

Solution

If you have a DNS server, you can add the following domain names to the DNS server to resolve the domain names of the release repository:

If you do not have a DNS server, add the domain names to the hosts file on a local host so that the host can resolve the domain names of the release repository.

Take a 64-bit Windows 10 host as an example. The path of the hosts file is C:\Windows\System32\drivers\etc\.

# Singapore
devrepo.devcloud.ap-southeast-3.huaweicloud.com 114.119.184.199 
# Mexico
devrepo.devcloud.la-north-2.huaweicloud.com 110.238.85.119
devrepo.devcloud.la-north-2.huaweicloud.lat 110.238.85.119 
# Sao Paulo
devrepo.devcloud.sa-brazil-1.huaweicloud.com 119.8.87.118
devrepo.devcloud.sa-brazil-1.huaweicloud.lat 119.8.87.118