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*

2.1. 解压 deb 包到 youdao 目录

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

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

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

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

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

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'.

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 

2.6. launcher

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

References

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

相关推荐

最近更新

  1. TCP协议是安全的吗?

    2024-04-04 06:12:01       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-04-04 06:12:01       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-04-04 06:12:01       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-04-04 06:12:01       20 阅读

热门阅读

  1. C/C++混合项目,程序运行报错:未定义函数符号

    2024-04-04 06:12:01       11 阅读
  2. HTML优化SEO的实用技巧

    2024-04-04 06:12:01       17 阅读
  3. 大话设计模式之组合模式

    2024-04-04 06:12:01       11 阅读
  4. 我的创作纪念日

    2024-04-04 06:12:01       17 阅读
  5. acrn guest 内存分析

    2024-04-04 06:12:01       11 阅读
  6. DockerFile启动jar程序

    2024-04-04 06:12:01       12 阅读
  7. Sass学习记录

    2024-04-04 06:12:01       14 阅读
  8. NRM详解

    2024-04-04 06:12:01       18 阅读
  9. SpringBoot如何集成nacos,用于服务发现和配置管理

    2024-04-04 06:12:01       13 阅读
  10. 【Next.js】连接 MongoDB 实现基本的接口

    2024-04-04 06:12:01       15 阅读
  11. MongoDB聚合运算符:$lte

    2024-04-04 06:12:01       14 阅读
  12. 金融出海机遇与挑战

    2024-04-04 06:12:01       14 阅读