kali install Sogou Pinyin

Keywords: Linux vim Google

Kali's version is Kali Linux large 2019.3-amd64
Sogou Pinyin version: sogoupinyin ABCD 2.3.1.0112 ABCD amd64.deb

Installation idea:

1, Replace image source
2, Download Sogou Pinyin for Linux
3, Install Sogou Pinyin
Four, restart

Where there are pits:
1. When adding a source, do not update or upgrade it immediately (that is, do not operate this step: apt get upgrade & & apt get dist upgrade). The main reason is that many new versions of package qt4 of sogoupinyin are not supported after the upgrade. Otherwise, they cannot be installed at all in the later stage, and there is always a lack of dependency relationship, so apt get update is OK. This pit jumped for a long time before it came out;
2,

Specific operation:

1, Replace image source

vim /etc/apt/sources.list

1. Add domestic sources to the document as follows:

#China University of science and technology
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
 
#Ali cloud
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
 
#Tsinghua University
deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free

#Official source
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib

deb http://mirrors.163.com/debian/ jessie main non-free contrib
deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib

2. update source

apt-get update 

2, Download Sogou Pinyin for Linux

Download the Linux-64bit version on the official website https://pingyin.sogou.com/linux/? R = Pingyin

3, Install Sogou Pinyin
1. Install fcitx & download the good deb package of Sogou Pinyin

apt-get install fcitx  # Install fcitx framework
apt-get install fcitx-googlepinyin  # Install google Pinyin
reboot  # Let's restart

2. After restarting, download the file directory and install sogoupinyin

dpkg -i sogoupinyin_2.3.1.0112_amd64.deb

3. At this time, the installation fails, and many dependent packages are missing. Repair the dependency first;

apt-get install -f

3. Try to install Sogou Pinyin package again;

dpkg -i sogoupinyin_2.3.1.0112_amd64.deb

4. If it still fails at this time and there are many dependency packages to be installed, then you need to download them one by one (PS: Download all the packages together and then install them all together);
Download dependency package address: https://www.debian.org/distrib/packages. For details, please refer to the blog (very detailed): https://blog.csdn.net/weixin_/article/details/101387690

5. Put the downloaded packages in a directory (including deb package of Sogou Pinyin) and install them together with cd. You need to download the following packages;

fcitx-frontend-qt4_4.2.9.6-5_amd64.deb
fonts-droid-fallback_6.0.1r16-1.1_all.deb
libfcitx-qt0_4.2.9.6-5_amd64.deb
libopencc2_1.0.5-2_amd64.deb
libqtwebkit4_2.3.4.dfsg-10_amd64.deb
sogoupinyin_2.3.1.0112_amd64.deb

dpkg -i  ./*.deb 

6. At this time, there are still many packages that need dependencies. At this time, all the dependencies can be resolved at once. Use the following command to repair the dependencies:

apt-get install   # First, use apt get to solve some packages that need to be installed
apt --fix-broken install  # Fix dependency again

7. After resolving the dependency, if there is no prompt to uninstall Sogoupinyin, it is OK to restart directly;

4, Restart and test use
restart

reboot

Test:
Ctrl + blank

Published 15 original articles, won praise 0, visited 340
Private letter follow

Posted by webwannabee on Wed, 26 Feb 2020 02:00:34 -0800