突然SystemTap、crash、eBPF都不太正常,无意中发现"uname -r"从5.15.0-48-generic升到5.15.0-50-generic,坑我。很多研究性质的VM并不想自动升级,包括安全补丁,应该禁用自动升级。
参看
Disable Automatic Updates on Ubuntu 22.04 Jammy Jellyfish Linux - Korbin Brown [2022-04-21]
https://linuxconfig.org/disable-automatic-updates-on-ubuntu-22-04-jammy-jellyfish-linux
$ cat /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
这是缺省内容,改成
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "0";
上面是CLI方式,也可以GUI禁用。
Software & Updates
Updates
Automatically check for updates
Daily (Default)
Never
When there are security updates
Download and install automatically (Default)
Display immediately
When there are other updates
Display weekly (Default)
Display every two weeks
Notify me of a new Ubuntu version
For long-term support versions (Default)
Never
原文始发于微信公众号(青衣十三楼飞花堂):Ubuntu 22禁用自动升级
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论