Ubuntu 16.04 installation sogou Pinyin Input Method error problem resolution _linux

Source: Internet
Author: User
Tags pack

First, the environment introduction

Ubuntu 16.04

Sogou Input Method: Sogoupinyin_2.0.0.0078_amd64

Ii. performance of the problem

 
 

The error message is as follows:

SOGOUPINYIN:DEPENDS:LIBOPENCC2 But it is isn't installable or 
libopencc1 but it is isn't going to be installed 
Depe Nds:fcitx-libs (>= 4.2.7) But it is isn't going to being installed 
DEPENDS:FCITX-LIBS-QT (>= 4.2.7) but it is not g Oing to being installed 
Recommends:fonts-droid-fallback But it is isn't going to be installed or 
fonts-droid but it i s not installable 

I know it's a problem with a dependency pack.

Third, the problem analysis

Previous versions of Ubuntu 15.10, using the same Sogou version, do not have this type of problem. However, in Ubuntu 16.04, there is such a problem, that after the Ubuntu upgrade, Sogou IME did not do the corresponding system compatibility test, so the highest Ubuntu support version of 15.10.

Although we know the problem, but how to solve it?

Based on the error message, we found that the dependency pack has the following: Libopencc1 Libopencc2, Fcitx-libs, FCITX-LIBS-QT font-droid-fallback.

Iv. Trial and Error analysis

Trial Error 1:

bladestone@bladestone-laptop:~$ sudo apt install fcitx-libs 
Reading Package lists ... Done 
Building Dependency the     
Reading state information ... Done with 
might want to run ' apt-get-f install ' to correct these: The following packages have unmet 
C6/>SOGOUPINYIN:DEPENDS:LIBOPENCC2 but it is not installable or 
            libopencc1 but it isn't going to be installed 
        DEPENDS:FCITX-LIBS-QT (>= 4.2.7) But it is isn't going to was installed Recommends:fonts-droid-fallback but 
        it is no T going to being installed or 
              fonts-droid but it is not installable 

Trial Error 2:

bladestone@bladestone-laptop:~$ sudo apt install fcitx-libs-qt 
Reading Package lists ... Done 
Building Dependency the     
Reading state information ... Done with 
might want to run ' apt-get-f install ' to correct these: The following packages have unmet 
C6/>SOGOUPINYIN:DEPENDS:LIBOPENCC2 but it is not installable or 
            libopencc1 but it isn't going to be installed 
        Depends:fcitx-libs (>= 4.2.7) But it is isn't going to be installed recommends:fonts-droid-fallback The It is not 
        g Oing to being installed or 
              fonts-droid but it is not installable 

Trial Error 3:

bladestone@bladestone-laptop:~$ sudo apt install fcitx-libs-qt fcitx-libs 
Reading Package ... Done 
Building Dependency the     
Reading state information ... Done with 
might want to run ' apt-get-f install ' to correct these: The following packages have unmet 
C6/>SOGOUPINYIN:DEPENDS:LIBOPENCC2 but it is not installable or 
            libopencc1 but it isn't going to be installed 
        Recommends:fonts-droid-fallback but it isn't going to being installed or 
              fonts-droid but it is not installable 
E: Unmet dependencies. Try ' apt-get-f install ' with no packages (or specify a solution).

Trial Error 4:

bladestone@bladestone-laptop:~$ sudo apt install fonts-droid-fallback 
Reading Package lists ... Done 
Building Dependency the     
Reading state information ... Done with 
might want to run ' apt-get-f install ' to correct these: The following packages have unmet 
C6/>SOGOUPINYIN:DEPENDS:LIBOPENCC2 but it is not installable or 
            libopencc1 but it isn't going to be installed 
        Depends:fcitx-libs (>= 4.2.7) But it is isn't going to being installed 
        DEPENDS:FCITX-LIBS-QT (>= 4.2.7) but it is n OT going to be installed 

Trial Error 5:

bladestone@bladestone-laptop:~$ sudo apt install libopencc1 
Reading Package lists ... Done 
Building Dependency the     
Reading state information ... Done with 
might want to run ' apt-get-f install ' to correct these: The following packages have unmet 
C6/>sogoupinyin:depends:fcitx-libs (>= 4.2.7) But it is isn't going to be installed 
        DEPENDS:FCITX-LIBS-QT (>= 4.2.7) But it isn't going to being installed recommends:fonts-droid-fallback but it is isn't going to be 
        installed >fonts-droid but it is not installable 

Analysis: after a variety of attempts to find that the problem still does not work correctly, the dependencies between class library packages are very complex.

V. Problem-solving

5.1 Remove Sogou Input method, because its installation is incomplete

 
 

Execute procedure:

 Reading package lists ... Done building Dependency The Reading state information ... Done the following packages is Removed:sogoupinyin 0 upgraded, 0 newly installed, 1 to remove and not upgrade 
D. 1 not fully installed or removed. 
After this operation, 42.6 MB disk spaces would be freed. Do your 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 Correct package mounting posture

 
 

5.3 Reinstall Sogou IME

sudo dpkg-i sogoupinyin_2.0.0.0078_amd64.deb

It all went well and didn't report a similar error message.

Summarize

Installation relies on the installation of a complete, do not single installation, mainly because the package will have a certain dependence between each other, this is you can not accurately locate, it is done in one installation action.

Also note: the Linux version of the Sogou input method is currently only compatible with Ubunut 15.10, please know the situation each other week.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.