关闭Ubuntu Server系统自动更新

修改配置文件 /etc/apt/apt.conf.d/10periodic 中相关设置,进行关闭即可。

$ sudo vim /etc/apt/apt.conf.d/10periodic

0 是关闭,1 是开启,将所有值改为 0

APT::Periodic::Update-Package-Lists "0"; 
APT::Periodic::Download-Upgradeable-Packages "0"; 
APT::Periodic::AutocleanInterval "0";

参考:https://blog.csdn.net/BABAJack/article/details/129301541

posted @ 2023-09-06 17:11  opencoder  阅读(441)  评论(0编辑  收藏  举报