一、环境介绍
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, 请大家彼此周知该情况。
《魔兽世界》大逃杀!60人新游玩模式《强袭风暴》3月21日上线
暴雪近日发布了《魔兽世界》10.2.6 更新内容,新游玩模式《强袭风暴》即将于3月21 日在亚服上线,届时玩家将前往阿拉希高地展开一场 60 人大逃杀对战。
艾泽拉斯的冒险者已经征服了艾泽拉斯的大地及遥远的彼岸。他们在对抗世界上最致命的敌人时展现出过人的手腕,并且成功阻止终结宇宙等级的威胁。当他们在为即将于《魔兽世界》资料片《地心之战》中来袭的萨拉塔斯势力做战斗准备时,他们还需要在熟悉的阿拉希高地面对一个全新的敌人──那就是彼此。在《巨龙崛起》10.2.6 更新的《强袭风暴》中,玩家将会进入一个全新的海盗主题大逃杀式限时活动,其中包含极高的风险和史诗级的奖励。
《强袭风暴》不是普通的战场,作为一个独立于主游戏之外的活动,玩家可以用大逃杀的风格来体验《魔兽世界》,不分职业、不分装备(除了你在赛局中捡到的),光是技巧和战略的强弱之分就能决定出谁才是能坚持到最后的赢家。本次活动将会开放单人和双人模式,玩家在加入海盗主题的预赛大厅区域前,可以从强袭风暴角色画面新增好友。游玩游戏将可以累计名望轨迹,《巨龙崛起》和《魔兽世界:巫妖王之怒 经典版》的玩家都可以获得奖励。
更新动态
- 凤飞飞《我们的主题曲》飞跃制作[正版原抓WAV+CUE]
- 刘嘉亮《亮情歌2》[WAV+CUE][1G]
- 红馆40·谭咏麟《歌者恋歌浓情30年演唱会》3CD[低速原抓WAV+CUE][1.8G]
- 刘纬武《睡眠宝宝竖琴童谣 吉卜力工作室 白噪音安抚》[320K/MP3][193.25MB]
- 【轻音乐】曼托凡尼乐团《精选辑》2CD.1998[FLAC+CUE整轨]
- 邝美云《心中有爱》1989年香港DMIJP版1MTO东芝首版[WAV+CUE]
- 群星《情叹-发烧女声DSD》天籁女声发烧碟[WAV+CUE]
- 刘纬武《睡眠宝宝竖琴童谣 吉卜力工作室 白噪音安抚》[FLAC/分轨][748.03MB]
- 理想混蛋《Origin Sessions》[320K/MP3][37.47MB]
- 公馆青少年《我其实一点都不酷》[320K/MP3][78.78MB]
- 群星《情叹-发烧男声DSD》最值得珍藏的完美男声[WAV+CUE]
- 群星《国韵飘香·贵妃醉酒HQCD黑胶王》2CD[WAV]
- 卫兰《DAUGHTER》【低速原抓WAV+CUE】
- 公馆青少年《我其实一点都不酷》[FLAC/分轨][398.22MB]
- ZWEI《迟暮的花 (Explicit)》[320K/MP3][57.16MB]