Installing ANT on Ubuntu is fairly very simple. All We have to do is to open the terminal window. And simply run the below command.
sudo apt-get -u install ant
Once you run the command You will be prompted for the admin password and the installation begin.. Once Done simply type ANT in the terminal..
Hope this Helps.