How to enable unattended software updates on Linux Mint 17.x

Installation of software updates are very important in every operating system. We can either configure the installation of package updates manually or automatically, in Linux Mint. This tutorial explains you how to enable the installation of software package updates automatically in the Ubuntu-based editions. I'll be using this as a guide to activate unattended updates on linux mint.

  1. Open your terminal and run the update:
    sudo apt-get update
  2. Install the “unattended-upgrades” package; This is the package used to install the updated packages automatically:
    sudo apt-get install unattended-upgrades
  3. Next, the configuration file needs to be edited; To configure the unattended-upgrades edit the /etc/apt/apt.conf.d/50unattended-upgrades file and make changes according to your needs:
    sudo gedit /etc/apt/apt.conf.d/50unattended-upgrades
  4. Make the following changes to 50unattended-upgrades:
    // Automatically upgrade packages from these (origin, archive) pairs.
    Unattended-Upgrade::Allowed-Origins {
    "${distro_id} ${distro_codename}-security";
    "${distro_id} ${distro_codename}-updates";
    // "${distro_id} ${distro_codename}-proposed";
    // "${distro_id} ${distro_codename}-backports";

    // You also have to add the following two Rows,
    // otherwise you'll just update the Mint-Packages.

    "Ubuntu trusty-security";
    "Ubuntu trusty-updates";
    // And to minimize the tech support to friends and relatives on how to update :-D
    // Remove the //, so it's not a comment anymore, and the update will be done

    // when the PC is shut down.

    Unattended-Upgrade::InstallOnShutdown "true";
I've taken some notes and content from https://community.linuxmint.com/tutorial/view/1217 and the comments on that page to compose this reminder howto.

UPDATE 20160428: apt-get update error for Chrome

I updated chrome yesterday via the updates-manager. I also receive this error after running sudo apt-get update. The solution is to run the following from the terminal.

wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

And that did the trick for my Ubuntu 14.04, 16.04 and LinuxMint 17.3 systems. A big thanks to dwarfijazzer on UbuntuForums for the answer!