Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] How to: easy updates on a PC ?

If none of the specific sub-forums seem right for your thread, ask here.
Message
Author
Random_Troll
Posts: 444
Joined: 2023-02-07 13:35
Been thanked: 105 times

Re: [SOLVED] How to: easy updates on a PC ?

#21 Post by Random_Troll »

f.r3d wrote: 2023-05-31 12:07How do you set it up manually so that it starts at boot up?
Run this command as root:

Code: Select all

systemctl edit apt-daily{,-upgrade}.timer
Then add this to the override files:

Code: Select all

[Timer]
OnCalendar=
OnBootSec=15min
RandomizedDelaySec=
Then save the file and run

Code: Select all

systemctl daemon-reload
systemctl restart apt-daily{,-upgrade}.timer
Jeder nach seinen Fähigkeiten, jedem nach seinen Bedürfnissen.

User avatar
f.r3d
Posts: 75
Joined: 2016-07-28 16:39
Location: France
Has thanked: 4 times

Re: [SOLVED] How to: easy updates on a PC ?

#22 Post by f.r3d »

@Random_Troll Here is my configuration now for apt-daily.timer and apt-daily-upgrade.timer:

Code: Select all

[Timer]
OnCalendar=
OnBootSec=15min
RandomizedDelaySec=0
One thing I've learned, through several hours of hit and miss, is that If you want unattended-upgrades to run on battery mode, you need to first to modify /etc/apt/apt.conf.d/50unattended-upgrades and uncomment the line

Code: Select all

Unattended-Upgrade::OnlyOnACPower "false";
but you also need to execute:

Code: Select all

sudo systemctl edit apt-daily.service
and

Code: Select all

sudo systemctl edit apt-daily-upgrade.service
In both files, you must apply the following modification:

Code: Select all

ConditionACPower=
The condition needs to remain empty to ignore AC power status check.
Debian 11 Gnome 64bit
Thinkpad T460
4X Intel Core i7-6600U / 8GB Ram / Intel HD Graphics 520 / 256GB SSD /

Post Reply