I believe you are trying to install samba-dev:i386 in amd64 system, am I right? I tried to do the same in a LXD container and it indeed removes a bunch of important packages, like ubuntu-minimal and netplan.io. However, i386 is not an officially supported architecture since Ubuntu Eoan 19.10 [1], which means that not all packages in the archive are built in i386 just a subset of them. When you try to install a package built for a foreign architecture, in this case i386 which is not fully supported, this type of thing might happen.
Regarding the apt behavior, I do not see a problem here. I got a list of all package that would be removed (including the ones I think it is important to run the system) and it asked for confirmation ([Y/n]). If you call apt in a non-interactive mode, passing -y option then that's the user choice.
TBH I do not see a real issue here. If your final goal is to use wine, it is available in the archive since Ubuntu Bionic 18.04 [2]. You could consider using the Debian package in the archive instead of compiling it by yourself, but I do understand you might have other reasons to compile it from source.
I believe you are trying to install samba-dev:i386 in amd64 system, am I right? I tried to do the same in a LXD container and it indeed removes a bunch of important packages, like ubuntu-minimal and netplan.io. However, i386 is not an officially supported architecture since Ubuntu Eoan 19.10 [1], which means that not all packages in the archive are built in i386 just a subset of them. When you try to install a package built for a foreign architecture, in this case i386 which is not fully supported, this type of thing might happen.
Regarding the apt behavior, I do not see a problem here. I got a list of all package that would be removed (including the ones I think it is important to run the system) and it asked for confirmation ([Y/n]). If you call apt in a non-interactive mode, passing -y option then that's the user choice.
TBH I do not see a real issue here. If your final goal is to use wine, it is available in the archive since Ubuntu Bionic 18.04 [2]. You could consider using the Debian package in the archive instead of compiling it by yourself, but I do understand you might have other reasons to compile it from source.
[1] https:/ /lists. ubuntu. com/archives/ ubuntu- devel-announce/ 2019-June/ 001261. html /launchpad. net/ubuntu/ +source/ wine
[2] https:/