最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

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

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

一、環(huán)境介紹

   Ubuntu 16.04

   搜狗輸入法: sogoupinyin_2.0.0.0078_amd64

二、問題表現(xiàn)

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輸入法并未做相應(yīng)的系統(tǒng)兼容性測試, 故起最高的Ubuntu支持版本時15.10.

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

基于錯誤信息,我們發(fā)現(xiàn)起依賴包有以下幾個: 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). 

分析: 經(jīng)過各種嘗試,發(fā)現(xiàn)依然無法正常解決問題,類庫包之間的依賴關(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 正確的包安裝姿勢

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é)果 一切順利,沒有報類似的錯誤信息

總結(jié)

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

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

相關(guān)文章

  • Linux 使用init命令實現(xiàn)關(guān)機,重啟,切換模式

    Linux 使用init命令實現(xiàn)關(guān)機,重啟,切換模式

    這篇文章主要介紹了Linux 使用init命令實現(xiàn)關(guān)機,重啟,切換模式的相關(guān)資料,需要的朋友可以參考下
    2017-03-03
  • Centos 7下利用crontab定時執(zhí)行任務(wù)詳解

    Centos 7下利用crontab定時執(zhí)行任務(wù)詳解

    這篇文章主要給大家介紹了關(guān)于Centos 7下利用crontab定時執(zhí)行任務(wù)的相關(guān)資料,文中對crontab進行了詳細的介紹,并給出了一些實例代碼供大家參考學(xué)習,需要的朋友們下面跟著小編一起來學(xué)習學(xué)習吧。
    2017-06-06
  • Linux服務(wù)器利用防火墻iptables策略進行端口跳轉(zhuǎn)的方法

    Linux服務(wù)器利用防火墻iptables策略進行端口跳轉(zhuǎn)的方法

    這篇文章主要介紹了Linux服務(wù)器利用防火墻iptables策略進行端口跳轉(zhuǎn)的方法,文中通過示例代碼介紹的非常詳細,對大家的學(xué)習或者工作具有一定的參考學(xué)習價值,需要的朋友們下面隨著小編來一起學(xué)習學(xué)習吧
    2019-10-10
  • Linux服務(wù)器被黑以后的詳細處理步驟

    Linux服務(wù)器被黑以后的詳細處理步驟

    作為一個Linux運維工程師,能夠清晰地鑒別異常機器是否已經(jīng)被入侵了顯得至關(guān)重要,個人結(jié)合自己的工作經(jīng)歷,整理了幾種常見的機器被黑情況供參考
    2018-01-01
  • Linux中shell解析腳本的通配符、元字符、轉(zhuǎn)義符說明

    Linux中shell解析腳本的通配符、元字符、轉(zhuǎn)義符說明

    這篇文章主要介紹了shell通配符、元字符、轉(zhuǎn)義符以及shell解析腳本的過程,通配符用于路徑擴展,元字符用于多命令分割,轉(zhuǎn)義符用于將特殊字符變?yōu)槠胀ㄗ址?shell在解析腳本時會根據(jù)引號的不同進行不同的處理
    2025-01-01
  • 阿里云申請云盾免費SSL證書(https)

    阿里云申請云盾免費SSL證書(https)

    這篇文章主要介紹了阿里云申請云盾免費SSL證書(https),文中通過示例代碼介紹的非常詳細,對大家的學(xué)習或者工作具有一定的參考學(xué)習價值,需要的朋友們下面隨著小編來一起學(xué)習學(xué)習吧
    2020-07-07
  • 基于gentoo安裝Nginx php mysql的方法

    基于gentoo安裝Nginx php mysql的方法

    新買的VPS。在上面部署了nginx mysql php。需要的朋友可以參考下。
    2011-05-05
  • Linux進程地址空間詳解

    Linux進程地址空間詳解

    在C語言編程中,內(nèi)存管理是一個重要的環(huán)節(jié),本文詳細解析了C語言中的內(nèi)存區(qū)域劃分,包括棧區(qū)、堆區(qū)、全局區(qū)等,并探討了fork函數(shù)的遺留問題,即如何出現(xiàn)一個變量同時等于0又大于0的情況,此外,文章還深入討論了進程地址空間的概念
    2024-10-10
  • 詳解CentOS阿里云云服務(wù)器硬盤分區(qū)及掛載

    詳解CentOS阿里云云服務(wù)器硬盤分區(qū)及掛載

    這篇文章主要介紹了詳解CentOS阿里云云服務(wù)器硬盤分區(qū)及掛載 ,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2016-12-12
  • 如何使用Linux的rsync

    如何使用Linux的rsync

    rsync是linux系統(tǒng)下的數(shù)據(jù)鏡像備份工具。使用快速增量備份工具Remote Sync可以遠程同步,支持本地復(fù)制,或者與其他SSH、rsync主機同步
    2021-06-06

最新評論

卢湾区| 汽车| 密云县| 南通市| 榕江县| 丽江市| 桃江县| 宁陵县| 含山县| 霍州市| 五指山市| 西昌市| 汶上县| 永清县| 新邵县| 漠河县| 九龙坡区| 崇仁县| 榆中县| 进贤县| 平安县| 清流县| 志丹县| 东丰县| 休宁县| 重庆市| 南靖县| 连州市| 石门县| 苏尼特左旗| 玛纳斯县| 贵南县| 霍山县| 建水县| 乐昌市| 郎溪县| 苗栗县| 平果县| 昆明市| 信丰县| 沙洋县|