Ubuntu – How to enable automatic app updates

By default in  Ubuntu, updates for installed applications are not installed automatically.

This leaves the computer running outdated and potentially insecure software.

This leaves users having to regularly launch the Ubuntu Software program to check for and install any pending updates.

Instead, to automatically install these app updates you need to install and enable the unattended updates software.

The steps below show how to do this.

  1. Press Ctrl + Alt + T on your keyboard to open the terminal
  2. Run the following command to install unattended-upgrades
  3. sudo apt-get install unattended-upgrades
  4. When prompted, enter in the administrator password for the computer
  5. When the install has completed, run the following command to configure unattended-upgrades
  6. sudo dpkg-reconfigure –priority=low unattended-upgrades
  7. A message will appear which reads
    Applying updates on a frequent basis is an important part of keeping secure. By default, updates need to be applied manually using management tools. Alternatively, you can choose to have this system automatically download and install important updates.
  8. With ‘Yes’ selected, press ‘Enter’ on the keyboard
  9. In the next screen, leave the default options and press ‘Enter’ on the keyboard
  10. Close the terminal

A few things to note …

  • With the steps above, the updates will be checked and installed once a day
  • You can manually ran the updates (and see the logs) by opening the terminal Ctrl + Alt + T and running sudo unattended-upgrades -v
  • Whilst the unattended-upgrades package does allow for rebooting – by default it will not automatically reboot your computer if required by the software being installed

Was this article helpful?

Related Articles