For those who are facing problems in extract RAR archives, here is a solution
sudo apt-get install unrar
Unfortunately, RAR is a proprietary archive format. There aren’t very good free and native tools to create RAR archives in Ubuntu. You can try WinRar in Wine though. WinRar actually works flawlessly in Wine.
Similarly, for extracting and creating ZIP archives, you have to do:
sudo apt-get install zip unzip