安装homeassistant之后,想要安装samba share插件,却一直都找不到,添加官方addons库提示Can't add core, already in the store,说明官方库是默认在repo库中的,主要是因为墙的原因,GitHub无法直接访问,加载项无法缓存到本地导致。尝试国内克隆库地址或GitHub加速站点又提示not a valid add-on repository,还是无法添加
在网上搜索一圈之后找到一个类似的问题讨论,看到别人贴的错误日志内容:
21-03-29 05:03:49 ERROR (MainThread) [supervisor.store.git] Can't clone http://github.com/hassio-addons/repository repository: Cmd('git') failed due to: exit code(128)
cmdline: git clone --depth=1 --recursive --shallow-submodules -v http://github.com/hassio-addons/repository /data/addons/git/e399101c
stderr: 'Cloning into '/data/addons/git/e399101c'...
fatal: unable to access 'http://github.com/hassio-addons/repository/': Could not resolve host: github.com
'.