首页 > 网站 > 建站经验 > 正文

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

2019-11-02 16:31:02
字体:
来源:转载
供稿:网友

一、环境介绍

   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).
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表