博主用的是VM下的ubuntu18.04,在学习以及做项目的过程中遇到了一些问题,因此在这里做一个记录,希望也能帮助各位小伙伴们。
1.安装时出现404,以及Failed to fetch......
方案:切换国内源
-
执行备份命令:sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
-
sudo vim /etc/apt/sources.list
-
换源(根据ubuntu镜像中推荐的源)
ubuntu | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
-
更新:sudo apt-get update
2.安装中文输入法
1.终端输入以下命令
sudo apt install fcitx fcitx-googlepinyin fcitx-table-wbpy fcitx-pinyin fcitx-sunpinyin
2.系统设置中,language support选择fcitx
3.reboot以后,取消show current language,如下:
然后搜索想要的输入法,如google pinyin,添加即可。