In Ubuntu, How to install Chinese Pinyin with Fcitx?

First, We check whether we have alreadly installed Fcitx. Check Settting --> Language --> Language Suuport --> Keyboard input method system.

If not, We should install fcitx first.

Command: sudo apt-get install fcitx-bin

if encounter problems:  E: Could not get lock /var/bin/dpkg/lock - open (11: Resource temporarily unavailable)  E: unable to lock the administration directory (/var/lib/dpkg), is another process using it?


Then you should solve the problem like this:

1.Delete the lock file with command:

sudo rm /var/lib/apt/lists/lock

You also need to delete the lock file in the cache directory

1. sudo rm /var/chche/apt/archives/lock

2. sudo rm /var/lib/dpkg/lock

Next, Restart the system.

Chnage the keyboard input method system to fcitx and add pinyin.

 

  

 

posted @ 2018-10-17 11:37  小和尚写代码  阅读(234)  评论(0编辑  收藏  举报