1. 程式人生 > >ubuntu16.04 安裝Teamviewer13出現依賴庫出錯的解決辦法

ubuntu16.04 安裝Teamviewer13出現依賴庫出錯的解決辦法

dpkg: dependency problems prevent configuration of teamviewer:
 teamviewer depends on libqt5quick5 (>= 5.2); however:
  Package libqt5quick5 is not installed.
 teamviewer depends on qtdeclarative5-qtquick2-plugin (>= 5.2) | qml-module-qtquick2 (>= 5.2); however:
  Package qtdeclarative5-qtquick2-plugin is not installed.
  Package qml-module-qtquick2 is not installed.
 teamviewer depends on qtdeclarative5-controls-plugin (>= 5.2) | qml-module-qtquick-controls (>= 5.2); however:
  Package qtdeclarative5-controls-plugin is not installed.
  Package qml-module-qtquick-controls 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.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Errors were encountered while processing:
 teamviewer
解決辦法:

sudo dpkg --add-architecture i386

sudo apt-get update

sudo apt-get install  qtdeclarative5-qtquick2-plugin qml-module-qtquick2 qtdeclarative5-controls-plugin qml-module-qtquick-controls

這個時候libqt5quick5是安裝不上的,因為怎麼都裝不上。首先確保teamviewer已經解除安裝乾淨,因為一般在使用命令列安裝失敗時,使用sudo apt-get -f install都可能把teamviewr給解除安裝掉,或者sudo apt-get remove teamviewer。

為了安裝libqt5quick5,需要將源換成東北大學源

首先

sudo gedit /etc/apt/sources.list

將原來的都刪除,替換為

deb-src http://mirror.neu.edu.cn/ubuntu/ xenial main restricted #Added by software-properties
deb http://mirror.neu.edu.cn/ubuntu/ xenial main restricted
deb-src http://mirror.neu.edu.cn/ubuntu/ xenial restricted multiverse universe #Added by software-properties
deb http://mirror.neu.edu.cn/ubuntu/ xenial-updates main restricted
deb-src http://mirror.neu.edu.cn/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirror.neu.edu.cn/ubuntu/ xenial universe
deb http://mirror.neu.edu.cn/ubuntu/ xenial-updates universe
deb http://mirror.neu.edu.cn/ubuntu/ xenial multiverse
deb http://mirror.neu.edu.cn/ubuntu/ xenial-updates multiverse
deb http://mirror.neu.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirror.neu.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirror.neu.edu.cn/ubuntu/ xenial-security main restricted
deb-src http://mirror.neu.edu.cn/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirror.neu.edu.cn/ubuntu/ xenial-security universe
deb http://mirror.neu.edu.cn/ubuntu/ xenial-security multiverse

然後 sudo apt-get update

再安裝sudo apt-get install libqt5quick5

最後sudo dpkg -i teamviewer_13.1.8286_amd64.deb