在Teamviewer 网站下载 ubuntu 版本
https://www.teamviewer.cn/cn/download/linux/
安装
sudo dpkg -i teamviewer_15.6.7_amd64.deb
但是这样会安装不成功,输出如下:
Selecting previously unselected package teamviewer.
(Reading database ... 232781 files and directories currently installed.)
Preparing to unpack teamviewer_15.6.7_amd64.deb ...
Unpacking teamviewer (15.6.7) ...
dpkg: dependency problems prevent configuration of teamviewer:
teamviewer depends on libqt5qml5 (>= 5.5) | qt56-teamviewer; however:
Package libqt5qml5 is not installed.
Package qt56-teamviewer is not installed.
teamviewer depends on libqt5quick5 (>= 5.5) | qt56-teamviewer; however:
Package libqt5quick5 is not installed.
Package qt56-teamviewer is not installed.
teamviewer depends on libqt5webkit5 (>= 5.5) | qt56-teamviewer; however:
Package libqt5webkit5 is not installed.
Package qt56-teamviewer is not installed.
teamviewer depends on qml-module-qtquick2 (>= 5.5) | qt56-teamviewer; however:
Package qml-module-qtquick2 is not installed.
Package qt56-teamviewer is not installed.
teamviewer depends on qml-module-qtquick-controls (>= 5.5) | qt56-teamviewer; however:
Package qml-module-qtquick-controls is not installed.
Package qt56-teamviewer is not installed.
teamviewer depends on qml-module-qtquick-dialogs (>= 5.5) | qt56-teamviewer; however:
Package qml-module-qtquick-dialogs is not installed.
Package qt56-teamviewer is not installed.
teamviewer depends on qml-module-qtquick-window2 (>= 5.5) | qt56-teamviewer; however:
Package qml-module-qtquick-window2 is not installed.
Package qt56-teamviewer is not installed.
teamviewer depends on qml-module-qtquick-layouts (>= 5.5) | qt56-teamviewer; however:
Package qml-module-qtquick-layouts is not installed.
Package qt56-teamviewer is not installed.
dpkg: error processing package teamviewer (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Errors were encountered while processing:
teamviewer
依赖的版本有问题,此时我们强制安装依赖
sudo apt-get install -f
Err:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 libqt5qml5 amd64 5.9.5-0ubuntu1.1
504 Gateway Timeout [IP: 117.128.6.34 80]
Fetched 14.3 MB in 26s (550 kB/s)
E: Failed to fetch http://117.128.6.34/cache/us.archive.ubuntu.com/ubuntu/pool/universe/q/qtdeclarative-opensource-src/libqt5qml5_5.9.5-0ubuntu1.1_amd64.deb?ich_args2=472-09164414014799_763a31f88a4fb91de050fa0473f8d017_10001002_9c896d2dd1caf3d39139518939a83798_8adf71f1458d1463dad45c4e51eeee79 504 Gateway Timeout [IP: 117.128.6.34 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
此时update 一下尝试
sudo apt-get update
然后继续
sudo apt-get install -f
此时就应该没有问题了,按住teamviewer
sudo dpkg -i teamviewer_15.6.7_amd64.deb
(Reading database ... 233408 files and directories currently installed.)
Preparing to unpack teamviewer_15.6.7_amd64.deb ...
Removed /etc/systemd/system/multi-user.target.wants/teamviewerd.service.
Unpacking teamviewer (15.6.7) over (15.6.7) ...
Setting up teamviewer (15.6.7) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...