您的位置:首页 > 其它

Ubuntu 16.04 LTS安装搜狗输入法解析

2016-12-10 14:12 603 查看
通过搜狗官方网站(如下):
http://pinyin.sogou.com/linux/?r=pinyin
下载的deb包属于dpkg包,Ubuntu软件中心照理说是应该能够安装的,但由于是第三方程序,所以需求要安装需要对应的软件源的支持

通过software-updater的other software添加对应源的repository如下



结果发现,download失败,具体的原因可从如下log信息得知

Failed to download repository information

W:Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/fcitx-team-ubuntu-nightly-xenial.list:2 and /etc/apt/sources.list.d/fcitx-team-ubuntu-nightly-xenial.list:3, 

W:http://archive.ubuntukylin.com:10006/ubuntukylin/dists/xenial/InRelease: Signature by key 6CE35A4EBAB676094476BE7CD259B7555E1D3C58 uses weak digest algorithm (SHA1), 

W:The repository 'http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial Release' does not have a Release file., 

W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., 

W:See apt-secure(8) manpage for repository creation and user configuration details., 

E:Failed to fetch http://ppa.launchpad.net/fcitx-team/nightly/ubuntu/dists/xenial/main/source/Sources  404  Not Found, 

E:Failed to fetch http://ppa.launchpad.net/fcitx-team/nightly/ubuntu/dists/xenial/main/binary-i386/Packages  404  Not Found, 

E:Some index files failed to download. They have been ignored, or old ones used instead.

具体原因无非是对应源缺失文件,或者认证机制,算法不合要求,所以要寻找官方的匹配的最新的源才能进行下一步操作!

在这种情况下,如果你有本地下载好的deb安装包,你可以使用安装gedbi这个工具来安装deb包(首先apt-get install gdebi来确保安装gdebi),具体用法参考如下

NAME

       gdebi - Simple tool to install deb files

SYNOPSIS

       gdebi [package.deb]...

DESCRIPTION

       gdebi  lets you install local deb packages resolving and installing its

       dependencies. apt does the  same,  but  only  for  remote  (http,  ftp)

       located  packages.  It can also resolve build-depends of debian/control

       files.

通过gdebi ./sogoupinyin_2.1.0.0082_amd64.deb 安装好之后,如果没有出错,reboot系统,接着会看到桌面的右上角出现键盘的标志,如果点击没有sougou标志,你可以点击键盘找到设置或者搜索""Fcitx Configuration"点击打开Input Method Configuration添加输入法中文sogou如下图,然后你就可以使用Ctrl+Shift来切换输入法了.



具体添加搜狗的键盘输入法系统配置--Fcitx Configuration的方法如下:

add-apt-repository ppa:fcitx-team/nightly

apt-get update

apt-get install fcitx

apt-get install fcitx-config-gtk

apt-get install fcitx-table-all

apt-get install im-switch

root权限下,一一安装即可.安装好的界面如下:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: