Disable automatic upgrades by editing /etc/apt/apt.conf.d/20auto-upgrades
and setting the values of APT::Periodic::Update-Package-Lists
and APT::Periodic::Unattended-Upgrade
to 0
(0=disable). Warning: This will make Ubuntu as updateable as a bug in a piece of amber, unless you choose to update it. Most Ubuntu users would be happier if they didn't disable automatic security updates.
Open /etc/apt/apt.conf.d/20auto-upgrades
for editing in nano text editor.
sudo nano /etc/apt/apt.conf.d/20auto-upgrades
Find these two lines:
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
Replace "1"
with "0"
in both lines (0=disable).
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Unattended-Upgrade "0";
The instructions for using nano editor are always found at the bottom of every page. The only two nano keyboard shortcuts that you need to know are for WriteOut and Exit. Press the keyboard combination Ctrl+O and after that press Enter to save the file being edited. Press the keyboard combination Ctrl+X to exit nano.
That disables unattended upgrades to apt packages. To disable unattended upgrades to snap packages uninstall the snapd package with sudo apt remove snapd
. The snapd package contains a daemon and tooling that enables snap packages.