Skip to content

Instantly share code, notes, and snippets.

@jzztf
Last active May 8, 2018 03:11
Show Gist options
  • Save jzztf/3ff506be39dda16232d291e396e8b3ed to your computer and use it in GitHub Desktop.
Save jzztf/3ff506be39dda16232d291e396e8b3ed to your computer and use it in GitHub Desktop.
诡异的bug

fcitx

lunbuntu-fcitx搜狗拼音输入法最近总崩溃,看着内存没使用多少,计算机就卡住了.怀着对搜狗的不信任,决定使用googlepinyin,还担心有遗漏,结果就是重装fcitx多次,出现各种warning,结果不知怎么重启后,设置inputmethod,就好了

  • 完全卸载fcitx

sudo apt-get remove fcitx*

  • 安装fcitx,使用了synaptic,因为其会自动标记所需包,同时勾选googlepinyin
  • 使用fcitx-diagnose能够检测哪里有问题,主要fcitx-remote没有启动,google不到答案
  • $ fcitx-config-gtk3设置窗口中,"input method"是空的,百思不得其解.很可能fcitx没有启动,可能多重启几次就好了
  • 最后也没弄明白哪里出问题,不过googlepinyin能用了

linux-update

当运行sudo apt update时,warning信息中有,某某更改多次,还包含哪一行哪一行,结果就是直接注释掉提示的行.注释掉了"restricted"

科普:

  • deb:与二进制包相关,使用apt安装时需要的
  • deb-src: 使用apt-get source $package,然后编译安装,需要
  • 如果使用"synaptic"或"apt"安装,deb-src是不需要的

ubuntu中Main, Restricted, Universe, and Multiverse分别代表什么:

  • main: 官方支持,开源软件
  • restricted: 官方支持,闭源软件
  • universe: 社团支持,开源软件
  • multiverse: 不被支持的闭源软件

新系统更换源

  • sudo vim /etc/apt/source.list
  • :s/old-url/new-url/g
  • 也可以:m,ns/^deb-src/#deb-src/g注释掉deb-src的
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment