sudo nano /etc/apt/sources.list
#deb [url=http://http.debian.net/debian/]http://http.debian.net/debian/[/url] stretch main contrib non-free
#deb-src [url=http://http.debian.net/debian/]http://http.debian.net/debian/[/url] stretch main contrib non-free
#deb [url=http://security.debian.org/]http://security.debian.org/[/url] stretch/updates main contrib non-free
#deb-src [url=http://security.debian.org/]http://security.debian.org/[/url] stretch/updates main contrib non-free
#deb [url=http://http.debian.net/debian/]http://http.debian.net/debian/[/url] stretch-updates main contrib non-free
#deb-src [url=http://http.debian.net/debian/]http://http.debian.net/debian/[/url] stretch-updates main contrib non-free
deb [url=http://mirrors.ustc.edu.cn/debian/]http://mirrors.ustc.edu.cn/debian/[/url] stretch main non-free contrib
deb [url=http://mirrors.ustc.edu.cn/debian/]http://mirrors.ustc.edu.cn/debian/[/url] stretch-updates main non-free contrib
deb [url=http://mirrors.ustc.edu.cn/debian/]http://mirrors.ustc.edu.cn/debian/[/url] stretch-backports main non-free contrib
deb-src [url=http://mirrors.ustc.edu.cn/debian/]http://mirrors.ustc.edu.cn/debian/[/url] stretch main non-free contrib
deb-src [url=http://mirrors.ustc.edu.cn/debian/]http://mirrors.ustc.edu.cn/debian/[/url] stretch-updates main non-free contrib
deb-src [url=http://mirrors.ustc.edu.cn/debian/]http://mirrors.ustc.edu.cn/debian/[/url] stretch-backports main non-free contrib
deb [url=http://mirrors.ustc.edu.cn/debian-security/]http://mirrors.ustc.edu.cn/debian-security/[/url] stretch/updates main non-free contrib
deb-src [url=http://mirrors.ustc.edu.cn/debian-security/]http://mirrors.ustc.edu.cn/debian-security/[/url] stretch/updates main non-free contrib
务必保留 asus自己的源
deb [url=http://tprd.asus.com:8000]http://tprd.asus.com:8000[/url] stretch main contrib non-free
deb-src [url=http://tprd.asus.com:8000]http://tprd.asus.com:8000[/url] stretch main contrib non-free
更换deb源
sudo nano /etc/apt/sources.list.d/linaro-overlay-repo.list
缺省为:
deb [url=http://repo.linaro.org/ubuntu/linaro-overlay]http://repo.linaro.org/ubuntu/linaro-overlay[/url] stretch main
deb-src [url=http://repo.linaro.org/ubuntu/linaro-overlay]http://repo.linaro.org/ubuntu/linaro-overlay[/url] stretch main
更换为:
deb [url=http://mirrors.tuna.tsinghua.edu.cn/debian/]http://mirrors.tuna.tsinghua.edu.cn/debian/[/url] stretch main ui
PS:使用以上方法操作后不用再修改armhf-hassio-supervisor
倘若采用以下方法(区别在-m 后的参数:armhf or armv7l)则部署完毕之后需要修改一下docker中hassio-supervisor的环境参数(HASSIO_DOCKER="$DOCKER_REPO/armhf-hassio-supervisor")详细操作请参照【12、修改hassio_supervisor参数】完成
12、修改hassio_supervisor参数
在portainer中打开 Containers-hassio_supervisor并点击Duplicate/Edit
修改Env选项卡下的HOMEASSISTANT_REPOSITORY
修改值:homeassistant/armhf-homeassistant:latest
然后点击Deploy the contriner,关掉Always pull the image,再点击replace
查看HOMEASSISTANT_REPOSITORY选项
显示homeassistant/armhf-homeassistant:latest 表示已修改成功
13、看到如下信息表示homeassistant安装顺利完成:
18-06-18 11:05:57 INFO (SyncWorker_3) [hassio.docker.homeassistant] Start homeassistant homeassistant/armhf-homeassistant:latest with version 0.72.0b2
18-06-18 11:06:37 INFO (MainThread) [hassio.homeassistant] Detect a running Home-Assistant instance
18-06-18 11:06:37 INFO (MainThread) [hassio.addons] Startup application run 0 addons
18-06-18 11:06:37 INFO (MainThread) [hassio.tasks] All core tasks are scheduled
18-06-18 11:06:37 INFO (MainThread) [hassio.core] Hass.io is up and running