Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5962

How to enable / disable Linux unattended-upgrades non-interactively

$
0
0

My requirement is to enable/disable the unattended-upgrades in Ubuntu all through non-interactively.

What I know is that we do have solutions like this or this but all of them suggests the same manual changes which I don't want.

So basically the command dpkg-reconfigure -plow unattended-upgrades would prompt you an interactive window to select either Yes or No and I want to bypass this.

enter image description here

And I would only prefer these trivial solutions as my last resort if we don't have any better ways of doing this -

  1. Uninstall unattended-upgrades
  2. Make string replacements in the file /etc/apt/apt.conf.d/20auto-upgrades to have the lineAPT::Periodic::Unattended-Upgrade "0"; instead of 1. And this may also require some kind of reload which I am not sure about.

Someone new to this topic and is curious what this is all about, youmay referthislink.


Viewing all articles
Browse latest Browse all 5962

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>