Linux is indeed a mess, yes. RPM and Deb are both awful formats stuck in the 90s, with even worse package managers on the top. Even with the legacy of those, installing a package does not involve templating a whitespace-sensitive language with a mediocre template language.
> Or all Deb issues go away if you stop using Linux?
Never had any issues with debs on FreeBSD. Or NixOS if one likes the Linux kernel.
The idea that helm is even a package manager is fanciful at best, in any case.