How to stop apt from doing anything [duplicate]

Solution 1:

On my systems I did the following to take control on the system:

  1. I removed unattended-upgrades package

    sudo apt-get purge unattended-upgrades
    
  2. Disabled systemd timers, which are related to APT:

    sudo systemctl disable apt-daily-upgrade.timer
    sudo systemctl disable apt-daily.timer
    
  3. Disabled 'APT::Periodic' for sure:

    echo 'APT::Periodic::Enable "0";' | \
    sudo tee /etc/apt/apt.conf.d/99periodic-disable
    

With these steps I take full control on APT. I have never seen lock-conflicts.

Solution 2:

I removed update-manager and this stopped the automatic updating.

 sudo apt remove update-manager

This action removed

ubuntu-release-upgrader-gtk
update-notifier 
update-manager