Automatic apt upgrades

Recently noticed the following on my daily cron output:

/etc/cron.daily/apt:
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

Changed

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

To

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/network-online.target.wants/networking.service, TimeoutStartSec from 5min to 1min

Also (did this on Bionic)

systemctl disable packagekit

On Groovy

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

Uninstall unattended-upgrades

systemctl disable packagekit

Disable in file: /etc/apt/apt.conf.d/20auto-upgrades

Changed

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

To

APT::Periodic::Unattended-Upgrade "0";
cd /etc/cron.daily
chmod ugo-x apt-compat
chmod ugo-x update-notifier-common

Keywords: Ubuntu Initial Setup, apt-get, aptitude


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