64

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?

kenorb
  • 9,995
  • 2
  • 78
  • 90
Steve
  • 1,033
  • 5
  • 15
  • 25
  • 2
    Wine needs the *Windows* build of Mono, which I think you can install using `winetricks`. I'm a bit hazy on the specifics -- maybe someone else can take this clue and flesh out a step-by-step answer. – Nick Weinberg Oct 26 '16 at 02:53
  • yeah I need a step-by-step answer, thanks anyway – Steve Oct 26 '16 at 02:56
  • 4
    Try looking at the official docs ... [https://wiki.winehq.org/Mono](https://wiki.winehq.org/Mono) – GrannySez Oct 26 '16 at 03:51

5 Answers5

75

Do the following to install wine-mono:

  1. Download wine-mono.msi from the official WineHQ site.
  2. Type wine64 uninstaller.
  3. Press install from the uninstaller GUI and select the downloaded .msi package.
  4. Done!
Eliah Kagan
  • 116,445
  • 54
  • 318
  • 493
PSN
  • 916
  • 10
  • 5
  • 82
    "Press install from the uninstaller" how intuitive – Alejandro Ramallo May 01 '19 at 23:42
  • With $USER, get "There is no Windows program configured to open this type of file". From $ROOT, it does see mono runtimes (I did reload because I didnt see a response). `wine KeePass.exe` still not working, even with sudo. And after trying the other answers. "Wine Mono is not installed" – alchemy Apr 17 '20 at 23:28
  • @AlejandroRamallo very well in the Windows idiom ;) – Matthieu Jun 27 '22 at 16:22
  • 1
    I get the error "There is no Windows program configured to open this type of file" – LuisAFK Jul 07 '22 at 17:31
  • 1
    Great answer, on headless machines like a CI, this doesn't work though. Using `wine msiexec /i wine-mono-X.Y.Z-x86.msi` however does. See [my answer below](https://askubuntu.com/a/1448770/734252) for more details. – sebkur Jan 04 '23 at 20:28
42

Installing .NET instead should work as well. For example by the following commands in a terminal:

sudo apt-get install winetricks
winetricks dotnet45
kenorb
  • 9,995
  • 2
  • 78
  • 90
  • I don't think it worked; nothing showed up in wine uninstaller after above. – stucash Apr 26 '19 at 17:07
  • didnt work for me either. didnt try rebooting. – alchemy Apr 17 '20 at 23:19
  • 1
    I do not want to install wine-mono b/c of the wine howto here [keepass2_wine](https://keepass.info/help/v2/setup.html#wine) But the howto does not work b/c of error: `(base) leder@home-ryzen-desktop:~/Keepass2_portable$ wine KeePass.exe 0009:err:mscoree:CLRRuntimeInfo_GetRuntimeHost Wine Mono is not installed ` – Leder Feb 14 '21 at 05:03
  • This works for me, thanks. – Yan King Yin Jul 23 '22 at 22:36
5

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

Scrooge McDuck
  • 317
  • 2
  • 11
1

@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:

  1. Download wine-mono.msi from the official WineHQ site (version 7.4.0 at the time of writing this).
  2. Type wine msiexec /i wine-mono-7.4.0-x86.msi.
  3. Done!

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.

sebkur
  • 111
  • 2
0

You can easily download and configure with Synaptic Package Manager :

  • open Synaptic and search for msitools
  • mark for installation and click apply.
damadam
  • 2,815
  • 3
  • 17
  • 38
Elias
  • 1