In the context of this particular bug report, the applicable dependency listed in the above-mentioned wiki, and also complained about by the configure script of Wine prior to building from source, is as follows:
In my opinion, the developers of the samba-dev:i386 package should consciously make a decision whether it is absolutely necessary to leave the user with a broken installation of Ubuntu in order to properly install this package. If that is the case, then there should be an additional warning beyond merely which packages will be removed. E.g.,
WARNING: Installing samba-dev:i386 will remove packages essential to using a desktop GUI interface such as Gnome, including, but not limited to accessing the internet, submitting bug reports with apport, using a text editor such as gedit, installing packages with apt (due to no internet access), etc.
The developers of the samba-dev:i386 package should ask themselves whether it is absolutely necessary to remove things like gdm, apport, gedit, gnome desktop, etc.
There are just too many unsuspecting users of Ubuntu 22.04 LTS who will try to satisfy the dependencies of popular programs such as building Wine from source, and said users will assume that the worst that can happen is that it might be necessary to run: sudo apt remove ... or fix-broken, etc. In this case, using apt to fix anything is impossible because there is no way to download and install the packages that are being removed.
In my particular use case, I have consciously decided to build Wine from source for a variety of reasons, including, but not limited to have the benefit of the latest bug fixes and enhancements.
Q: I believe you are trying to install samba-dev:i386 in amd64 system, am I right?
A: Yes, that is correct.
The dependencies for building Wine from source are listed on the Winehq wiki page:
https:/ /wiki.winehq. org/Building_ Wine
In the context of this particular bug report, the applicable dependency listed in the above-mentioned wiki, and also complained about by the configure script of Wine prior to building from source, is as follows:
libnetapi | samba-dev | samba-devel | smbclient | Networking | Rarely needed.
In my opinion, the developers of the samba-dev:i386 package should consciously make a decision whether it is absolutely necessary to leave the user with a broken installation of Ubuntu in order to properly install this package. If that is the case, then there should be an additional warning beyond merely which packages will be removed. E.g.,
WARNING: Installing samba-dev:i386 will remove packages essential to using a desktop GUI interface such as Gnome, including, but not limited to accessing the internet, submitting bug reports with apport, using a text editor such as gedit, installing packages with apt (due to no internet access), etc.
The developers of the samba-dev:i386 package should ask themselves whether it is absolutely necessary to remove things like gdm, apport, gedit, gnome desktop, etc.
There are just too many unsuspecting users of Ubuntu 22.04 LTS who will try to satisfy the dependencies of popular programs such as building Wine from source, and said users will assume that the worst that can happen is that it might be necessary to run: sudo apt remove ... or fix-broken, etc. In this case, using apt to fix anything is impossible because there is no way to download and install the packages that are being removed.
In my particular use case, I have consciously decided to build Wine from source for a variety of reasons, including, but not limited to have the benefit of the latest bug fixes and enhancements.