auto update setting Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
User avatar
Joulinar
Posts: 5617
Joined: Sat Nov 16, 2019 12:49 am

Re: auto update setting

Post by Joulinar »

Can you check

Code: Select all

ls -la /etc/apt/apt.conf.d/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
manilx
Posts: 124
Joined: Mon Dec 07, 2020 11:02 am

Re: auto update setting

Post by manilx »

Joulinar wrote: Fri Jul 30, 2021 9:03 pm Can you check

Code: Select all

ls -la /etc/apt/apt.conf.d/

Code: Select all

drwxr-xr-x 2 root root 4096 Jul 30 01:28 .
drwxr-xr-x 7 root root 4096 Nov 26  2020 ..
-r--r--r-- 1 root root  440 Jul 30 01:28 01autoremove-kernels
-rw-r--r-- 1 root root  182 Dec 27  2020 70debconf
-rw-r--r-- 1 root root 1370 Jul 25 09:25 97dietpi
-rw-r--r-- 1 root root  212 Dec 27  2020 99-dietpi-cache
User avatar
Joulinar
Posts: 5617
Joined: Sat Nov 16, 2019 12:49 am

Re: auto update setting

Post by Joulinar »

Both your systems are on latest release 7.4?

Let's check as well following

Code: Select all

ls -la /var/tmp/dietpi/logs/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
manilx
Posts: 124
Joined: Mon Dec 07, 2020 11:02 am

Re: auto update setting

Post by manilx »

Yes, they are.

Code: Select all

drwxrwxr-x 3 dietpi dietpi    4096 Jun  4 11:49 .
drwxrwxr-x 3 dietpi dietpi    4096 Sep 10  2020 ..
-rw-r--r-- 1 root   root      5473 Sep 10  2020 dietpi-firstboot.log
-rw-r--r-- 1 root   root   1284625 Oct 20  2020 dietpi-firstrun-setup.log
-rw-r--r-- 1 root   root       322 Jul 30 19:52 dietpi-ramlog.log
-rw-r--r-- 1 root   root       156 May  8 10:15 dietpi-ramlog_disable_debug.log
drwxr-xr-t 7 root   root      4096 Jul 16 10:12 dietpi-ramlog_store
-rw-r--r-- 1 root   root      4853 Jul 25 09:25 dietpi-update.log
-rw-r--r-- 1 root   root     69524 Jul 30 01:28 dietpi-upgrade_apt.log
-rw-r--r-- 1 root   root      1073 Dec 18  2020 fs_partition_resize.log
User avatar
Joulinar
Posts: 5617
Joined: Sat Nov 16, 2019 12:49 am

Re: auto update setting

Post by Joulinar »

I see dietpi-upgrade_apt.log present. This indicates automatic apt package update is active via DietPi scripts. Can you share the file?

Let's verify config settings

Code: Select all

cat /boot/dietpi.txt | grep CONFIG_CHECK_APT_UPDATES
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
manilx
Posts: 124
Joined: Mon Dec 07, 2020 11:02 am

Re: auto update setting

Post by manilx »

Code: Select all

root@DietPi:~# cat /boot/dietpi.txt | grep CONFIG_CHECK_APT_UPDATES
CONFIG_CHECK_APT_UPDATES=2
(Guess I did miss this line previously, sorry)

Actually a bit above is the line: CONFIG_CHECK_APT_UPDATES=1
Attachments
dietpi.txt
(12.67 KiB) Downloaded 16 times
manilx
Posts: 124
Joined: Mon Dec 07, 2020 11:02 am

Re: auto update setting

Post by manilx »

Changed this:

Code: Select all

# DietPi checks for updates: Allows DietPi to check for updates on a daily basis and boot using a less 1 KiB file download.
CONFIG_CHECK_DIETPI_UPDATES=1

to:

Code: Select all

# DietPi checks for updates: Allows DietPi to check for updates on a daily basis and boot using a less 1 KiB file download.
CONFIG_CHECK_DIETPI_UPDATES=1

# Daily check for APT package updates: 0=disable | 1=check only | 2=check and upgrade automatically
# - Upgrade logs can be found at: /var/tmp/dietpi/logs/dietpi-update_apt.log
CONFIG_CHECK_APT_UPDATES=2

and deleted CONFIG_CHECK_APT_UPDATES=2 from the end of the file.

Seems OK now and I now how to disable ;)


THX!!!!!
User avatar
Joulinar
Posts: 5617
Joined: Sat Nov 16, 2019 12:49 am

Re: auto update setting

Post by Joulinar »

not sure what you mean but in the file shared, there was just a single line containing CONFIG_CHECK_APT_UPDATES=2. Which is totaly fine if you like to update apt packages automatically. Doesn't matter if it is at the end of the file or somewhere in the middle.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
manilx
Posts: 124
Joined: Mon Dec 07, 2020 11:02 am

Re: auto update setting

Post by manilx »

Joulinar wrote: Fri Jul 30, 2021 9:36 pm not sure what you mean but in the file shared, there was just a single line containing CONFIG_CHECK_APT_UPDATES=2. Which is totaly fine if you like to update apt packages automatically. Doesn't matter if it is at the end of the file or somewhere in the middle.
I just edited the file and put
# Daily check for APT package updates: 0=disable | 1=check only | 2=check and upgrade automatically
# - Upgrade logs can be found at: /var/tmp/dietpi/logs/dietpi-update_apt.log
CONFIG_CHECK_APT_UPDATES=2

after
# DietPi checks for updates: Allows DietPi to check for updates on a daily basis and boot using a less 1 KiB file download.
CONFIG_CHECK_DIETPI_UPDATES=1


And deleted the line near the end.


Cleaner now with the comments I have on the other pie.

So all good!
User avatar
Joulinar
Posts: 5617
Joined: Sat Nov 16, 2019 12:49 am

Re: auto update setting

Post by Joulinar »

ok good
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply