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

and changing

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

sudo setcap cap_sys_ptrace=eip /opt/cxoffice/bin/wineserver sudo setcap cap_sys_ptrace=eip /opt/cxoffice/bin/wine-preloader

You'll then need to edit /etc/ to contain "/opt/cxoffice/lib" (or "~/cxoffice/lib") - without the quotes - and run

sudo /sbin/ldconfig

If you use the "setcap" commands but fail to modify /etc/ and run the ldconfig command, the LD_LIBRARY_PATH will be ignored and Crossover will utterly fail to work.


For further reading about this issue:

Launchpad bug # 978678

WineHQ bug # 30410
Last modified on 2012-10-03 12:32:54 by Jack Phinney
Are you sure you want to delete this page?
Note: Any nested pages that are under this one will be moved up one level. Any attachments tied to this page will be deleted.
Move / Rename Page
Unknown Error, unable to move!
That page exists already!
One or more of the parent pages specified in new path do not exist!
/support/wiki/ /support/wiki/linux/faq/ubuntu1204
CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.
Please Wait...