Add the repository address to the system (change editor name, here I am using Mousepad)
sudo mousepad /etc/apt/sources.list.d/teamviewer.list
Add software repository address in the file,
deb https://linux.teamviewer.com/deb stable main
Save and close the file.
Add the repository key,
wget -O - https://download.teamviewer.com/download/linux/signature/TeamViewer2017.asc | apt-key add -
sudo apt update
sudo apt install teamviewer
The software will appear on Applications > Internet after the successful installation.