ubuntu16.04安装teamviewer

从官网下载玩deb包之后安装时会有下面的提示:

zz@zz:~/Downloads$ sudo dpkg -i teamviewer_14.0.12762_amd64.deb 
(Reading database ... 217419 files and directories currently installed.)
Preparing to unpack teamviewer_14.0.12762_amd64.deb ...
Unpacking teamviewer (14.0.12762) over (14.0.12762) ...
dpkg: dependency problems prevent configuration of teamviewer:
 teamviewer depends on libqt5x11extras5 (>= 5.5) | qt56-teamviewer; however:
  Package libqt5x11extras5 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.

dpkg: error processing package teamviewer (--install):
 dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.2) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1.1) ...
Errors were encountered while processing:
 teamviewer
zz@zz:~/Downloads$

咋办呢?

先更新一下:

zz@zz:~/Downloads$ sudo apt-get update
Hit:1 http://cn.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:3 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Fetched 323 kB in 9s (35.1 kB/s)                                                                                                                                                               
Reading package lists... Done
zz@zz:~/Downloads$

然后安装teamviewer依赖的各种库,开始我不知道该怎么自动安装各种依赖的库,难道要手动一个一个的敲吗?显然不是。于是看到下面的语句明白了,就是先用dpkg -i *.deb,它如果需要依赖库的话,会产生一个列表,然后在用install -f 去自动安装列表中的依赖库,装完依赖库之后再安装teamviewer,就成功了。上面的这一段关于依赖库的解释是我瞎猜的。

zz@zz:~/Downloads$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libqt5x11extras5 qml-module-qtquick-controls qml-module-qtquick-dialogs qml-module-qtquick-privatewidgets
The following NEW packages will be installed:
  libqt5x11extras5 qml-module-qtquick-controls qml-module-qtquick-dialogs qml-module-qtquick-privatewidgets
0 upgraded, 4 newly installed, 0 to remove and 158 not upgraded.
1 not fully installed or removed.
Need to get 778 kB of archives.
After this operation, 3,474 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://cn.archive.ubuntu.com/ubuntu xenial/universe amd64 libqt5x11extras5 amd64 5.5.1-3build1 [7,876 B]
Get:2 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 qml-module-qtquick-controls amd64 5.5.1-1ubuntu1 [643 kB]
Get:3 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 qml-module-qtquick-privatewidgets amd64 5.5.1-1ubuntu1 [38.9 kB]                                                                   
Get:4 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 qml-module-qtquick-dialogs amd64 5.5.1-1ubuntu1 [89.0 kB]                                                                          
Fetched 778 kB in 8s (92.4 kB/s)                                                                                                                                                               
Selecting previously unselected package libqt5x11extras5:amd64.
(Reading database ... 217419 files and directories currently installed.)
Preparing to unpack .../libqt5x11extras5_5.5.1-3build1_amd64.deb ...
Unpacking libqt5x11extras5:amd64 (5.5.1-3build1) ...
Selecting previously unselected package qml-module-qtquick-controls:amd64.
Preparing to unpack .../qml-module-qtquick-controls_5.5.1-1ubuntu1_amd64.deb ...
Unpacking qml-module-qtquick-controls:amd64 (5.5.1-1ubuntu1) ...
Selecting previously unselected package qml-module-qtquick-privatewidgets:amd64.
Preparing to unpack .../qml-module-qtquick-privatewidgets_5.5.1-1ubuntu1_amd64.deb ...
Unpacking qml-module-qtquick-privatewidgets:amd64 (5.5.1-1ubuntu1) ...
Selecting previously unselected package qml-module-qtquick-dialogs:amd64.
Preparing to unpack .../qml-module-qtquick-dialogs_5.5.1-1ubuntu1_amd64.deb ...
Unpacking qml-module-qtquick-dialogs:amd64 (5.5.1-1ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libqt5x11extras5:amd64 (5.5.1-3build1) ...
Setting up qml-module-qtquick-controls:amd64 (5.5.1-1ubuntu1) ...
Setting up qml-module-qtquick-privatewidgets:amd64 (5.5.1-1ubuntu1) ...
Setting up qml-module-qtquick-dialogs:amd64 (5.5.1-1ubuntu1) ...
Setting up teamviewer (14.0.12762) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
zz@zz:~/Downloads$ sudo dpkg -i teamviewer_14.0.12762_amd64.deb 
(Reading database ... 217619 files and directories currently installed.)
Preparing to unpack teamviewer_14.0.12762_amd64.deb ...
Removed symlink /etc/systemd/system/multi-user.target.wants/teamviewerd.service.
Unpacking teamviewer (14.0.12762) over (14.0.12762) ...
Setting up teamviewer (14.0.12762) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.2) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1.1) ...
zz@zz:~/Downloads$

你可能感兴趣的:(linux)