As you have version 10 or version 12 or current version. First you need to uninstall that version 10 or current installed version and install new version 11 or version 13. Uninstall version 10 or current version of your computer.
$ sudo apt-get remove teamv*
$ sudo apt-get purge teamviewer
After uninstallation of previous version, install new version using following steps. Download latest version from official teamviewer website https://www.teamviewer.com/en/download/linux/. Go to the downloaded directory and run following command.
$ sudo dpkg -i teamviewer_****.deb
$ sudo apt-get -f install