kali linux 2018.1 installation Sogou input method

【Installation process】

1, Kali Linux mirror site : HTTP: //mirrors.ustc.edu.cn/
A, select the Mirror: Kali-Linux AMD64-2018.1-

2, installed on the Kali VMware
A, the client operating system version and choose Linux Debian8 .x 64 bit

3, mounting vmtool

. 4 , update source
a, open the source file 
Vim /etc/apt/sources.list                                                                               
B, add the source (source using Ali)
#aliyun                                                                                             
the deb http://mirrors.aliyun.com/kali Kali Free contrib non-main -rolling                               
the deb-Kali http://mirrors.aliyun.com/kali the src non-main-Free Rolling contri
B                               
C, update source
apt-get update && apt-get                                               upgrade && apt-get dist-upgrade
[Note]:

install or upgrade the system is divided into the following steps. 
    The first step, get a list of recent packages; list contains some of the information packet, such as the package is updated.
    The second step, if the package is not released update, do not ignore it; if you publish an update, put the package download to your computer and install.
    apt-get update corresponding is the first step to obtain a list of packages.
    apt-get upgrade and apt-get dist-upgrade corresponding to the second step. 
    Because of the dependencies between the package and the package. upgrade simply update package, whether they rely on, and it does not add packages or delete package; and dist-upgrade may vary according to dependency, add the package, delete the package.
    General before running upgrade or dist-upgrade, first to run the update.
--- from https://www.cnblogs.com/lexus/archive/2011/11/30/2268896.html

 

5, the installation fcitx

apt-get install fcitx

Before installing the input method to install fcitx, fcitx input method is a framework that supports a number of input method engines, where the installation is to support Sogou input method, so that we can configure Sogou input method fcitx configuration.

6, install Chinese Input Method (Sogou input method)
A, enter the download Sogou input method's official website method linux x64 version

Download the installation package: sogoupinyin_2.2.0.0108_amd64.deb

B, extracted from the debian package information sogoupinyin_2.2.0.0108_amd64.deb
dpkg -I sogoupinyin_2.2.0.0108_amd64.deb                                                                   
is printed as follows:
new new the Debian Package, Version 2.0.             
 size 2.58048 million bytes:. Control = 11879 bytes Archive             
      34 is byte, 1 OK conffiles and            
    1446 bytes, row 18 Control              
   33969 bytes 343 rows MD5SUMS              
    3013 bytes, the postinst # 84 rows *! / bin / SH
    2766 bytes 78 rows postrm # *! / bin / SH
     304 bytes 13 rows preinst # * / bin / SH!
 Package Penalty for: sogoupinyin
 Version: 2.2.0.0108
 Architecture: AMD64
 the Maintainer to: Ubuntu Kylin Team <[email protected]>
 Installed-Size: 56991
 Depends: fcitx (>= 1:4.2.8.3-3~), fcitx-frontend-gtk2, fcitx-frontend-gtk3, fcitx-frontend-qt4, libfcitx-qt0 | fcitx-libs-qt, fcitx-module-kimpanel, im-config, libopencc2 | libopencc1, lsb-release, unzip, zip, x11-utils, fcitx-libs (>= 4.2.7), libc6 (>= 2.8), libgcc1 (>= 1:4.1.1), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.12.0), libidn11 (>= 1.13), libnotify4 (>= 0.7.0), libqt4-dbus (>= 4:4.8.0), libqt4-declarative (>= 4:4.8.0), libqt4-network (>= 4:4.8.0), libqtcore4 (>= 4:4.8.0), libqtgui4 (>= 4:4.8.0), libqtwebkit4 (>= 2.1.0~2011week13), libstdc++6 (>= 4.6), libx11-6, zlib1g (>= 1:1.2.0)
 Recommends: fcitx-frontend-qt5, fonts-noto-cjk, dconf-gsettings-backend | gsettings-backend
 Section: non-free/utils
 Priority: optional
 Homepage: http://pinyin.sogou.com/linux
 Description: Sogou Pinyin Input Method
  Based on web search engine technology, Sogou Pinyin input method is
  the next-generation input method designed for Internet users. As it
  is backed with search engine technology, user input method can be
  extremely fast, and it is much more advanced than other input method
  engines in terms of the volume of the vocabulary database and its
  accuracy. Sogou input method is the most popular input methods in
  China, and Sogou promises it will always be free of charge.

c、根据包信息要求安装软件(已用红字标出)
apt-get install fcitx-frontend-qt5
apt-get install  fonts-noto-cjk
apt-get install dconf-gsettings-backend


d, installation Sogou input method
dpkg -i sogoupinyin_2.2.0.0108_amd64.deb 
print as follows:
being selected package sogoupinyin unselected.
(Reading database ... system currently has installed a total of 324,337 files and directories.)
Is preparing to unpack sogoupinyin_2.2.0.0108_amd64.deb ...
is unpacked sogoupinyin (2.2.0.0108) ...
dpkg-deb ( child process): unable to copy from sogoupinyin_2.2.0.0108_amd64.deb archive members to the decoding pipeline: the end of the file or stream is not expected end
dpkg-deb (the child): unzip archive members: lzma error: unexpected input end
dpkg-deb: error: <decompression> subprocess returned error exit status 2

dpkg: error processing the archive sogoupinyin_2.2.0.0108_amd64.deb (--install): Unable to './usr/share/sogou-qimpanel/recommendSkin/skin/\343\200\220\351\233\250\346 \ 254 \ 243 \ 343 \ 200 \ 221 \ 350 \ 222 \ 262 \ 345 \ 205 \ 254 \ 350 \ 213 \ 261 \ 347 \ 232 \ 204 \ 346 \ 200 \ 235 \ 345 \ 277 \ 265 / comp_567366.png 'copy of the decompressed file to' / usr / share / sogou-qimpanel / recommendSkin / skin / \ 343 \ 200 \ 220 \ 351 \ 233 \ 250 \ 346 \ 254 \ 243 \ 343 \ 200 \ 221 \ 350 \ 222 \ 262 \ 345 \ 205 \ 254 \ 350 \ 213 \ 261 \ 347 \ 232 \ 204 \ 346 \ 200 \ 235 \ 345 \ 277 \ 265 / comp_567366.png.dpkg-new ': unexpected end of file or end of stream

Processing for mime-support (3.60) of the trigger ...
Processing libglib2.0-0 for: amd64 (2.56.1-2) triggers ...
is being processed for desktop-file-utils ( 0.23-3) ... trigger
being processed for gnome-menus (3.13.3-11) ... triggers
an error occurred while processing:
 sogoupinyin_2.2.0.0108_amd64.deb

above printing is deb packages belonging to damaged (due to the official website to download to your desktop is pulled into a virtual machine, it may be damaged during later found and paste in the virtual machine will not be damaged)
damaged deb package
 
normal deb packages
 
e, installation Sogou input again law
dpkg -i sogoupinyin_2.2.0.0108_amd64.deb 
print as follows:
(reading database ... system currently has a total of 324,374 files and directories installed.)
is preparing to unpack sogoupinyin_2.2.0.0108_amd64.deb ...
is the solution package sogoupinyin (2.2.0.0108) ...
dpkg: dependency problems prevent configuration sogoupinyin can not continue:
 sogoupinyin dependent on libfcitx-qt0 | fcitx-libs- qt; however:
  package libfcitx-qt0 not installed.
  Fcitx-libs-qt package is not installed.
 sogoupinyin dependent on libopencc2 | libopencc1; however:
  Package libopencc2 not installed.
  Libopencc1 package is not installed.
 sogoupinyin dependent on fcitx-libs (> = 4.2.7) ; however:
  Package fcitx-libs are not installed.
dpkg: error processing package sogoupinyin (--install):
 dependency problems - has not yet been configured
is being processed for mime-support (3.60) of the flip-flop ...
is being processed for libglib2.0-0: amd64 ( 2.56.1-2) ... trigger
cover scheme specified file /usr/share/glib-2.0/schemas/50_sogoupinyin.gschema.override org.gnome.settings-daemon.plugins.xsettings no key Gtk / iMModule; covering ignore this key.
Processing for desktop-file-utils (0.23-3) trigger ...
Processing gnome-menus (3.13.3-11) triggers for ...
being treated for shared-mime-info ( 1.9-2) triggers ...
is being processed for hicolor-icon-theme (0.17-2) triggers ...
an error occurred while processing:

 Sogoupinyin

As print unresolved package dependencies (not installed packages - have been marked in red)

f, downloading Sogou input method dependent packages
root @ kali: ~ # apt-
get install libfcitx-qt0 print as follows:
being reading package lists ... Done
Building dependency tree package       
reading state information ... Done       
You might want to run "apt --fix-broken install" to correct the above error.
The following packages have unmet dependencies:
 sogoupinyin: dependence: libopencc2 but it will not be installed or
                       libopencc1 but can not install it
               relies: fcitx-libs (> = 4.2.7 ) but it will not be installed
E: There unmet dependencies. Try not specify the name of the package to run "apt --fix-broken install" (you can also specify a solution).

Download where there may be other packages dependencies when a package (according to the printing tips to resolve - is marked in red)

Resolve as follows:
root @ Kali: ~ # APT --fix-Broken install
the following print:
Reading package lists ... Done
is analyzing the package dependency tree       
Reading state information ... Done       
being repaired dependencies ... complete the
following packages were automatically installed and are not necessary:
  libfreerdp-cache1.1 libfreerdp-client1.1 libfreerdp-codec1.1
  libfreerdp-common1.1.0 libfreerdp-core1.1 libfreerdp-crypto1.1
  libfreerdp-gdi1 libfreerdp-locale1.1 libfreerdp-.1 primitives1.1
  libfreerdp-utils1.1 libgcr. 3-Common-libjs-excanvas libtxc-DXTn-s2tc
  libwinpr-crt0.1 libwinpr-crypto0.1 libwinpr-dsparse0.1
  libwinpr-environment0.1 file0.1 libwinpr-handle0.1-libwinpr libwinpr-heap0.1
  libwinpr-input0.1 libwinpr-interlocked0.1 libwinpr-library0.1
  path0.1 libwinpr-pool0.1-libwinpr libwinpr-registry0.1 libwinpr-rpc0.1
  libwinpr-sspi0.1 libwinpr-synch0.1 libwinpr-sysinfo0.1 libwinpr-thread0.1
  libwinpr-Support-utils0.1 libxfont1 multiarch Python -unicodecsv
using 'apt autoremove' to uninstall it (them).
It will install the following software:
  fcitx-libs libfcitx-QT0 libopencc2 libopencc2-the Data
The following NEW packages will be installed:
  fcitx-libs libfcitx-QT0 libopencc2 libopencc2 the Data-
upgraded packages 0, 4 newly installed software package, 0 to remove the package, there are 284 packages are not upgraded.
There are a package is not fully installed or removed.
You need to download 1,439 kB of archives.
It will consume 7,318 kB of extra space after decompression.
You want to continue it? [Y / n] Y
obtain: 1 http://mirrors.aliyun.com/kali kali-rolling / main amd64 libfcitx-qt0 amd64 1: 4.2.9.6-2 [91.4 kB]
Get: 2 http://mirrors.aliyun.com/kali kali-rolling / main amd64 libopencc2-data all 1.0.4-5 [117 kB]
Gets: 3 http://mirrors.aliyun.com/kali kali-rolling / main amd64 libopencc2 amd64 1.0.4-5 [1,204 kB]
Gets: 4 http://mirrors.aliyun.com/kali kali-rolling / main amd64 fcitx-libs all 1: 4.2.9.6-2 [25.9 kB]
has Download 1,439 kB, took two seconds (886 kB / s)   
are selected package libfcitx-qt0 not selected: amd64.
(Reading database ... system currently has installed a total of 324,752 files and directories.)
Is preparing to unpack ... / libfcitx-qt0_1% 3a4.2.9.6-2_amd64.deb ...
is unpacked libfcitx-qt0 : amd64 (1: 4.2.9.6-2) ...
is selected libopencc2-data package is not selected.
Is preparing to unpack ... / libopencc2-data_1.0.4-5_all.deb ...
is unpacked libopencc2-data (1.0.4-5) ...
are selected packages are not selected libopencc2: amd64.
Is preparing to unpack ... / libopencc2_1.0.4-5_amd64.deb ...
Being unpacked libopencc2: amd64 (1.0.4-5) ...
are selected package fcitx-libs are not selected.
Is ready to unpack ... / fcitx-libs_1% 3a4.2.9.6-2_all.deb ...
are unpacked fcitx-libs (1: 4.2.9.6-2) ...
are disposed libopencc2-data (1.0. 4-5) ...
are disposed libopencc2: amd64 (1.0.4-5) ...
processing libc-bin (2.27-3) ... trigger for
being set libfcitx-qt0: amd64 (1: 4.2.9.6-2) ...
are disposed fcitx-libs (1: 4.2.9.6-2) ...
are disposed sogoupinyin (2.2.0.0108) ...
is a process for libc-bin (2.27-3) of trigger ...
root @ Kali: ~ #
above install additional dependencies have been resolved for several packages (downloaded package marked in red)

 

g, mounted again input

root@kali:~/mysoft# dpkg -i sogoupinyin_2.2.0.0108_amd64.deb 

Printing is as follows:
(Reading database ... system currently has installed a total of 325,087 files and directories.)
Is preparing to unpack sogoupinyin_2.2.0.0108_amd64.deb ...
is the sogoupinyin (2.2.0.0108) unpack (2.2 on .0.0108) ...
are disposed sogoupinyin (2.2.0.0108) ...
is a process for mime-support (3.60) triggers ...
is a process for libglib2.0-0: amd64 (2.56.1- 2) ... trigger
cover scheme specified file /usr/share/glib-2.0/schemas/50_sogoupinyin.gschema.override org.gnome.settings-daemon.plugins.xsettings no key Gtk / iMModule; ignore this covered bonds.
Processing for desktop-file-utils (0.23-3) trigger ...
Processing gnome-menus (3.13.3-11) triggers for ...
being treated for shared-mime-info ( 1.9-2) trigger ...
processing for hicolor-icon-theme (0.17-2) triggers ...
the root Kali @: ~ / # mysoft that

the installation is completed Sogou input method

 

7, download debsums verification tool

【Note】

On Debian / Ubuntu system, you can use the tool to verify debsums packages have been installed and MD5. If you want to know information about debsums package before installation, you can use APT-CACHE, like this:
apt-Cache Search debsums
Next, use the apt command to install it as follows:
sudo apt install debsums
can now see debsums how to use the tool to verify MD5 package has been installed and the.
Note: I use the following command sudo at all, because the average user may not have read permissions to certain files.
In addition, the output from debsums command on the left shows the file location on the right shows the test results. You'll get three possible outcomes, which include:
• OKDD show MD5 of a file and is good.
• FAILEDDD MD5 indicates that a file does not match.
• REPLACEDDD file means that a particular file is from another package being replaced.
--- from
https://blog.csdn.net/linuxnews/article/details/52968229

A, check the MD5
the root Kali @: ~ / # debsums sogoupinyin_2.2.0.0108_amd64.deb mysoft that
is printed as follows:
/ usr / bin / sogou-diag OK
/usr/bin/sogou-qimpanel                                                       OK
/usr/bin/sogou-qimpanel-watchdog                                              OK
/usr/bin/sogou-session                                                        OK
/usr/bin/sogou-sys-notify                                                     OK
/usr/lib/mime/packages/fcitx-ui-sogou-qimpanel                                OK
/usr/lib/x86_64-linux-gnu/fcitx/fcitx-autoeng-ng.so                           OK
/usr/lib/x86_64-linux-gnu/fcitx/fcitx-fullwidth-char-enhance.so               OK
/usr/lib/x86_64-linux-gnu/fcitx/fcitx-punc-ng.so                              OK
/usr/lib/x86_64-linux-gnu/fcitx/fcitx-sogoucloudpinyin.so                     OK
/usr/lib/x86_64-linux-gnu/fcitx/fcitx-sogoupinyin.so                          OK

......

/ usr / share / sogou-qimpanel / skin / default skin the OK /skin2_1.bmp
/ usr / share / sogou-qimpanel / skin / default skin the OK /skin2_2.bmp
/ usr / share / sogou-qimpanel / skin / default skin / the OK skinmanager1.png
/ usr / Share / Sogou-qimpanel / skin / default skin the OK /skinmanager2.png
/ usr / Share / Sogou-qimpanel / skin / default skin the OK /skinmanager3.png
/ usr / Share / Sogou-qimpanel / zh_CN the OK .qm
/ usr / Share / sogoupinyin / Sogou the OK-Version
/usr/share/sogoupinyin/sogoupinyin.list the OK
the root Kali @: ~ / # mysoft that

B, restarting
the root Kali @: ~ / # reboot mysoft that

C, found the configuration fcitx

 

 

 

End of this article. mutual encouragement.

Reprinted from https://blog.csdn.net/haodong_cc/article/details/80362495

Guess you like

Origin blog.csdn.net/qq_35793285/article/details/81209822