- 切换国内镜像源,更新错误
- 我使用的debian10,国内镜像源使用清华源。国内镜像源支持参考:https://cloud.tencent.com/developer/article/1590080
- 使用命令,切换到到清华源:
```sh
echo "" >/etc/apt/sources.list
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free" >>/etc/apt/sources.list
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free" >>/etc/apt/sources.list
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free" >>/etc/apt/sources.list
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ buster/updates main contrib non-free" >>/etc/apt/sources.list
apt update
```
- 此时若出现更新错误:dost not release file.
- 解决:将"https"改为"http"