Solving the problem of being unable to input Chinese under Ubuntu

1. First download a Chinese input method package , such as Sogou input method, official website: Sogou input method for linux 

   For example, the downloaded package is: sogoupinyin_2.4.0.3469_amd64.deb

2. Install Sogou command:

sudo dpkg -i sogoupinyin_2.4.0.3469_amd64.deb 

3. Error: dpkg: Dependency issues prevent the configuration of sogoupinyin from continuing. You need to install fcitx. Command :

sudo apt install fcitx

4. An error may be reported: E: There are unsatisfied dependencies. Try running "apt --fix-broken install" without specifying the package name (you can also specify a workaround).

解决:执行命令:   apt --fix-broken install    
或安装:依赖于fcitx-module-kimpanel命令:  sudo apt --fix-broken install fcitx-module-kimpanel

5. An error may also be reported: Ubuntu cannot open the lock file /var/lib/dpkg/lock-frontend – open (13: Insufficient permissions) Solution :

#输入两次密码
sudo passwd root
#再输入一次密码
su

然后执行命令:apt --fix-broken install

6. Execute the command to install fcitx and Sogou Pinyin:

sudo apt install fcitx
sudo dpkg -i sogoupinyin_2.4.0.3469_amd64.deb 

7. Simply configure it in the Fcitx configuration

 8. If Sogou input method is installed on Ubuntu, it will solve the problem that the input box is always displayed in the lower left corner.

(Solution 1: Click on Sogou’s status -> Appearance ->...

    Solution 2 (if you don’t see the candidate window following the cursor): uninstall and reinstall it, otherwise you can just make do with it)

Reference article:

"Installing and Uninstalling Sogou Input Method on Ubuntu"

Ubuntu Installation and Uninstallation of Sogou Input Method - Sincere_Ye - Blog Park

"Ubuntu terminal cannot input or display Chinese problem (personal test is simple and effective)"

The ubuntu terminal cannot input or displays Chinese (personal test is simple and effective)_Zhou_yongzhe's blog-CSDN blog_ubuntu terminal cannot input

"Ubuntu cannot open the lock file /var/lib/dpkg/lock-frontend – open (13: Insufficient permissions)"

Ubuntu cannot open the lock file /var/lib/dpkg/lock-frontend – open (13: Insufficient permissions)_heibaigezi's blog-CSDN blog

Guess you like

Origin blog.csdn.net/weixin_45630258/article/details/121578431