安装执行:
wget -O - https://get.hacs.xyz | bash -
遇到地址(0.0.0.0):
Connecting to get.hacs.xyz (172.67.132.174:443)
Connecting to raw.githubusercontent.com (0.0.0.0:443)
wget: can't connect to remote host (0.0.0.0): Connection refused
或者是Invalid argument:
bash-5.1# wget -O - https://get.hacs.xyz | bash -
Connecting to get.hacs.xyz (172.67.132.174:443)
Connecting to raw.githubusercontent.com (185.199.110.133:443)
writing to stdout
- 100% |********************************| 2473 0:00:00 ETA
written to stdout
INFO: Trying to find the correct directory...
INFO: Found Home Assistant configuration directory at '/config'
INFO: Changing to the custom_components directory...
INFO: Downloading HACS
Connecting to github.com (140.82.113.4:443)
wget: error getting response: Invalid argument
解决方法:
用域名IP查询工具,找到raw.githubusercontent.com和github.com的IP,添加到hosts中
vi /etc/hosts
|