ubuntu16.04 teamviewerのインストール

6027 ワード

公式サイトから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依存の各種ライブラリをインストールして、最初はどのように各種依存のライブラリを自動的にインストールするか分かりませんが、まさか手動で1つ1つ叩くのですか?明らかに違います.そこで次の文を見て分かりました.まず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$