]> git.proxmox.com Git - proxmox-ve.git/commit
add APT hook to prevent proxmox-ve removal
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 3 Apr 2018 07:18:08 +0000 (09:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 3 Apr 2018 07:35:43 +0000 (09:35 +0200)
commit5132916e5b10a5cd6e97e74d0028215981f5eb80
treedea6a8cd1f4aaf3c3c6bb89a90281c49f548c317
parent3980e2e59d5d450cea3c853f3d9612e29ff7e062
add APT hook to prevent proxmox-ve removal

since this happens quite regularly when users accidentally install
conflicting packages.

sample output:
$ apt remove pve-qemu-kvm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libxml-libxml-perl proxmox-widget-toolkit pve-edk2-firmware pve-i18n pve-xtermjs
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  proxmox-ve pve-container pve-ha-manager pve-ha-manager-dbgsym pve-manager pve-qemu-kvm qemu-server spiceterm
0 upgraded, 0 newly installed, 8 to remove and 0 not upgraded.
After this operation, 37.6 MB disk space will be freed.
Do you want to continue? [Y/n] y
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 you 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) and repeat your apt-get/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-get dist-upgrade' or 'apt full-upgrade' to upgrade your system
E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)
E: Failure running script /usr/share/proxmox-ve/pve-apt-hook

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
debian/apthook/10pveapthook [new file with mode: 0644]
debian/apthook/pve-apt-hook [new file with mode: 0755]
debian/proxmox-ve.install