1. Download Sogou input method and select 32/64 according to the ubuntu system
https://pinyin.sogou.com/linux/
2, sudo dpkg -i sogoupinyin_2.2.0.0102_amd64.deb
The following error will appear,
3. Execute sudo apt-get install -f
Execute again sudo dpkg -i sogoupinyin_2.2.0.0102_amd64.deb
After the installation is successful, restart the system with sudo reboot
4. Right-click on the keyboard to switch the Sogou input method