Ubuntu 16.04 써우거 병음 입력기 설치 오류 문제 해결 방법
Ubuntu 16.04
Sogoupinyin2.0.0.0078_amd64
2. 문제 표현
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).
보자마자 의존 가방에 문제가 있다는 걸 알았어요.
3. 문제 분석
이전에 Ubuntu 15.10의 버전에서 같은 sogou 버전을 사용했을 때 이런 문제는 존재하지 않았다.그러나 Ubuntu 16.04에서 이러한 문제가 존재했다. 이는 Ubuntu가 업그레이드된 후에 sogou 입력법이 상응하는 시스템 호환성 테스트를 하지 않았기 때문에 가장 높은 Ubuntu 지원 버전을 만들었을 때 15.10.
우리가 문제를 알았지만 어떻게 해결해야 할까?
오류 정보를 바탕으로 의존 패키지는 다음과 같은 몇 가지가 있음을 발견했습니다:libopencc1 libopencc2, fcitx-libs, fcitx-libs-qt font-droid-fallback.
4. 오류 분석
시험 오류 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. 문제 해결
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? [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
결과는 모든 것이 순조롭게 되어 유사한 오류 정보를 보고하지 않았다
총결산
설치 의존은 한 번에 설치가 완료되어야 하며 단독으로 설치하지 마십시오. 주로 가방 간에 서로 일정한 의존 관계가 있기 때문에 이것은 당신이 정확하게 위치를 정할 수 없기 때문에 한 번의 설치 동작에서 끝냅니다.
또한 주의해야 할 것은 sogou 입력법의 리눅스 버전은 현재 Ubunut 15.10까지만 호환됩니다. 서로 이 상황을 잘 알고 계십시오.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.