jdo300
October 11th, 2016, 01:28 PM
Hello All,
I'm working on a bash script to automate the installation process of wine and wine apps to deploy on several Ubuntu 14.04 machines that I am configuring. So far, I am able to manually install wine using the following commands:
sudo dpkg --add-architecture i386
echo -e '\n' | sudo add-apt-repository ppa:wine/wine-builds
sudo apt-get update
sudo apt-get -y install --install-recommends winehq-devel
Then, I run the following to install one of the apps I'm using:
wine '/home/user/Desktop/femm42bin_win32.exe'
But then a dialog box pops up saying,
Wine could not find a Mono package which is needed for .NET applications to work correctly. Wine can automatically download and install it for you.
Note: it is recommended to use your distribution's packages instead.
See http://wiki.winehq.org/Mono for details.
I also got a similar message saying that I needed to download Gecko as well. If I just follow the prompts and download the missing files, the application installs and runs fine. However, I would like to include these missing packages in my bash script so that after I manually install the applications on one machine, I can simply install the wine packages and dependencies, and then copy the .wine folder with my windows apps over to the new machine (also using the bash script).
So, I did some research on how to automate the installation of mono and gecko and came across a couple of other posts talking about this, such as
http://askubuntu.com/questions/577311/mono-package-for-wine
and
https://askubuntu.com/questions/399536/wine-1-7-9-and-mono-package
In these two posts, the people solved the problem by manually specifying the mono package and installing it along with wine, so I the modified my original procedure to the following:
sudo dpkg --add-architecture i386
echo -e '\n' | sudo add-apt-repository ppa:wine/wine-builds
echo -e '\n' | sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get -y install wine-mono4.5.6
sudo apt-get -y install wine-gecko2.40
sudo apt-get -y install --install-recommends winehq-devel
The packages all installed without problems, but when I go to install the app again, I still get the same dialog prompting me to download mono and gecko, as if it wasn't even aware that they were on the system. Thinking that the problem could be relate to the order of operations, I tried installing the mono and gecko packages first, followed by wine, but that made no difference either. Has anyone had this problem before?
Thanks,
Jason O
I'm working on a bash script to automate the installation process of wine and wine apps to deploy on several Ubuntu 14.04 machines that I am configuring. So far, I am able to manually install wine using the following commands:
sudo dpkg --add-architecture i386
echo -e '\n' | sudo add-apt-repository ppa:wine/wine-builds
sudo apt-get update
sudo apt-get -y install --install-recommends winehq-devel
Then, I run the following to install one of the apps I'm using:
wine '/home/user/Desktop/femm42bin_win32.exe'
But then a dialog box pops up saying,
Wine could not find a Mono package which is needed for .NET applications to work correctly. Wine can automatically download and install it for you.
Note: it is recommended to use your distribution's packages instead.
See http://wiki.winehq.org/Mono for details.
I also got a similar message saying that I needed to download Gecko as well. If I just follow the prompts and download the missing files, the application installs and runs fine. However, I would like to include these missing packages in my bash script so that after I manually install the applications on one machine, I can simply install the wine packages and dependencies, and then copy the .wine folder with my windows apps over to the new machine (also using the bash script).
So, I did some research on how to automate the installation of mono and gecko and came across a couple of other posts talking about this, such as
http://askubuntu.com/questions/577311/mono-package-for-wine
and
https://askubuntu.com/questions/399536/wine-1-7-9-and-mono-package
In these two posts, the people solved the problem by manually specifying the mono package and installing it along with wine, so I the modified my original procedure to the following:
sudo dpkg --add-architecture i386
echo -e '\n' | sudo add-apt-repository ppa:wine/wine-builds
echo -e '\n' | sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get -y install wine-mono4.5.6
sudo apt-get -y install wine-gecko2.40
sudo apt-get -y install --install-recommends winehq-devel
The packages all installed without problems, but when I go to install the app again, I still get the same dialog prompting me to download mono and gecko, as if it wasn't even aware that they were on the system. Thinking that the problem could be relate to the order of operations, I tried installing the mono and gecko packages first, followed by wine, but that made no difference either. Has anyone had this problem before?
Thanks,
Jason O