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

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

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

一、環(huán)境介紹

   Ubuntu 16.04

   搜狗輸入法: sogoupinyin_2.0.0.0078_amd64

二、問(wèn)題表現(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). 

一看就知道是依賴包存在問(wèn)題

三、問(wèn)題分析

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

雖然我們知道了問(wèn)題,但是該如何解決呢?

基于錯(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)過(guò)各種嘗試,發(fā)現(xiàn)依然無(wú)法正常解決問(wèn)題,類庫(kù)包之間的依賴關(guān)系還是非常復(fù)雜的。

五、問(wèn)題解決

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

sudo apt remove sogoupinyin 

執(zhí)行過(guò)程:

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é)果 一切順利,沒(méi)有報(bào)類似的錯(cuò)誤信息

總結(jié)

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

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

相關(guān)文章

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

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

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

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

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

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

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

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

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

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

    這篇文章主要介紹了shell通配符、元字符、轉(zhuǎn)義符以及shell解析腳本的過(guò)程,通配符用于路徑擴(kuò)展,元字符用于多命令分割,轉(zhuǎn)義符用于將特殊字符變?yōu)槠胀ㄗ址?shell在解析腳本時(shí)會(huì)根據(jù)引號(hào)的不同進(jìn)行不同的處理
    2025-01-01
  • 阿里云申請(qǐng)?jiān)贫苊赓M(fèi)SSL證書(https)

    阿里云申請(qǐng)?jiān)贫苊赓M(fèi)SSL證書(https)

    這篇文章主要介紹了阿里云申請(qǐng)?jiān)贫苊赓M(fèi)SSL證書(https),文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧
    2020-07-07
  • 基于gentoo安裝Nginx php mysql的方法

    基于gentoo安裝Nginx php mysql的方法

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

    Linux進(jìn)程地址空間詳解

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

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

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

    如何使用Linux的rsync

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

最新評(píng)論

闻喜县| 中方县| 西吉县| 兴化市| 滨海县| 安陆市| 尉氏县| 广安市| 佛坪县| 镇平县| 陆川县| 额尔古纳市| 肥东县| 灵璧县| 方山县| 庄浪县| 县级市| 濮阳县| 连山| 祁门县| 西乡县| 仙居县| 金堂县| 家居| 嘉鱼县| 谢通门县| 全椒县| 剑川县| 山阳县| 澎湖县| 阿城市| 泸溪县| 奉新县| 雅安市| 怀宁县| 绍兴市| 家居| 略阳县| 大姚县| 新津县| 武鸣县|