当前位置:   article > 正文

Ubuntu Desktop 安装有道词典

Ubuntu Desktop 安装有道词典

1. 有道词典

https://cidian.youdao.com/index-linux.html

youdao-dict_1.1.0-0-ubuntu_amd64.deb

在这里插入图片描述

2. Installation

有道词典官方的 deb 包 (Ubuntu 版本) 依赖 gstreamer0.10-plugins-ugly,它在 Ubuntu 16.04 里面已经没有了。其实没有该包,完全不影响有道词典的使用。我们可以去掉 deb 包里面对于该库的依赖。

strong@foreverstrong:~/software$ ll
total 2730776
drwxrwxr-x  5 strong strong       4096 11月  7 15:18 ./
drwxr-xr-x 40 strong strong       4096 11月  7 15:00 ../
-rw-rw-r--  1 strong strong    5427832 11月  7 15:17 youdao-dict_1.1.0-0-ubuntu_amd64.deb
 
strong@foreverstrong:~/software$ chmod a+x  youdao-dict_1.1.0-0-ubuntu_amd64.deb 
 
strong@foreverstrong:~/software$ ll
total 2730776
drwxrwxr-x  5 strong strong       4096 11月  7 15:18 ./
drwxr-xr-x 40 strong strong       4096 11月  7 15:00 ../
-rwxrwxr-x  1 strong strong    5427832 11月  7 15:17 youdao-dict_1.1.0-0-ubuntu_amd64.deb*
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13

2.1. 解压 deb 包到 youdao 目录

strong@foreverstrong:~/software$ dpkg -X ./youdao-dict_1.1.0-0-ubuntu_amd64.deb youdao
  • 1

2.2. 解压 deb 包中的 control 信息 (包的依赖写在该文件里面)

strong@foreverstrong:~/software$ dpkg -e ./youdao-dict_1.1.0-0-ubuntu_amd64.deb youdao/DEBIAN
  • 1

2.3. 编辑 control 文件,删除依赖里面的 gstreamer0.10-plugins-ugly

strong@foreverstrong:~/software$ vim youdao/DEBIAN/control
  • 1

2.4. 创建 youdaobuild 目录,重新打包

strong@foreverstrong:~/software$ mkdir youdaobuild
 
strong@foreverstrong:~/software$ dpkg-deb -b youdao youdaobuild/
dpkg-deb: building package 'youdao-dict' in 'youdaobuild//youdao-dict_1.1.0-0~ubuntu_amd64.deb'.
  • 1
  • 2
  • 3
  • 4

2.5. 安装

strong@foreverstrong:~/software/youdaobuild$ sudo dpkg -i youdao-dict_1.1.0-0~ubuntu_amd64.deb 
…
Errors were encountered while processing:
 youdao-dict
 
strong@foreverstrong:~/software/youdaobuild$ sudo apt-get -f install
 
strong@foreverstrong:~/software/youdaobuild$ sudo dpkg -i youdao-dict_1.1.0-0~ubuntu_amd64.deb 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

2.6. launcher

Search your computer -> Youdao Dict -> Lock to Launcher

References

[1] Yongqiang Cheng, https://yongqiang.blog.csdn.net/

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/401127
推荐阅读
相关标签
  

闽ICP备14008679号