最近家里樹莓派上的homeassistant 被折騰崩了,重新安裝過程中發現加載項“Official add-ons”里面的“samba share”、“file edit”、“Mosquitto broker”等常用組件都不能安裝。報以下錯誤:
[supervisor.docker.interface] Can't install homeassistant/aarch64-addon-samba:
12.5.1: 500 Server Error for http+docker://localhost/v1.48/images/create?
tag=12.5.1&fromImage=homeassistant%2Faarch64-addon-samba&platform=linux%2Farm64:
Internal Server Error ("Get "https://registry-1.docker.io/v2/": net/http:
TLS handshake timeout")
在網上查了很多資料,沒有一個完美解決方案。通過分析錯誤日志發現是下載docker鏡像?homeassistant/aarch64-addon-configurator時出錯。
通過以下命令手動拉取該鏡像
docker pull homeassistant/amd64-addon-configurator
成功后,然后再在加載項中安裝“Official add-ons”中的組件就沒有問題了。