Ubuntu 16.04安装搜狗拼音输入法错误问题的解决方法_Linux

一、环境介绍

   Ubuntu 16.04

   搜狗输入法: sogoupinyin_2.0.0.0078_amd64

二、问题表现

sudo dpkg -i sogoupinyin_2.0.0.0078_amd64.deb 

错误信息如下:

sogoupinyin : Depends: libopencc2 but it is not installable or
libopencc1 but it is not going to be installed
Depends: fcitx-libs (>= 4.2.7) but it is not going to be installed
Depends: fcitx-libs-qt (>= 4.2.7) but it is not going to be installed
Recommends: fonts-droid-fallback but it is not going to be installed or
fonts-droid but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). 

一看就知道是依赖包存在问题

三、问题分析

之前在Ubuntu 15.10的版本之时,使用同样的sogou版本,不存在此类的问题。 但是在Ubuntu 16.04中,却存在此类问题,说明Ubuntu升级之后,sogou输入法并未做相应的系统兼容性测试, 故起最高的Ubuntu支持版本时15.10.

虽然我们知道了问题,但是该如何解决呢?

基于错误信息,我们发现起依赖包有以下几个: libopencc1 libopencc2,  fcitx-libs, fcitx-libs-qt  font-droid-fallback.  

四、试错分析

试错1:

bladestone@bladestone-laptop:~$ sudo apt install fcitx-libs
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 sogoupinyin : Depends: libopencc2 but it is not installable or
            libopencc1 but it is not going to be installed
        Depends: fcitx-libs-qt (>= 4.2.7) but it is not going to be installed
        Recommends: fonts-droid-fallback but it is not going to be installed or
              fonts-droid but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). 

试错2:   

bladestone@bladestone-laptop:~$ sudo apt install fcitx-libs-qt
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 sogoupinyin : Depends: libopencc2 but it is not installable or
            libopencc1 but it is not going to be installed
        Depends: fcitx-libs (>= 4.2.7) but it is not going to be installed
        Recommends: fonts-droid-fallback but it is not going to be installed or
              fonts-droid but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). 

试错3:

bladestone@bladestone-laptop:~$ sudo apt install fcitx-libs-qt fcitx-libs
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 sogoupinyin : Depends: libopencc2 but it is not installable or
            libopencc1 but it is not going to be installed
        Recommends: fonts-droid-fallback but it is not going to be installed or
              fonts-droid but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

试错4:

bladestone@bladestone-laptop:~$ sudo apt install fonts-droid-fallback
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 sogoupinyin : Depends: libopencc2 but it is not installable or
            libopencc1 but it is not going to be installed
        Depends: fcitx-libs (>= 4.2.7) but it is not going to be installed
        Depends: fcitx-libs-qt (>= 4.2.7) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). 

试错5:

bladestone@bladestone-laptop:~$ sudo apt install libopencc1
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 sogoupinyin : Depends: fcitx-libs (>= 4.2.7) but it is not going to be installed
        Depends: fcitx-libs-qt (>= 4.2.7) but it is not going to be installed
        Recommends: fonts-droid-fallback but it is not going to be installed or
              fonts-droid but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). 

分析: 经过各种尝试,发现依然无法正常解决问题,类库包之间的依赖关系还是非常复杂的。

五、问题解决

5.1 移除sogou输入法, 由于其安装不完整

sudo apt remove sogoupinyin 

执行过程:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
 sogoupinyin
0 upgraded, 0 newly installed, 1 to remove and 43 not upgraded.
1 not fully installed or removed.
After this operation, 42.6 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 214444 files and directories currently installed.)
Removing sogoupinyin (2.0.0.0078) ...
Processing triggers for libglib2.0-0:amd64 (2.48.1-1~ubuntu16.04.1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160523-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu3) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for mime-support (3.59ubuntu1) ... 

5.2 正确的包安装姿势

sudo apt install libopencc1 fcitx-libs fcitx-libs-qt fonts-droid-fallback 

5.3 重新安装sogou输入法

sudo dpkg -i sogoupinyin_2.0.0.0078_amd64.deb

结果 一切顺利,没有报类似的错误信息

总结

安装依赖需要一次安装完成,切勿单个安装,主要是由于包之间彼此会有一定的依赖关系,这个是你无法准确定位的,故在 一次安装动作中做完。

另外需要注意的是: sogou输入法的Linux版本目前只兼容到Ubunut 15.10, 请大家彼此周知该情况。

以上是小编为您精心准备的的内容,在的博客、问答、公众号、人物、课程等栏目也有的相关内容,欢迎继续使用右上角搜索按钮进行搜索搜狗拼音
ubuntu16.04
搜狗拼音 ubuntu16.04、ubuntu 搜狗拼音、ubuntu安装搜狗拼音、搜狗拼音输入法ubuntu、ubuntu卸载搜狗拼音,以便于您获取更多的相关知识。

时间: 2024-11-05 09:00:15

Ubuntu 16.04安装搜狗拼音输入法错误问题的解决方法_Linux的相关文章

ubuntu 14.04 安装搜狗拼音输入法

原文:ubuntu 14.04 安装搜狗拼音输入法 ubuntu桌面系统下终于有了好用的拼音法-搜狗拼音输入法,欲在ubuntu 14.04下安装搜狗拼音输入法相当的简单. 先到搜狗拼音官网下载对应的安装包 搜狗拼音 for Linux:http://pinyin.sogou.com/linux/  下载得到deb安装包,鼠标双击该安装包,则进入安装界面. 代安装完毕后,进入ubuntu的"系统设置"->" 语言支持"->"键盘输入方式系统&q

ubuntu 16.04安装出现错误

问题描述 ubuntu 16.04安装出现错误 这不是官方的ubuntu软件包.请删除所有第三方软件包,然后重试,新手求教 解决方案 http://blog.sina.com.cn/s/blog_a59a48fe0101531p.html 解决方案二: 16.04还是测试版,建议用15.10

详解ubuntu 16.04安装docker教程_docker

本文介绍了ubuntu 16.04安装docker教程,具体如下: 环境 操作系统:ubuntu 16.04 64位,默认安装 准备 1. 添加GPG key: $ sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D 2. 添加源 新建文件:/etc/apt/sources.list.d/docker.list,

Ubuntu 16.04安装Apache Tomcat的方法_Linux

Apache Tomcat是Java Servlet和Java Server Pages技术的开源软件实现. 可以使用OpenJDK tomcat运行你的Java应用. Apache Tomcat安装 从Ubuntu软件库安装Tomcat: apt-get install tomcat8 您可能还需要安装tomcat8-docs,tomcat8-examples和tomcat8-admin工具,这些工具提供了文档,测试和允许您基于Web的应用程序管理Tomcat. 您可以使用以下命令安装所有这三

安装Ubuntu 16.04后要做的事(总结)_Linux

Ubuntu 16.04发布了,带来了很多新特性,同样也依然带着很多不习惯的东西,所以装完系统后还要进行一系列的优化. 1.删除libreoffice libreoffice虽然是开源的,但是Java写出来的office执行效率实在不敢恭维,装完系统后果断删掉 sudo apt-get remove libreoffice-common 2.删除Amazon的链接 sudo apt-get remove unity-webapps-common  3.删掉基本不用的自带软件(用的时候再装也来得及

腾讯云ubuntu服务器tomcat访问慢的原因分析及解决方法_Linux

在腾讯云上配了个一元的学生云,开始一切正常,直到配置tomcat开始出现各种莫名其妙的问题.最莫名其妙的是tomcat启动了,端口也 正常监听,安全组也放行端口了,然后问题来了. 用浏览器访问tomcat主页,会发现超级慢,浏览器一直在等待服务器的响应,从这里可以看出能够接入8080端口,但是服务器没有返回数据.(这个问题折腾几天) 后来在网上找了无数资料,终于发现了原因.tomcat8.0在腾讯云ubuntu14.04上有bug. 问题原因: 随机数引起线程阻塞. tomcat不断启动,关闭,

win8安装程序出现错误2203的解决方法

  一些用户在win8系统下,安装软件被提示内部错误2203的错误,很多用户不知道如何来解决遇到的这类问题,其实用户出现该问题是因为系统权限限制造成的,对于该问题我们如何解决呢?下面看小编为您提供的解决win8错误2203的方法吧! 解决方法 1.计算机-组织-文件夹和搜索选项-查看-将"隐藏受保护的系统操作文件"前的复选框去掉并将"显示文件.文件夹和驱动器"前的复选框选上-确定. 2.C-用户-xxx(用户名)-AppData-Local-Temp-右键-属性-安

SQL Server 2005 安装遇到的错误提示和解决方法_Mysql

安装SQL Server 2005弄了好久,终于可以了...期间问题重重,想拿出来和大家一同分享的. 第一种错误显示: 无法在com+目录中安装和配置程序集 错误:-2146233087 无法在com+目录中安装和配置程序集c:\program files\Microsoft SQL Server\90\DTS\tasks\microsoft.sqlserver.MSMQTASK.DLL.  错误:-2146233087 sql server 安装时"无法在COM+目录中安装和配置程序"

php编译安装常见错误大全和解决方法_linux shell

在CentOS编译PHP5的时候有时会遇到以下的一些错误信息,基本上都可以通过yum安装相应的库来解决.以下是具体的一些解决办法: 复制代码 代码如下: checking for BZip2 support- yes checking for BZip2 in default path- not found configure: error: Please reinstall the BZip2 distribution 解决方法:yum install bzip2-devel 复制代码 代码如