欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Ubuntu 16.04安裝搜狗拼音輸入法錯(cuò)誤問題的解決方法

 更新時(shí)間:2016年11月16日 11:10:05   作者:bladestone  
目前來說搜狗輸入法是市場(chǎng)上最為好用和流行的輸入法,最為良心的是還有Linux版本,這讓眾多Linux人士歡呼雀躍。最近在新出的Ubuntu 16.04上安裝sogou輸入法的時(shí)候,碰到了一些問題,主要還是依賴包沒有正確安裝,下面讓我們一起來看如何來解決這個(gè)問題。

一、環(huán)境介紹

   Ubuntu 16.04

   搜狗輸入法: sogoupinyin_2.0.0.0078_amd64

二、問題表現(xiàn)

sudo dpkg -i sogoupinyin_2.0.0.0078_amd64.deb 

錯(cuò)誤信息如下:

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的版本之時(shí),使用同樣的sogou版本,不存在此類的問題。 但是在Ubuntu 16.04中,卻存在此類問題,說明Ubuntu升級(jí)之后,sogou輸入法并未做相應(yīng)的系統(tǒng)兼容性測(cè)試, 故起最高的Ubuntu支持版本時(shí)15.10.

雖然我們知道了問題,但是該如何解決呢?

基于錯(cuò)誤信息,我們發(fā)現(xiàn)起依賴包有以下幾個(gè): libopencc1 libopencc2,  fcitx-libs, fcitx-libs-qt  font-droid-fallback.  

四、試錯(cuò)分析

試錯(cuò)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). 

試錯(cuò)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). 

試錯(cuò)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).

試錯(cuò)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). 

試錯(cuò)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). 

分析: 經(jīng)過各種嘗試,發(fā)現(xiàn)依然無(wú)法正常解決問題,類庫(kù)包之間的依賴關(guān)系還是非常復(fù)雜的。

五、問題解決

5.1 移除sogou輸入法, 由于其安裝不完整

sudo apt remove sogoupinyin 

執(zhí)行過程:

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 正確的包安裝姿勢(shì)

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

結(jié)果 一切順利,沒有報(bào)類似的錯(cuò)誤信息

總結(jié)

安裝依賴需要一次安裝完成,切勿單個(gè)安裝,主要是由于包之間彼此會(huì)有一定的依賴關(guān)系,這個(gè)是你無(wú)法準(zhǔn)確定位的,故在 一次安裝動(dòng)作中做完。

另外需要注意的是: sogou輸入法的Linux版本目前只兼容到Ubunut 15.10, 請(qǐng)大家彼此周知該情況。

相關(guān)文章

  • Linux下卸載MySQL8.0版本的操作方法

    Linux下卸載MySQL8.0版本的操作方法

    在本篇文章中小編給各位整理的是關(guān)于Linux下卸載MySQL8.0版本的操作步驟和方法,有需要的朋友們學(xué)習(xí)下。
    2019-11-11
  • 詳解Linux運(yùn)維CentOS系統(tǒng)SVN雙備份Shell腳本

    詳解Linux運(yùn)維CentOS系統(tǒng)SVN雙備份Shell腳本

    本篇文章主要介紹了詳解Linux運(yùn)維CentOS系統(tǒng)SVN雙備份Shell腳本,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
    2017-06-06
  • linux sudo命令詳解

    linux sudo命令詳解

    本篇文章主要介紹了linux sudo命令,sudo 是一種權(quán)限管理機(jī)制,管理員可以授權(quán)于一些普通用戶去執(zhí)行一些 root 執(zhí)行的操作,而不需要知道 root 的密碼。
    2017-01-01
  • 在 CentOS 8 上安裝Jenkins的方法

    在 CentOS 8 上安裝Jenkins的方法

    這篇文章主要介紹了在 CentOS 8 上安裝Jenkins的方法,本文給大家介紹的非常詳細(xì),具有一定的參考借鑒價(jià)值,需要的朋友可以參考下
    2019-12-12
  • 使用vscode遠(yuǎn)程linux開發(fā)的實(shí)現(xiàn)

    使用vscode遠(yuǎn)程linux開發(fā)的實(shí)現(xiàn)

    這篇文章主要介紹了使用vscode遠(yuǎn)程linux開發(fā)的實(shí)現(xiàn),文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2020-05-05
  • Linux加入windows ad域步驟詳解(winbindsamba方案)

    Linux加入windows ad域步驟詳解(winbindsamba方案)

    本文主要實(shí)驗(yàn)centos加入windows AD的方法,大家參考使用
    2013-12-12
  • Linux命令行處理圖片方式(圖片格式轉(zhuǎn)換、縮放、旋轉(zhuǎn)等)

    Linux命令行處理圖片方式(圖片格式轉(zhuǎn)換、縮放、旋轉(zhuǎn)等)

    這篇文章主要介紹了Linux命令行處理圖片方式(圖片格式轉(zhuǎn)換、縮放、旋轉(zhuǎn)等),具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教
    2023-06-06
  • Linux系統(tǒng)交換空間介紹

    Linux系統(tǒng)交換空間介紹

    今天小編就為大家分享一篇關(guān)于Linux系統(tǒng)交換空間介紹的文章,小編覺得內(nèi)容挺不錯(cuò)的,現(xiàn)在分享給大家,具有很好的參考價(jià)值,需要的朋友一起跟隨小編來看看吧
    2018-09-09
  • CentOS7連接XShell與網(wǎng)絡(luò)配置的方法

    CentOS7連接XShell與網(wǎng)絡(luò)配置的方法

    這篇文章主要介紹了如何使用CentOS7連接XShell與網(wǎng)絡(luò)配置的方法,可以更好的幫助大家工作和學(xué)習(xí),感興趣的小伙伴可以了解下
    2020-05-05
  • 簡(jiǎn)單實(shí)現(xiàn)linux聊天室程序

    簡(jiǎn)單實(shí)現(xiàn)linux聊天室程序

    這篇文章主要介紹了簡(jiǎn)單實(shí)現(xiàn)linux聊天室程序的詳細(xì)代碼,幫助大家了解聊天室的實(shí)現(xiàn)原理,感興趣的小伙伴們可以參考一下
    2015-12-12

最新評(píng)論