Automatic apt upgrades

Recently noticed the following on my daily cron output:

Package 'mysql-common' has conffile prompt and needs to be upgraded manually

It turns out automatic upgrade of packages is turned on by default in Ubuntu LTS 12.04 Precise Pangolin!!!

So Any case, did the following to disable in file: /etc/apt/apt.conf.d/20auto-upgrades


APT::Periodic::Unattended-Upgrade "1";


APT::Periodic::Unattended-Upgrade "0";

On Xenial

Open /etc/apt/apt.conf.d/50unattended-upgrades and comment out all lines under block Unattended-Upgrade::Allowed-Origins

Uninstall unattended-upgrades

Also update /etc/systemd/system/, TimeoutStartSec from 5min to 1min

Also (did this on Bionic)

systemctl disable packagekit

Keywords: Ubuntu Initial Setup, apt-get, aptitude

QR Code
QR Code tech:linux:apt_upgrades (generated for current page)