Ubuntu指令备忘录

# 查看请求reboot的内容
cat /var/run/reboot-required.pkgs
# 屏蔽内核自动更新
apt-mark hold linux-base linux-image-generic linux-headers-generic libssl1.1
# 重新启用内核自动更新
apt-mark unhold linux-base linux-image-generic linux-headers-generic libssl1.1
# 禁用apt自动更新
cat /etc/apt/apt.conf.d/20auto-upgrades
将1改为0
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
Edit with markdown