1. sudo apt-get install gcc make binutils lesstif2 libc6 libc6-dev rpm libmotif3 libaio libstdc++5
2. sudo gedit /etc/apt/sources.list and add this line at the end. deb http://oss.oracle.com/debian unstable main non-free
3. sudo apt-get update
4. If you get the error “W: GPG error: http://oss.oracle.com unstable Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 2E2BCDBCB38A8516″ then do steps 5 to 7
5. wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle press enter
6. sudo apt-key add RPM-GPG-KEY-oracle press enter
7. sudo apt-get update
8. sudo apt-get install oracle-xe
9. After the installation is done, issue this command /etc/init.d/oracle-xe configure. Keep pressing ENTER to take the default. Select yes for booting when Ubuntu boots (if you want) else select no. It’ll take sometime for the system to configure the database. Wait till it’s done.