方方长长

方方长长

ubuntu关闭更新

sudo sed -i 's/1/0/g' /etc/apt/apt.conf.d/10periodic
sudo sed -i 's/1/0/g' /etc/apt/apt.conf.d/20auto-upgrades

sudo systemctl disable unattended-upgrades
sudo systemctl stop unattended-upgrades

2、阻止软件更新弹窗(眼不见为净~)
打开终端执行命令:
sudo chmod a-x /usr/bin/update-notifier
如果想恢复弹窗执行下面的命令:

sudo chmod a+x /usr/bin/update-notifier

执行:
sudo apt-mark hold linux-image-generic linux-headers-generic
如果要重新启用内核更新:
sudo apt-mark unhold linux-image-generic linux-headers-generic

ubuntu 关闭任何报错 改为 0
sudo sed -i 's/1/0/g' nano /etc/default/apport

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.