Christos Posted July 2, 2018 Posted July 2, 2018 Hi, Need to have unattended upgrades stopped and not run uppon every boot. What is the best way to do this?
guidol Posted July 2, 2018 Posted July 2, 2018 Google has found the following: https://www.garron.me/en/linux/turn-off-stop-ubuntu-automatic-update.html Using your favorite editor open the file /etc/apt/apt.conf.d/10periodic and change: APT::Periodic::Update-Package-Lists "1"; To: APT::Periodic::Update-Package-Lists "0"; That's it. Automatic update is now off. or https://askubuntu.com/questions/235278/how-can-i-stop-unattended-upgrades-from-rebooting-the-machine sudo apt-get remove unattended-upgrades Info: https://wiki.debian.org/UnattendedUpgrades https://linoxide.com/ubuntu-how-to/enable-disable-unattended-upgrades-ubuntu-16-04/ https://unix.stackexchange.com/questions/71746/can-i-disable-unattended-debian-package-updates
Christos Posted July 2, 2018 Author Posted July 2, 2018 @guidol Thanks for the links, already did that though and seen that there is a bit of difference in armbian, there are two files in armbian for periodic config (02periodic and 02-periodic) and since I know that some services might need to always be present (for any reason) in armbian, so I asked the question. The question is actually, can I totally remove the unnatended upgrades package in armbian? or what is the best method in armbian for unattended upgrades Not to run? PS. Using Xenial, legacy
Igor Posted July 2, 2018 Posted July 2, 2018 1 hour ago, Christos said: can I totally remove the unnatended upgrades package in armbian You can. They have been recently reduced down to https://github.com/armbian/build/blob/master/packages/bsp/common/etc/apt/apt.conf.d/02-armbian-periodic#L4-L10 so you might just wait for update. 1
Christos Posted July 3, 2018 Author Posted July 3, 2018 @Igor @guidol Ooops, in the latest 5.51 it looks we cannot remove only unattended-upgrades, if doing so we also lose the most useful armbian-config amongst others (armbian-config python3-software-properties software-properties-common) So, we cannot remove only unattended-upgrades? If so, if we set to "0" all options in 02-armbian-periodic, is it the same and no unattended upgrade will ever happen? ___ ____ _ ____ ____ / _ \ _ __ __ _ _ __ __ _ ___ | _ \(_) | _ \ / ___| | | | | '__/ _` | '_ \ / _` |/ _ \ | |_) | | | |_) | | | |_| | | | (_| | | | | (_| | __/ | __/| | | __/| |___ \___/|_| \__,_|_| |_|\__, |\___| |_| |_| |_| \____| |___/ Welcome to ARMBIAN 5.51 user-built Debian GNU/Linux 8 (jessie) 3.4.113-rt143-sun8i System load: 0.67 0.18 0.06 Up time: 0 min Memory usage: 6 % of 997MB IP: 192.168.1.42 CPU temp: 52°C Usage of /: 24% of 3.6G Last login: Tue Jul 3 13:48:59 2018 root@pisdr:~# apt-get remove unattended-upgrades Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: armbian-config python3-software-properties software-properties-common unattended-upgrades 0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded. After this operation, 721 kB disk space will be freed. Do you want to continue? [Y/n]
Igor Posted July 3, 2018 Posted July 3, 2018 1 minute ago, Christos said: So, we cannot remove only unattended-upgrades? If so, if we set to "0" all options in 02-armbian-periodic, is it the same and no unattended upgrade will ever happen? Yes. I'll fix dependencies later on.
Recommended Posts