安装制作启动盘,F2+F8+F12 同时按几乎进所有电脑启动选项。
1 联网 (将列表中的外国的源改成中国的以大大提高下载速度 https://blog.csdn.net/oyueyang1/article/details/79236599)
2 更新源,换中国的源(如更新失败:https://blog.csdn.net/nyist_yangguang/article/details/109690921)
3 安装fcitx (如安装失败:https://blog.csdn.net/nyist_yangguang/article/details/109692701)
注:fcitx是一个输入框架,支持各种中英文输入,但是需要你下载拼音输入法,我用的是搜狗输入法。
fcitx框架下的搜狗拼音输入法
1. 在 http://pinyin.sogou.com/linux/ 网页中下载相应版本(32位/64位),我下载的是:
sogoupinyin_2.2.0.0108_i386.deb
2. 打开终端,用dpkg命令安装刚才下载的输入法deb包:
sudo dpkg -i sogoupinyin_2.1.0.0086_amd64.deb
正常情况下,输入法依赖包没有安装全,本次安装会提示错误,如下所示:
3. 解决以上依赖问题,在终端中输入:
sudo apt-get install --fix-broken
这里—fix-borken是apt-get的一个命令选项,具体解释(man apt-get)如下:
-
-f, --fix-broken
-
Fix; attempt to correct a system with broken dependencies in place. This option, when used with install/remove, can omit any packages to permit APT to deduce a likely solution. If packages are specified, these have to completely correct the problem. The option is sometimes necessary when running APT for the first time; APT itself does not allow broken package dependencies to exist on a system. It is possible that a system's dependency structure can be so corrupt as to require manual intervention (which usually means using dpkg --remove to eliminate some of the offending packages). Use of this option together with -m may produce an error in some situations. Configuration Item: APT::Get::Fix-Broken.
其实从dpkg的错误信息可知,安装sougou拼音输入法失败是因为缺少:libopencc2、libopencc1、fcitx-libs、fcitx-libs-qt等安装包,根据经验,我猜测可以用apt-get install XXX单独安装每一个包;
4. 上述依赖包安装完之后,再次在终端中输入:
sudo dpkg -i sogoupinyin_2.1.0.0086_amd64.deb
正确安装sougoupinyin:
5. 在系统设置(system setting)-- Language setting中将“input method”设置为fcitx;并安装Fcitx框架必要的组件,由于我安装时忘记截图了,下面显示的绿色是可选组件,可以不用安装。若是必要组件,会显示为红色。
6. 注销账户(或重启),重新登录。在系统设置(system setting)-- fcitx configuration的input method页签中点击“+”号,会出现刚才安装了的sougoupinyin输入法,将输入法添加到系统中。
7. 再次注销或重启,整个安装就结束了,输入法就能用了。可以打开中断试试,输入法切换的默认方式是shift 或 ctrl + space.(可以在 fcitx configuration的global config页签中查看)
一些坑
- 不是自己特别懂的情况下不要改其他乱七八糟的系统language和locales,可能会导致你的系统无法使用;
- 不用update系统—没那么复杂
- 不要轻易改什么/etc/environment、/etc/locale.gen文件,都是坑;