本帖最后由 neroxps 于 2021-3-9 13:14 编辑
以下代码需切换到 root 账号运行
sudo -s
1. ubuntu 20.04 需要更新到最新(这个运行完需要重启系统)
apt update && apt upgrade -y
reboot
2. 检查 docker 配置是否符合 hassio 要求
检查 docker 配置 /etc/docker/daemon.json
cat << EOF > /etc/docker/daemon.json
{
"log-driver": "journald",
"storage-driver": "overlay2",
"registry-mirrors": [
"https://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn"
]
}
EOF
systemctl restart docker
3. 目前 networkmanager 是必装依赖了
apt install network-manager -y
curl -sL https://code.aliyun.com/neroxps/supervised-installer/raw/master/files/NetworkManager.conf > /etc/NetworkManager/NetworkManager.conf
[[ ! -f /etc/NetworkManager/system-connections/default ]] && curl -sL https://code.aliyun.com/neroxps/supervised-installer/raw/master/files/system-connection-default > /etc/NetworkManager/system-connections/default
systemctl restart NetworkManager.service
|