安装teamviewer失败 更换本地源

邮差的信 提交于 2020-03-23 18:09:20

3 月,跳不动了?>>>

执行 sudo get-apt install -f 也安不上,试试更换sources.list,有时可行

 

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!