To install Teamviewr, Download appropriate .deb file from http://www.teamviewer.com/download
For 64 bit Ubuntu, download as,
$ wget -c https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
$ sudo dpkg -i teamviewer_amd64.deb
$ sudo apt-get -f install
$ sudo dpkg -i teamviewer_amd64.deb
$ teamviewer
In our case we are using 32 bit Ubutu, we downloaded, teamviewer_14.3.4730_i386.deb which is current (when we installed) recent version of teamviewer.
$ sudo dpkg -i teamviewer_14.3.4730_i386.deb
This will install teamviewer if all dependencies are allready installed, if not you might get an error like below,
$ sudo dpkg -i teamviewer_14.3.4730_i386.deb Selecting previously unselected package teamviewer. (Reading database ... 471110 files and directories currently installed.) Preparing to unpack teamviewer_14.3.4730_i386.deb ... dpkg: error processing package teamviewer (--install): Errors were encountered while processing: teamviewer
In that case, use below command as,
sudo apt-get -f install
which will install all dependancies and then after this try installing teamviewer will dpkg command again as,
$ sudo dpkg -i teamviewer_14.3.4730_i386.deb
sudo apt-get install -f