6

I have an installation of wine on my Ubuntu 14.04 (minimal) system (with xfce):

sudo apt-get install --no-install-recommends wine

I wanted to run .NET applications with it. When I use a GUI (File manager) to execute such an application with wine for the first time, a message from wine is displayed telling me that mono is not installed. It then prompts me to install mono for wine. If I proceed, it downloads and installs it and everything works fine, i.e., I can execute .NET applications with wine.

Now, since I want to create an automated install script for various applications (including wine and mono for wine), I was looking for a package that does what I described above, but without the GUI and, more importantly, without user interaction. I found the wine-mono0.0.8 package, which I tried to install:

sudo apt-get install --no-install-recommends wine-mono0.0.8

However, even after it is installed, wine complains that mono for wine is not installed, refusing to run .NET applications. I also tried winetricks (from the package with the same name), but not only did the installation fail - it required user interaction in the setup.

My question now is: Is there an alternative way to install wine for mono (like it does when started in a GUI for the first time), but without the need for user interaction? Alternatively, is there another package like wine-mono0.0.8 which works, i.e., makes wine recognize the mono installation?

Best regards Andreas

Braiam
  • 69,112

2 Answers2

6

Please note that the repository suggested here is deprecated. Refer to here for more information.

It seems to be a problem with the (Ubuntu) wine package. Installing both, the wine1.7 and the wine-mono4.5.4 package, from the wine PPA, works.

The steps are as follows:

  1. Remove the (Ubuntu) wine package (if it is installed): sudo apt-get remove --purge wine
  2. Add the wine PPA to the package repositories: sudo add-apt-repository ppa:ubuntu-wine/ppa && sudo apt-get update
  3. Install the wine and wine-mono packages from the PPA (adjust to newer version numbers if necessary): sudo apt-get install wine1.7 wine-mono4.5.4

Thanks to Sneether for pointing out the PPA.

Thomas Ward
  • 78,878
3

mono for wine is not installed, refusing to run .NET applications

You can try installing .NET framework it-self, e.g.

sudo apt-get install winetricks
winetricks dotnet45
kenorb
  • 10,944