Unattended PVE upgrade

Flix

New Member
Aug 24, 2021
4
0
1
37
Hi,

when performing a PVE update from v5 to v6 using apt dist-upgrade there is a pve-apt-hook preventing an unattended upgrade:

Bash:
!! ATTENTION !!
You are attempting to upgrade ...
...
Press Enter to continue, or C^c to abort.

This is blocking the upgrade using Ansible in my case.
Is there a way to pass an argument to apt dist-upgrade so the warning will be ignored?

Thanks
 
i have same problem with pve-hook and solve it with commenting line 82

Bash:
sed -i '82s/^/#/g' /usr/share/proxmox-ve/pve-apt-hook