I used the command terminal solution but it still didn't work. Also tried using the salvage command without any success. When attempting to use the wallet from windows afterwords, Bitcoin-qt threw an error message on start-up telling me to delete all files from the bitcoin directory except for wallet.dat and then restarting bitcoin, but this brought me back to the corrupted wallet error message. I've restored the wallet back to the original ubuntu wallet for now.
Are there any third party tools that can facilitate this?
Thanks for your help!