Install 'dracut' -> 'You are attempting to remove the meta-package 'proxmox-ve'!'

robertogl

New Member
Dec 16, 2023
3
0
1
Hi!

I need dracut to add some drivers to the init ramdisk.

On Proxmox 8, I was able to just 'apt install dracut' and everything was fine.

On a machine running Proxmox 7, however, that command is returning:

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 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
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
It is not clear how I should proceed.

Any idea?

Thanks!
 
As far as I know, this is not supported in combination with PVE. There is therefore no solution.
 
As far as I know, this is not supported in combination with PVE. There is therefore no solution.
What do you mean? As I said, on Proxmox 8 I just run the install command and it worked. I was able to use 'dracut' after that without issues.
Maybe it was not working on Proxmox 7 though.
 
Last edited:
Dracut conflicts with initramfs-tools, which is the default initramfs management tool and is almost certainly a proxmox dependency.

Code:
bobh@mini-s1:/etc/initramfs-tools$ apt show dracut
Package: dracut
Version: 059-4
Priority: optional
Section: utils
Maintainer: Thomas Lange <lange@debian.org>
Installed-Size: 23.6 kB
Provides: linux-initramfs-tool
Depends: dracut-core (>= 059-4), dracut-core (<< 059-4+b+~)
Suggests: dracut-network
Conflicts: initramfs-tools, live-tools
Homepage: https://github.com/dracutdevs/dracut/wiki/
Tag: implemented-in::c
Download-Size: 6,540 B
APT-Sources: http://deb.debian.org/debian bookworm/main amd64 Packages
Description: Initramfs generator using udev
 This package builds a bootable initramfs for Linux kernel packages.  The
 initramfs is loaded along with the kernel and is responsible for
 mounting the root filesystem and starting the main init system.

You can add modules to the initramfs by editing /etc/initramfs-tools/modules and doing "update-initramfs -u". You don' t need dracut for that.
 
  • Like
Reactions: robertogl
Dracut conflicts with initramfs-tools, which is the default initramfs management tool and is almost certainly a proxmox dependency.

Code:
bobh@mini-s1:/etc/initramfs-tools$ apt show dracut
Package: dracut
Version: 059-4
Priority: optional
Section: utils
Maintainer: Thomas Lange <lange@debian.org>
Installed-Size: 23.6 kB
Provides: linux-initramfs-tool
Depends: dracut-core (>= 059-4), dracut-core (<< 059-4+b+~)
Suggests: dracut-network
Conflicts: initramfs-tools, live-tools
Homepage: https://github.com/dracutdevs/dracut/wiki/
Tag: implemented-in::c
Download-Size: 6,540 B
APT-Sources: http://deb.debian.org/debian bookworm/main amd64 Packages
Description: Initramfs generator using udev
 This package builds a bootable initramfs for Linux kernel packages.  The
 initramfs is loaded along with the kernel and is responsible for
 mounting the root filesystem and starting the main init system.

You can add modules to the initramfs by editing /etc/initramfs-tools/modules and doing "update-initramfs -u". You don' t need dracut for that.
This seems to have worked!

Thank you!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!