I know this is an older post but I figured I would post a temporary, possibly dangerous solution since it might circumvent dependencies. I got this error when I downgraded proxmox-ve then tried to re-upgrade it at a later date. This likely applies to anyone having issues related to:
Code:
/bin/sh: 1: /usr/share/proxmox-ve/pve-apt-hook: not found
Which I believe is related to this patch
https://pve.proxmox.com/pipermail/pve-devel/2018-April/031338.html regarding the addition of a hook script to prevent users from messing with conflicting dependencies (which I suppose I am doing, so do this at your own risk
).
I simply created the file pve-apt-hook by executing the command
Code:
# mkdir /usr/share/proxmox-ve
# nano /usr/share/proxmox-ve/pve-apt-hook
I wrote empty lines to the script, then saved it with ctrl+o ctrl+x. I then made it executable with
Code:
chmod u+x /usr/share/proxmox-ve/pve-apt-hook
Then re-installed proxmox-ve with
and it worked. I then removed the hook file when I was done. Hope this helps somebody.