Ubuntu安装有道词典

来源:互联网 发布:淘宝优惠券在线制作 编辑:程序博客网 时间:2024/05/24 03:56

Ubuntu14.04安装有道词典

4585人阅读 评论(0)收藏举报
分类:

1 下载&安装

    到有道词典官网下载Linux版本的安装包youdao-dict_1.1.0-0-deepin_amd64.deb,然后使用dpkg命令安装即可:

[plain] view plain copy
  1. sudo dpkg -i youdao-dict_1.1.0-0-deepin_amd64.deb  
    此时,一般会提示依赖库缺失错误,执行下面命令,然后重新执行上面命令即可:
[plain] view plain copy
  1. sudo apt-get -f install   

    依赖错误:

[plain] view plain copy
  1. youdao-dict : Depends: qml-module-qtquick-controls but it is not installable  

    上述错误虽然不影响使用,但是再次使用apt-get install安装软件时总是提示存在上述问题,需要使用apt-get -f install来解决。执行了apt-get -f install之后有道又被删除了!

    出现上述问题,主要是开始下载的有道词典版本不对,需要在官网下载Ubuntu版本的,另外,对于Ubuntu14.04,需要先执行如下命令,再安装有道词典:

[plain] view plain copy
  1. sudo apt-get upgrade  
  2. sudo apt-get dist-upgrade  

    期间若是再提示依赖关系缺失,执行如下命令即可:

[plain] view plain copy
  1. sudo apt-get -f install  

2 运行错误

    通过上述安装后,可以在命令行终端中执行youdao-dict命令可以启动有道词典,但是很有可能会提示:

[plain] view plain copy
  1. file:///usr/share/youdao-dict/app/plugins/youdao/qml/StrokeResultWindow.qml:27:1: module "QtQuick.Controls" is not installed   
  2.      import QtQuick.Controls 1.1   

    根据参考资料[3]的提示,通过下面命令安装相应的包即可解决上述问题:

[plain] view plain copy
  1. sudo apt-get install qtdeclarative5-controls-plugin  

参考资料

[1]Ubuntu 14.04下安装有道词典

[2]ubuntu两种安装有道字典的方法

[3]QtQuick程序在ubuntu测试机上运行提示module "QtQuick.Controls" is not installed
原创粉丝点击