增加 Ubuntu 关闭自动升级.

Signed-off-by: chen.yang <chen.yang@yuzhen-iot.com>
This commit is contained in:
chen.yang 2021-12-13 11:38:08 +08:00
parent 33a8ba568d
commit 97196edd41
1 changed files with 12 additions and 2 deletions

View File

@ -39,3 +39,13 @@ sudo do-release-upgrade
```
如果升级过程中出现了“Upgrade tool 404 Not Found [IP: 59.80.44.45 80]”字样错误,可以尝试修改 /etc/apt/sources.list 为国内(如清华)镜像。
## 3. 关闭自动升级
修改 /etc/apt/apt.conf.d/10periodic 文件中的 APT::Periodic::Update-Package-Lists 为零。
```bash
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
```