Wine is saying that Mono package is not installed, but I installed it with Terminal by:
sudo apt-get install mono-complete
What should I do?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityDo the following to install wine-mono
:
wine64 uninstaller
.wine KeePass.exe
still not working, even with sudo. And after trying the other answers. "Wine Mono is not installed"
wine msiexec /i wine-mono-X.Y.Z-x86.msi
however does. See my answer below for more details.
Installing .NET instead should work as well. For example by the following commands in a terminal:
sudo apt-get install winetricks
winetricks dotnet45
(base) leder@home-ryzen-desktop:~/Keepass2_portable$ wine KeePass.exe 0009:err:mscoree:CLRRuntimeInfo_GetRuntimeHost Wine Mono is not installed
Executing load_dotnet45 ------------------------------------------------------ warning: This package (dotnet45) is broken in wine-6.0.3. Broken since 5.18. See https://bugs.winehq.org/show_bug.cgi?id=49897 for more info. Use --force to try anyway. ------------------------------------------------------
Oct 12 at 8:30
Other answers were not working for me on 18.04 LTS with winehq-stable
package.
The workaround I found was to recreate wine32 and wine64 prefixes and install wine-mono on that with the automatic prompt.
# Create dir for 32 bit prefix
mkdir ~/.wine32
# destroy default configuration (64 bit prefix)
rm -rf ~/.wine
# Initial setup (create prefixes)
WINEPREFIX="$HOME/.wine32" WINEARCH=win32 wine wineboot
WINEPREFIX="$HOME/.wine" WINEARCH=win64 wine64 wineboot
# To install dotnet35 on 32-bit prefix
WINEPREFIX="$HOME/.wine32" WINEARCH=win32 winetricks dotnet35
@PSN's answer worked for me, however I was in the situation of needing to do this from a script on a remote CI machine without a user interface available.
I suggest the following solution, which worked for me:
wine msiexec /i wine-mono-7.4.0-x86.msi
.It's also possible to verify on the command line that installing Mono worked:
$ wine uninstaller --list
{47A1FA26-B71E-5325-8161-20CF885181FF}|||Wine Mono Runtime
{7426CCE2-5341-534D-BAB0-1DAEDCCE76CE}|||Wine Mono Windows Support
Side note: it's also possible to run the installer using wine start wine-mono-7.4.0-x86.msi
. While there's no graphical installer coming up for the Mono MSI on a local machine, it does not work like this on a headless machine. Fortunately wine msiexec /i wine-mono-7.4.0-x86.msi
seems to work without a display though.
You can easily download and configure with Synaptic Package Manager :
apt search mistools && sudo apt install !$
installed but still cant run KeePass
winetricks
. I'm a bit hazy on the specifics -- maybe someone else can take this clue and flesh out a step-by-step answer.