http://expect.sourceforge.net/
I've just tried this on a 16.04, but it should work on older versions of Ubuntu as well.
http://www.activestate.com/activetcl/downloads
Download and extract the files, then cd
into the extracted directory and run ./install.sh
(with root permissions).