当前位置: 首页 > news >正文

Ubuntu Desktop 安装有道词典

Ubuntu Desktop 安装有道词典

  • 1. 有道词典
  • 2. Installation
    • 2.1. 解压 deb 包到 youdao 目录
    • 2.2. 解压 deb 包中的 control 信息 (包的依赖写在该文件里面)
    • 2.3. 编辑 control 文件,删除依赖里面的 gstreamer0.10-plugins-ugly
    • 2.4. 创建 youdaobuild 目录,重新打包
    • 2.5. 安装
    • 2.6. launcher
  • References

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.debstrong@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 youdaobuildstrong@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-dictstrong@foreverstrong:~/software/youdaobuild$ sudo apt-get -f installstrong@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/

相关文章:

  • 鸿蒙手机cordova-plugin-camera不能拍照和图片不显示问题
  • 蓝桥杯备考
  • Python 正则表达式(re)
  • 东方 - 循环(2) - 求和计数
  • PDF编辑和格式转换工具 Cisdem PDFMaster for Mac
  • Adaboost集成学习 | Matlab实现基于ELM-Adaboost极限学习机结合Adaboost集成学习时间序列预测(股票价格预测)
  • 前端三剑客 —— CSS (第三节)
  • JavaScript条件判断
  • 去班味的尽头是风险管理
  • vue2源码解析——vue中如何进行依赖收集、响应式原理
  • 一文解决IDea中Springboot 热部署:IDEA中Spring Boot应用热部署的几种方式及操作步骤
  • linux------jekins构建cicd
  • 【前端开发】教程及案例.docx
  • 重读Java设计模式: 深入探讨建造者模式,构建复杂对象的优雅解决方案
  • wps没保存关闭了恢复数据教程
  • [译] 理解数组在 PHP 内部的实现(给PHP开发者的PHP源码-第四部分)
  • Flannel解读
  • gf框架之分页模块(五) - 自定义分页
  • JavaScript/HTML5图表开发工具JavaScript Charts v3.19.6发布【附下载】
  • Js实现点击查看全文(类似今日头条、知乎日报效果)
  • linux安装openssl、swoole等扩展的具体步骤
  • SpiderData 2019年2月16日 DApp数据排行榜
  • Spring Cloud Alibaba迁移指南(一):一行代码从 Hystrix 迁移到 Sentinel
  • 配置 PM2 实现代码自动发布
  • 前端学习笔记之观察者模式
  • 如何使用 JavaScript 解析 URL
  • ​插件化DPI在商用WIFI中的价值
  • # 飞书APP集成平台-数字化落地
  • (C语言)输入一个序列,判断是否为奇偶交叉数
  • (html5)在移动端input输入搜索项后 输入法下面为什么不想百度那样出现前往? 而我的出现的是换行...
  • (LeetCode 49)Anagrams
  • (react踩过的坑)antd 如何同时获取一个select 的value和 label值
  • (初研) Sentence-embedding fine-tune notebook
  • (附源码)ssm跨平台教学系统 毕业设计 280843
  • (利用IDEA+Maven)定制属于自己的jar包
  • (六)什么是Vite——热更新时vite、webpack做了什么
  • (四)汇编语言——简单程序
  • (五)MySQL的备份及恢复
  • *p++,*(p++),*++p,(*p)++区别?
  • .NET 跨平台图形库 SkiaSharp 基础应用
  • .net 写了一个支持重试、熔断和超时策略的 HttpClient 实例池
  • .NET/C# 如何获取当前进程的 CPU 和内存占用?如何获取全局 CPU 和内存占用?
  • .NET3.5下用Lambda简化跨线程访问窗体控件,避免繁复的delegate,Invoke(转)
  • .net中我喜欢的两种验证码
  • /etc/X11/xorg.conf 文件被误改后进不了图形化界面
  • @Autowired多个相同类型bean装配问题
  • @Data注解的作用
  • [ C++ ] STL---stack与queue
  • [ 云计算 | AWS 实践 ] 基于 Amazon S3 协议搭建个人云存储服务
  • [100天算法】-实现 strStr()(day 52)
  • [20161101]rman备份与数据文件变化7.txt
  • [Asp.net MVC]Asp.net MVC5系列——Razor语法
  • [AX]AX2012 SSRS报表Drill through action
  • [Bada开发]初步入口函数介绍
  • [BT]BUUCTF刷题第8天(3.26)