• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Mister PKI

SSL Certificates * SSL Tools * Certificate Decoder

  • Buy SSL Certificates
  • Blog
  • OpenSSL
  • Keytool
  • SSL Tools
  • Donate

Ubuntu unattended upgrades

January 10, 2023 by Mister PKI Leave a Comment

Presumably, you have discovered this article because you are either searching for a way to automatically apply security upgrades to your Ubuntu servers or you have discovered a security package was upgraded without you knowing it. In my case, it was the latter. If you subscribe to a SOC (security operations center) in the cloud, you should keep an eye out for any security vulnerabilities they send your way and be ready to act accordingly. In some cases, the unattended-upgrades package in Ubuntu will save the day and act quicker than you as a sys admin may be able to.

This article is using Ubuntu 22.04.1 LTS (Jammy Jellyfish) for its examples.

In many server installs, by default, unattended-upgrades will be installed and configured for security patches. This can be extended to other upgrade types, modified to check any number of days, and turned off. For security upgrades, we recommend you leave them turned on. For all other upgrades, we will leave that to your discretion and personal requirements.

How to install unattended upgrades on Ubuntu

To install unattended upgrades if not already, run the following command:

sudo apt-get install unattended-upgrades -y

Then configure the package to run at random times with the following command:

sudo dpkg-reconfigure -plow unattended-upgrades

For more fine tuning of what will be automatically upgraded, edit the following file.

sudo vi /etc/apt/apt.conf.d/50unattended-upgrades

In that file you will find a list of update types. Likely, the security updates will be already uncommented out. If you would like the other update types also commented out, just remove the leading // comment marks.

There is another configuration file that determines how often unattended upgrades should check for new updates.

sudo vi /etc/apt/apt.conf.d/20auto-upgrades

The default is 1 day but can be changed to any number of days you need it to.

Conclusion

In conclusion, this article has demonstrated how to manage Ubuntu with unattended upgrades. Check out our other posts for more detailed articles.

linux

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Popular Posts

PKCS12

openssl s_client

Keytool

Keytool list

ECDSA vs RSA

OpenSSL

PKCS7

Certificate Decoder

Training Courses

Top online courses in IT & Software

Cyber Security Training

Udemy - The Complete Internet Security Privacy Course icon

Buy SSL Certificates

The SSL Store

Comodo Store

Sectigo Store

RapidSSL

Recent Posts

  • Ubuntu unattended upgrades
  • NetScaler ADC configuration history
  • Remove CA from Domain in Active Directory
  • pfx password
  • pkcs12

Footer

  • Twitter
  • YouTube

Pages

  • About Mister PKI
  • Blog
  • Compare and Buy Affordable PKI Certificates
  • Contact Us
  • Full Disclosure
  • Privacy Policy
  • SSL Tools – Certificate Decoder and Certificate Checker

Copyright © 2023