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权限下,一一安装即可.安装好的界面如下:
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权限下,一一安装即可.安装好的界面如下:
相关文章推荐
- ubuntu 16.04 LTS 设置中文 & 安装搜狗输入法
- ubuntu16.04LTS安装搜狗输入法
- 06. ubuntu 16.04 LTS 安装搜狗输入法
- ubuntu 16.04 lts 安装搜狗输入法
- Ubuntu16.04LTS安装搜狗输入法失败原因加总结
- Ubuntu 16.04 LTS 搜狗输入法安装
- ubuntu16.04LTS安装搜狗输入法
- Ubuntu 16.04 LTS 安装搜狗输入法
- 16.Ubuntu LTS 16.04安装搜狗输入法全过程记录(纯新手)
- 09. ubuntu 16.04 LTS 安装Xmind
- 12. ubuntu 16.04 LTS 安装Maven
- Ubuntu 16.04 LTS安装好之后需要做的15件事
- 14. ubuntu 16.04 LTS 安装sqldeveloper
- 在 Ubuntu Server 16.04 LTS 上安装 LAMP
- 如何在Windows 7系统下安装Ubuntu-Kylin 16.04 LTS 构成双系统
- 02. ubuntu 16.04 LTS 双系统安装之系统安装
- Ubuntu 16.04 LTS 64位下安装steam游戏平台
- Ubuntu 16.04 LTS安装好之后需要做的15件事
- Ubuntu 16.04 LTS安装好需要设置的15件事(喜欢新版本)
- Ubuntu 16.04 LTS直接双击安装deb包失败的解决方法