一、环境介绍
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"htmlcode">sudo apt install libopencc1 fcitx-libs fcitx-libs-qt fonts-droid-fallback5.3 重新安装sogou输入法
sudo dpkg -i sogoupinyin_2.0.0.0078_amd64.deb结果 一切顺利,没有报类似的错误信息
总结
安装依赖需要一次安装完成,切勿单个安装,主要是由于包之间彼此会有一定的依赖关系,这个是你无法准确定位的,故在 一次安装动作中做完。
另外需要注意的是: sogou输入法的Linux版本目前只兼容到Ubunut 15.10, 请大家彼此周知该情况。
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
稳了!魔兽国服回归的3条重磅消息!官宣时间再确认!
昨天有一位朋友在大神群里分享,自己亚服账号被封号之后居然弹出了国服的封号信息对话框。
这里面让他访问的是一个国服的战网网址,com.cn和后面的zh都非常明白地表明这就是国服战网。
而他在复制这个网址并且进行登录之后,确实是网易的网址,也就是我们熟悉的停服之后国服发布的暴雪游戏产品运营到期开放退款的说明。这是一件比较奇怪的事情,因为以前都没有出现这样的情况,现在突然提示跳转到国服战网的网址,是不是说明了简体中文客户端已经开始进行更新了呢?
更新日志
- 小骆驼-《草原狼2(蓝光CD)》[原抓WAV+CUE]
- 群星《欢迎来到我身边 电影原声专辑》[320K/MP3][105.02MB]
- 群星《欢迎来到我身边 电影原声专辑》[FLAC/分轨][480.9MB]
- 雷婷《梦里蓝天HQⅡ》 2023头版限量编号低速原抓[WAV+CUE][463M]
- 群星《2024好听新歌42》AI调整音效【WAV分轨】
- 王思雨-《思念陪着鸿雁飞》WAV
- 王思雨《喜马拉雅HQ》头版限量编号[WAV+CUE]
- 李健《无时无刻》[WAV+CUE][590M]
- 陈奕迅《酝酿》[WAV分轨][502M]
- 卓依婷《化蝶》2CD[WAV+CUE][1.1G]
- 群星《吉他王(黑胶CD)》[WAV+CUE]
- 齐秦《穿乐(穿越)》[WAV+CUE]
- 发烧珍品《数位CD音响测试-动向效果(九)》【WAV+CUE】
- 邝美云《邝美云精装歌集》[DSF][1.6G]
- 吕方《爱一回伤一回》[WAV+CUE][454M]