在ubuntu下安装深度翻译
Tofloor
poster avatar
Bluek404
deepin
2014-05-16 23:36
Author
警告:本文部分操作比较危险,请先备份系统
刚装了xubuntu,表示没法用深度翻译很不爽
于是自己从deepin的源上下载了deb包
然后发现各种依赖缺失
手动一层一层翻目录然后下载了十几个依赖之后
表示撑不住了……
于是乎就采用了一个比较方便但是具有一定危险性的方案
下面发给大家(当然如果你感觉不靠谱的话还是推荐慢慢翻源)
首先

备份(如果不备份挂掉了我可不管)
  1. sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
Copy the Code

修改源
  1. sudo mousepad /etc/apt/sources.list
Copy the Code
其中的mousepad可以替换成你的文本编辑器,因为我是xubuntu,所以是用这个
如果你是ubuntu,就用gedit替换mousepad

然后添加Deepin的源,这里我是直接复制进去的,当然推荐你先删除以前的源,然后再复制
deb http://packages.linuxdeepin.com/ubuntu trusty main restricted universe multiverse
deb http://packages.linuxdeepin.com/ubuntu trusty-security main restricted universe multiverse
deb http://packages.linuxdeepin.com/ubuntu trusty-updates main restricted universe multiverse
# deb http://packages.linuxdeepin.com/ubuntu trusty-proposed main restricted universe multiverse
# deb http://packages.linuxdeepin.com/ubuntu trusty-backports main restricted universe multiverse
deb-src http://packages.linuxdeepin.com/ubuntu trusty main restricted universe multiverse
deb-src http://packages.linuxdeepin.com/ubuntu trusty-security main restricted universe multiverse
deb-src http://packages.linuxdeepin.com/ubuntu trusty-updates main restricted universe multiverse
# deb-src http://packages.linuxdeepin.com/ubuntu trusty-proposed main restricted universe multiverse
# deb-src http://packages.linuxdeepin.com/ubuntu trusty-backports main restricted universe multiverse

deb http://packages.linuxdeepin.com/deepin trusty main universe non-free
deb-src http://packages.linuxdeepin.com/deepin trusty main universe non-free
#deb http://packages.linuxdeepin.com/deepin trusty-updates main universe non-free
#deb-src http://packages.linuxdeepin.com/deepin trusty-updates main universe non-free

保存
打开终端输入
  1. sudo apt-get update && sudo apt-get install deepin-translator
Copy the Code

等待安装完成
恢复以前的源
  1. sudo mv /etc/apt/sources.list /etc/apt/sources.list.old
Copy the Code

然后再次更新源
  1. sudo apt-get update
Copy the Code

这时候你会发现深度翻译没法启动,因为ubuntu默认没安装python的PyQuery库
  1. sudo easy_install PyQuery
Copy the Code
如果提示没有找到easy_install这个命令的话要先输入
  1. sudo apt-get install easy_install
Copy the Code

等待都安装完成后在菜单里找到深度翻译运行即可

不过我这里无法显示系统托盘图标右键的菜单
不知道别人有没有这个情况

最后吐槽一下,深度翻译用了82M内存是不是有点多?

右键菜单要装 deepin-menu
Reply Favorite View the author
All Replies
BingoLove
deepin
2014-05-17 00:08
#1
觉得很容易卡死
Reply View the author
Bluek404
deepin
2014-05-17 00:38
#2
觉得很容易卡死
除了内存和按Crtl不灵敏之外
其他没啥问题
Reply View the author
Bluek404
deepin
2014-05-17 01:07
#3
由于没法打开设置面板
于是乎只能编辑配置文件来调整配置
~/.config/deepin-translator/config.ini
Reply View the author
cxbii
deepin
2014-05-21 21:52
#4
目前这个软件还是beta版本
Reply View the author