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