EDIT: Original title was "permanently remove 'proxmox-ve' ... touch '/please-remove-proxmox-ve'"
Why is it all packaged like this?
There's a script at
First of all, APT had already asked me if sure.
Second, when the file is there anything goes, so e.g.:
.. so it's worse than doing nothing.
Why can't one keep the configs and why doesn't it all just work...
So, why all the hocus pocus with
Why is it all packaged like this?
There's a script at
/usr/share/proxmox-ve/pve-apt-hook
that looks for /please-remove-proxmox-ve
otherwise apt remove
shows:
Code:
W: (pve-apt-hook) !! WARNING !!
W: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'!
W: (pve-apt-hook)
W: (pve-apt-hook) If you really want to permanently remove 'proxmox-ve' from your system, run the following command
W: (pve-apt-hook) touch '/please-remove-proxmox-ve'
W: (pve-apt-hook) run apt purge proxmox-ve to remove the meta-package
W: (pve-apt-hook) and repeat your apt invocation.
W: (pve-apt-hook)
W: (pve-apt-hook) If you are unsure why 'proxmox-ve' would be removed, please verify
W: (pve-apt-hook) - your APT repository settings
W: (pve-apt-hook) - that you are using 'apt full-upgrade' to upgrade your system
First of all, APT had already asked me if sure.
Second, when the file is there anything goes, so e.g.:
Code:
# apt remove proxmox-ve
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
proxmox-ve
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 27.6 kB disk space will be freed.
Do you want to continue? [Y/n] y
W: (pve-apt-hook) '/please-remove-proxmox-ve' exists, proceeding with removal of package 'proxmox-ve'
(Reading database ... 45484 files and directories currently installed.)
Removing proxmox-ve (8.1.0) ...
# apt install proxmox-ve
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
proxmox-ve
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/5,032 B of archives.
After this operation, 27.6 kB of additional disk space will be used.
/bin/sh: 1: /usr/share/proxmox-ve/pve-apt-hook: not found
E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (127)
E: Failure running script /usr/share/proxmox-ve/ave-apt-hook
.. so it's worse than doing nothing.
Why can't one keep the configs and why doesn't it all just work...
Code:
# apt download proxmox-ve
# dpkg -i proxmox-ve_8.1.0_all.deb
Selecting previously unselected package proxmox-ve.
(Reading database ... 45481 files and directories currently installed.)
Preparing to unpack proxmox-ve_8.1.0_all.deb ...
Unpacking proxmox-ve (8.1.0) ...
Setting up proxmox-ve (8.1.0) ...
# apt install proxmox-ve
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
proxmox-ve is already the newest version (8.1.0).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
# ls /usr/share/proxmox-ve/
pve-apt-hook
So, why all the hocus pocus with
if ($pkg eq 'proxmox-ve') { if ($action eq '**REMOVE**') { if (-e $check_file) {
?
Last edited: