注:如果自己不会操作,直接到文章后面下载我编译好的。
从Ubuntu 14.04升级到16.04以后,有道词典就安装不上了。因为官方的deb包(Ubuntu版本的)依赖gstreamer0.10-plugins-ugly,但是该软件在16.04里面已经没有了。但其实没有该包,完全不影响有道词典的使用。所以我们可以去掉deb包里面对于该库的依赖。具体操作如下:
- 从官方下载Ubuntu版本的deb包:youdao-dict_1.1.0-0-ubuntu_amd64.deb;
- 创建youdao目录,把该deb包解压到youdao目录:
dpkg -X ./youdao-dict_1.1.0-0-ubuntu_amd64.deb youdao
; - 解压deb包中的control信息(包的依赖就写在这个文件里面):
dpkg -e ./youdao-dict_1.1.0-0-ubuntu_amd64.deb youdao/DEBIAN
; - 编辑control文件,删除Depends里面的gstreamer0.10-plugins-ugly。
- 创建youdaobuild目录,重新打包:
dpkg-deb -b youdao youdaobuild/
.
这样,在youdaobuild里面就会生成一个新的deb包。我们安装这个包就不会存在依赖的问题了。
Ubuntu 16.04之前的版本安装有道词典linux版本可参见:Ubuntu中使用有道词典。
编译好的deb包下载:链接:https://pan.baidu.com/s/1uKI64Vw62kVJmMVhXyDWLg 提取码:jik6
系统重启后无法打开有道怎么办
命令行启动,看看报什么错误
Hi, I am English but my wife is Chinese. We both use Linux and my wife want to use Youdao dictionary. I follow your steps 1 to 5 and have the deb: youdao-dict_1.1.0-0~ubuntu_amd64.deb in my youdaobuild folder. When I install this using Software Manager nothing happens, it is not installed. Instead it just returns to install again. If I install from terminal it install with dependency problems. sudo apt-get install -f then removes youdao. Can you assist?
Yeah, I guess you may miss the fourth step if you still has the dependency problem. You can try again. And install with
dpkg -i xxx.deb
.太感谢啦,亲
不客气 :grin:
谢谢博主哈哈
客气~
hank you very much!
rran@ubuntu:~/Downloads$ dpkg-deb -b youdao youdaobuild
dpkg-deb:错误:无法打开软件包的 info 文件 youdao/DEBIAN/control 以便读取: 没有那个文件或目录
rran@ubuntu:~/Downloads$ ls
sogoupinyin.deb youdao youdaobuild youdao-dict_1.1.0-0-ubuntu_amd64.deb
rran@ubuntu:~/Downloads$
这个是什么情况啊
感觉你第二步解压的时候目的目录没有指定正确,再检查下
Thanks!
不客气~~[嘻嘻]
thank you very much!
Your are welcome~