Oracle Database Express Edition 11gR2 may require up to a 2GB (2095100 KB) swap partition, Enter the following command in terminal to verify your swap space: cat /proc/meminfo | grep -i swap
Here is the step by step guide for Installing Oracle Database Express Edition 11g Release 2 on Ubuntu 12.10