WSL部署hass开发环境的报错与解决 执行script/setup中的Dockerfile.dev时报错:using the flag --use-deprecated=legacy-resolver 解决:删除了Dockerfile.dev文件中的两处--use-deprecated=legacy-resolver配置
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
3.更新软件列表:
sudo apt-get update
Package 'homeassistant' requires a different Python: 3.8.10 not in '>=3.9.0'解决:安装新版本
apt install python3.9
修改默认版本:
sudo ln -f /usr/bin/python3.9 /usr/bin/python3
执行script/setup时报错:Failed building wheel for ciso8601
[homeassistant.util.package] Unable to install package pyotp==2.6.0: ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/home/lith/hass/venv/lib/python3.9/site-packages/pyotp'