How to set up Whonix Gateway autimatic updates?

Now I have a bad connection every 1-3 days, and I have to update manually with the upgrade-nonroot command, how do I set up automatic updates?

This isn’t easy due to technical difficulties. Details:

(Whonix is based on Kicksecure which inherits these limitations from Debian.)

This is possible the same way this is possible to do in Debian. applies.