I am trying to install Wine in ubuntu 18.04, and then use Wine to install dotnet3.1 (though at this point I will settle for any version of dotnet just so I feel like some progress is made).
This is the code I am running at the moment
dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
apt-key add winehq.key
apt-get update && apt-get install -y software-properties-common
add-apt-repository ppa:cybermax-dexter/sdl2-backport
apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
apt-get update && apt install -y --install-recommends winehq-stable
# Install winetricks
wget 'https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks'
chmod +x winetricks
rm -rf ./wine
WINEARCH=win32 WINEPREFIX="/usr/src/app/prefix32" winecfg
sh winetricks dotnet45
The code up to the
Install winetricks
comment executes fine (I think). After that, the next few lines are taken from various sources online (including https://askubuntu.com/questions/177192/how-do-i-create-a-32-bit-wine-prefix, https://appdb.winehq.org/objectManager.php?sClass=version&iId=9828, https://wiki.winehq.org/Winetricks, https://wiki.winehq.org/FAQ#Does_Wine_support_.NET.3F_Should_I_install_native_.NET_in_Wine.3F, https://wiki.winehq.org/FAQ#Can_I_store_the_virtual_Windows_installation_somewhere_other_than_.7E.2F.wine.3F and others).
My expected behaviour is that dotnet install without an issue, and I can then use that to install another program that only runs on Windows. However, the documentation linked variously suggest that I need to be using a 32bit prefix to install dotnet, but no matter what I try, I simply can not get the installation to work with a 32bit prefix - it always reports
You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
I have no idea what is left to try. Please, any advice or help would be extremely gratefully recieved.
Thank you