In Ubuntu we can install teamviewer by downloading the deb package then use apt install to install it , also we can download the teamviewer tar file then extract it to run it directly.
1.Download teamviewer tar file using Firefox or command wget
2. Extract it using command tar or your gui file browser
tar xf teamviewer_amd64.tar.xz
3. Run teamviewer from command line or double clicking “teamviewer” in file browser
4. Probably you need to check if requried libaries been installed or not