Ubuntu中使用有道词典

网易官方发布Linux版有道词典已经有一段时间了,今天才准备安装使用一下。 官方下载地址:http://cidian.youdao.com/index-linux.html

安装说明及问题解决:官方已经提供了适用于Ubuntu的deb包,并且说支持14.10及以上版本,其实14.04也是支持的(更低的版本我还没有测试,但应该也是支持的),官方也给了安装说明。不过我安装的时候遇到一些问题(14.04和15.04中均遇到了),安装了以后,点击图标,没有反应。从终端启动,才发现报如下错误:No module named 'PyQt5.QtWebKitWidgets。 很显然,这是缺少某些包导致的。解决方法很简单,安装缺少的包即可:

allan@NYC:~$ sudo apt-get install python3-pyqt5.qtwebkit python3-pyqt5.qtquick

这样以后就可以启动了,但是如果从终端启动,发现还是会报如下错误:module "QtQuick.Controls" is not installed。OK,继续装两个包就好了:

allan@NYC:~$ sudo apt-get install qtdeclarative5-controls-plugin qtdeclarative5-quicklayouts-plugin

这样安装就没什么问题了。虽然和Windows版的还有差距,但也算Linux下比较好用的词典了。

请输入图片描述

PS:如果安装好以后启动报如下错误(从Terminal启动可以看到错误):

allan@NYC:~$ youdao-dict 
Traceback (most recent call last):
  File "/usr/bin/youdao-dict", line 27, in <module>
    from dae.daeclient import DAEClient
  File "/usr/share/youdao-dict/dae/daeclient.py", line 36, in <module>
    from dae.window import Window
  File "/usr/share/youdao-dict/dae/window.py", line 30, in <module>
    from dae.shadowwindow import ShadowWindow
  File "/usr/share/youdao-dict/dae/shadowwindow.py", line 28, in <module>
    import dae.xutils as xutils
  File "/usr/share/youdao-dict/dae/xutils.py", line 25, in <module>
    ewmh = EWMH()
  File "/usr/share/youdao-dict/dae/ewmh.py", line 50, in __init__
    self.display = _display or display.Display()
  File "/usr/lib/python3/dist-packages/Xlib/display.py", line 80, in __init__
    self.display = _BaseDisplay(display)
  File "/usr/lib/python3/dist-packages/Xlib/display.py", line 62, in __init__
    display.Display.__init__(*(self, ) + args, **keys)
  File "/usr/lib/python3/dist-packages/Xlib/protocol/display.py", line 129, in __init__
    raise error.DisplayConnectionError(self.display_name, r.reason)
Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'No protocol specifiedn'

输入命令xhost +即可解决。为了永久性解决,可以将这条命令加到开机启动里面。


已有 18 条评论

  1. rx

    This article is really a nice one it assists new net people, who are
    wishing in favor of blogging.

    rx 回复
  2. http://movies.snowdenfullmovie.com

    Viacom's lawsuit seeks $1 billion — not $100 billion.

  3. nettoyage de clinique

    Avec une expérience de plusieurs années sur la marché, G.E.M est aujourd’hui een mesure de répondre à des demsndes spécifiques liées aux particularités de l’activité ddu client.

    Elle a développé un savoir-faire sectoriel qui lui permet d’offrir
    des techniques pointues et adaptées au secteur d’activité dans lequel elle intervient.

    G.E.M MÉNAGE
    1 Entretien ménager
    Pour vos besoins d’entretien ménager, faites confiance à G.E.M Ménage, spécialiste du nettoyage industriel et résidentiel à Montréal.
    Grâce à une expertise reconnue dans le domaine, c’est une structure qui saura mettre à votre service unne équipe dde professionnels chevronnés et rompus à la tâche.
    L’objectif: rendre propre vos locaux de bureaux et résidences.

    2 Femme de ménage
    Vous avez besoin d’une femme de ménage pour vos travaux de nettoyage ?

    G.E.M Ménage vous propose un personnel recruté de manière très rigoureuuse afin de vous offrir la meilledure qualité de service.
    Les femmes de ménage de G.E.M Ménage ontt le sens de la propreté eet du détail.

    3 Ménage
    Le ménage de vos locaux de bureaux ouu dee votre commerce est un élément non négligeable.
    Il est alors important dee confier la tâche à un professionnel
    qui saura vous fournir un service de qualité., G.E.M Ménage
    spécialiste du nettoyage industriel et commercial à Montréal,
    vous fournit un servvice de qualité.

    4 Ménage Montréal
    Bénéficiez de la meilleure expertise pour vos besoins de ménage Montréal chez
    G.E.M Ménage. Grâce à une équipe de qualité et des matériaux adaptés, c’est uun professionnel quui prend en compte le
    nettoyage de vos bureaux, commerces et résidences à un prix avantageux.

    Simplifiez-vous la vie et gagnez en tranquillité.

    Que ce soit pour une intervention ponctuelle ou poir une collaboration sur le long terme,
    le nivedau d’exigence et de professionnalisme dispensé par les agents de G.E.M
    Québec reste le même ! En effet, c’est ce souci du détail et dde l’approche qualitative qui fait aujourd’hui la force de l’entreprise de nettoyage.

    Nogre savoir-faire enn nettoyage ainsi que notre expérience permettent de vous offrir
    des résultats inégalés, à prix plus que compétitif.

    Tout au long de votre relation avec G.E.M ménage, vous êtes suivis par un responsable clientèle dédié,
    qui est le garant de votre satisfaction. Il vous appellera régulièrement pour suivre la qualité des prestations effectuées et assurer votre entière satisfaction.
    Pourr toutes demandes d’intervention, les techniciens vous
    proposent des devis gratuits et ssur mesuree en moins de 48 heures !

    Notre expérience et nore maîtrise de la méthode vous assutent le meilleur
    nettoyage à tout coup. Laissez-vous étonner par la
    puissance de notre nettoyage pour entretenir vos locaux !
    Faites confiance à nos spécialistes de nettoyage et confiez vos locaux à nos
    experts réputés contactez-nous dès aujourd’hui !

    nettoyage de clinique 回复
  4. best steroids

    Great post. I am dealing with some of these issues
    as well..

    best steroids 回复
  5. Song Merger

    Ƭoday, I went to the beachfront with my chiⅼdren. І found a sea sһell and gaᴠee itt to my 4
    year οⅼd daugһter and said "You can hear the ocean if you put this to your ear." She placed the shell to herr ear
    and screamed. There was a hermit crab inside and
    it pinched her ear. She never wants to go back!
    LoL I know thіs is totally off topic but I had to tell someone!

    Song Merger 回复
  6. http://atumnews.ru/user/Ionatruchanas3/

    Fаntɑstic goods from you, man. I've understand your stuff previous to and you
    are just extremely great. I realⅼy like what you have acquired here, really like
    what you're saying aand thе way in which you saу it.Уou make it entertaining and you still take care of to keep it sеnsible.
    I can not wait to read much more ffrom you.

    Thiѕ іs actually a wonderful web site.

  7. combine songs

    hello!,I lіke your writing so a lot! percentage
    wee commսnicɑte extra about your post on AOL? I need a specialist on this area to unraѵel my problem.

    Mаybe that is you! Taкing a look аhead to see you.

    combine songs 回复
  8. Jeux De Bébé Gratuits

    N'essayez pas de réveiller votre enfant.

    Jeux De Bébé Gratuits 回复
  9. wonderwomanffull.net

    Metro-Goldwyn-Mayer Studios will kick off the partnership by posting episodes
    of its decade-old American Gladiators” program to YouTube, along with full-length
    action films like Bulletproof Monk” and The Magnificent Seven” and clips from well-liked motion pictures like Legally Blonde.” These will be free to watch, with ads operating alongside the video.

    wonderwomanffull.net 回复
  10. SEA

    Could web designing be a profession alternative for you?
    Is your absence of information about internet site design and style avoiding you from attaining personalized goals?

    If you answered indeed to these concerns, you have appear to the correct spot!
    This write-up will give you some suggestions so that you can start off planning a wonderful web site.

    Search at the web site you are creating in a lot of distinct browsers.

    Your material might show quite otherwise to buyers using alternate browsers.
    So preserve up with the most current browsers an check them out and check out your site on them.

    You might also ship people you know with other functioning methods to see if their browser
    performs like yours.

    Make sure all of your webpages truly have titles, and make sure they are descriptive.
    A surprising amount of webpages out there are referred to as "untitled doc"
    or "new doc". This not only denies visitors a beneficial piece of info to remember your site, but also totally destroys your
    Search engine marketing, given that search engines
    weight page titles intensely when position websites.

    You internet site ought to be effortless to scan. Most
    individuals do not study all the textual content on a internet
    site instead, they scan for exciting tidbits.
    Split your website page into a variety of sections utilizing specialised or emphasized text, this sort of as daring or italics.
    In addition, be confident to maintain key information towards the best portion of the page.
    Undertaking all this tends to make your visitors' encounter much
    more enjoyable due to the fact they can locate the
    information they want with out any problems.

    Keep your education and learning ongoing. Web sites are continually altering, every
    single day, and if you end learning new issues, you might uncover oneself falling guiding the pack with your patterns.
    Try out to persuade oneself to find out one new issue every day, be it programming a new track record, or a basic HTML set up.

    Learning some basic HTML will support you include some intriguing extras to your site.

    For example, you can have phrases that stick
    to your cursor, or a banner that flashes crucial details.

    Make sure to change the colours and fonts from time to time,
    so you appear more associated with the world wide web
    website and its style.

    Meta tags used on every single website page of your web site, can increase website visitors to your

    This is an crucial design and style thought.
    Obtaining meta tags that are quality will

    help present the lookup engines what your web site is about.

    If you do not have excellent meta tags that explain your site
    nicely, you are not heading to entice several visitors to your website.

    Try out obtaining a obvious and constant format in the design of your web sites.
    Thoroughly clean layouts that make use of a good
    deal of white room are likely to improve the site's readability and total seem.
    The layout should be concentrated on the articles.
    Consider using fonts that are on each and every personal computer in purchase to
    stay away from possessing your web site look incorrectly.

    Often verify for links that are broken. Complete your mistake check
    out before uploading your website and going live. If your site visitors
    can not access the information they want since of broken hyperlinks,
    they will get discouraged and go away. You can prevent this by regularly examining that all backlinks nonetheless perform.

    To assist you style a excellent web site, you need to have to make
    it so it is basic to navigate. Navigation encompasses almost everything and is the spine of your internet site.
    So build a internet site that flows easily from one particular
    region to another, in any other case your website will be extremely perplexing and individuals will not
    go to it.

    Make positive you are usually on the lookout for as much data as you can grasp your thoughts around when you're acquiring into web design and style.
    There normally isn't really everything that you
    can understand that isn't really likely
    to advantage you in world wide web style, unless of course the information you learn isn't
    really correct so be informed of this.

    Concentrate on how you strategy to handle interaction as
    you happen to be developing a website. Do you have a shout box on the web
    site? Maybe you have a forum or some sort of chat

    At the really minimum, nevertheless, you need to have some strategy by which a visitor can make

    with you. You cannot continue to be shut-off from conversation.

    Never overuse graphics. Pictures and other exciting graphics can be enjoyable and visually pleasing, but preserve in thoughts that people items take
    a lengthy time to load on a internet site visitor's laptop.

    Opinions are also various, so what you think is a fantastic visible contact might be unattractive to an individual

    Hold graphics easy and web site guests will better concentrate on your products, providers,

    content material.

    Be positive your error web pages are truly educational.
    When a man or woman clicks on a broken or moved url, they
    will be taken to an error website page. Design your mistake pages so
    that you give a visitor a cause they could have gotten that error, along with a website link to your property webpage so
    that they continue being on your internet site.

    Attract principle sketches of the way you want the search of your website to be.
    People around you can give worthwhile enter if they see the proposed style before you
    implement it on the internet.

    Make confident that you consist of an "About Us" webpage on your website as you
    are designing it. Do not just add blocks of text that are dull to read - Jazz it up a bit!

    Give history information, maybe contain some photos of you
    as you operate towards acquiring to the stage exactly where you are at these days.

    If your site is intended for commercial use, a
    web web hosting support that is totally free is not a excellent

    If you choose to go this route you will run the chance of possessing

    ton of ad put on your web site, and this will undoubtedly distract consumers who are

    coming to check out your product. You will be significantly far better off
    to use a hosting services that you have compensated for.

    Now that you are much more educated on web design, do you believe you can build a web site?
    If you don't, then think about rereading this post, learning far more somewhere else and practicing
    what you have learned.

    SEA 回复
  11. Jamika

    At 5 mph, the wheelchair can run for four.five hours,
    which the students say is a variety improve of 40 percent.

    Jamika 回复
  12. Louis

    There are thousands of people who have attained their ideal body weight after serious measures and sacrifices and
    you can also do it as well. Green tea contains catechins, a type of phytochemical that may briefly affect the metabolism.
    "This tiny tablet can push a lot of fat out of your body.

    Louis 回复
  13. KİLİM RUGS

    After looking into a number of the blog articles on your web
    site, I honestly like your way of blogging. I saved as a favorite it to
    my bookmark website list and will be checking back soon.
    Please visit my web site as well and tell me how you feel.

    KİLİM RUGS 回复
  14. are there any free reverse phone lookup sites

    free cell phone directory reverse lookup lookup cell phone number owner free
    free address lookup by cell phone number number lookup free
    cell phone

  15. reverse phone lookup

    free cell phone lookup reverse numbers cell phone number lookup by name cell phone lookup for free how to lookup cell phone numbers

    reverse phone lookup 回复
  16. 时间轨迹

    谢谢~

    时间轨迹 博主 回复
  17. ad33l

    刚好浏览到这儿了 问题解决了 多谢Allan 十分佩服!

    ad33l 回复
  18. ad33l

    刚好找到了这个帖子 问题解决了 Allan十分佩服! [good]

    ad33l 回复

添加新评论

选择表情 captcha

友情提醒:不填或错填验证码会引起页面刷新,导致已填的评论内容丢失。

|