Technical stuff, mostly to remind myself when I forget in a couple of months' time.

Friday, 15 January 2010

Installing Wine 1.2 in Ubuntu 9.10 (Karmic)

There is a known bug when installing Wine in Ubuntu 9.10 (Karmic), documented in this bug report.  From comments I've seen it affects upgraded installations of Ubuntu rather than fresh installations.  The log shows errors similar to this:

error: "sys.kernel.maps_protect" is an unknown key
error: "net.ipv4.ip_always_defrag" is an unknown key



Comment #11 on the above bug report solved the problem for me.  These are the steps I took:

  • Take a backup of the file /etc/sysctl.conf
  • Edit /etc/sysctl.conf (as root) and comment out the following lines by putting # in front of them (note that they are not all together in the file):

kernel.maps_protect = 1
net.ipv4.ip_always_defrag = 1
sys.kernel.maps_protect = 1


Then install Wine using your preferred method.  Once complete, uncomment the lines again and save.

I used to have Wine installed when this machine was running Jaunty but somehow Wine completely borked the upgrade from Jaunty to Karmic, necessitating a complete restore and removal of Wine.  I guess this was something to do with it.

No comments:

Post a Comment

Your Host

Husband, father, pop music anorak, guitarist