bannerAds
国际站
language language

产品

文档

服务与支持

菜单 

SiliCloud帮助文档中心

搜索

热门搜索词

关闭Ubuntu 自动更新

更新时间 2023-03-08 23:20  版本 v1.2
我要反馈 
收藏 我的收藏

Ubuntu 自动更新是默认开启的。
但是服务器的自动更新,有时会导致一些软件被强制重启或初始化。

如果您希望关闭Ubuntu的自动更新,请执行以下命令:

systemctl stop apt-daily.timer apt-daily.service apt-daily-upgrade.timer apt-daily-upgrade.service
systemctl mask apt-daily.service apt-daily-upgrade.service
systemctl disable apt-daily.service apt-daily-upgrade.service
systemctl disable apt-daily.timer apt-daily-upgrade.timer
systemctl daemon-reload

systemctl mask unattended-upgrades.service
systemctl stop unattended-upgrades.service

以上命令,在Ubuntu 20中,测试工作正常,其他版本有待检测。

您对该文档有什么建议?

您对该文档的评分