OPERATING SYSTEMSOS Linux

automatic updates for ubuntu unattended update

Who won’t love updating computer? Here is a simple way to configure Ubuntu to automatic updating.

Command:
Check that unattended-upgrades package is installed and running

apt install unattended-upgrades -y

systemctl start unattended-upgrades && systemctl enable unattended-upgrades

Edit configure file
nano /etc/apt/apt.conf.d/50unattended-upgrades

Enable auto upgrades
nano /etc/apt/apt.conf.d/20auto-upgrades

APT::Periodic::Update-Package-Lists “1”;
APT::Periodic::Unattended-Upgrade “1”;
APT::Periodic::AutocleanInterval “5”;

Testing
unattended-upgrades –dry-run –debug

Support channel: https://www.youtube.com/c/HeikkiKoivisto/?sub_confirmation=1

#Ubuntu #update #unattended

source

ubuntu

2 thoughts on “automatic updates for ubuntu unattended update

  • Hi, does 50unattended-upgrades also allow the reboot to specific day of week?

  • thank you but after executing everything you recommended here i continue to get this error message….
    # uname -sr
    Linux 5.13.0-25-lowlatency# apt list –upgradable
    E: Syntax error /etc/apt/apt.conf.d/50unattended-upgrades:124: Extra junk after value

Comments are closed.