Windows Applications fail to launch in Ubuntu 12.04
There's currently a bug between Ubuntu and Wine that prevents many windows apps from properly launching, particularly if internet connectivity is required.
The symptoms vary - Internet Explorer will repeatedly download a "runonce" file and never actually launch, Star Trek Online will flag an Internet Explorer error and the login screen will never correctly draw, Star Craft II will fail on login. Some other apps (Such as the third-party "Warband Script Enhancer" for Mount & Blade: Warband) will give a "failed to write remote process memory for library string" error.
If you suspect you're suffering from this problem, run the following command in terminal:
echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope
and then try launching your Application, again. If this works, you can make this change permanent by editing the ptrace conf file in sysctl:
sudo gedit /etc/sysctl.d/10-ptrace.conf "gedit" can be replaced with your text editor of choice
kernel.yama.ptrace_scope = 1
kernel.yama.ptrace_scope = 0
If you don't wish to make this change permanent, you'll just need to run the first command, above, after each reboot of your machine.
Another potential solution which avoids setting ptrace to 0 is to grant wineserver ptrace capabilities via
We're rebels. We're misfits. But mostly, we're software liberators. And we're very, very good at what we do. We have to be. Lots of developers work with open source, but only a tiny fraction of those are good enough to get software that was designed for one platform to work on another one. We invented CrossOver software - a unique approach to cross-platform compatibility that does not require dual-boot or another OS license. We launched PortJump to help app and game developers broaden their market beyond Windows® users. And we launched ExecMode to help organizations solve really ugly technical challenges.