标签:ring windows win 序号 attr 查找 exit 字符串 常见错误
这是之前错误地编辑了 /etc/sudoers 这个文件导致的,因此撤销编辑即可,但由于已经不能使用 sudo 命令,因此不能直接进行编辑。
pkexec visudo 后,再输入用户密码,就可以对文件进行编辑sudo gedit /etc/default/grubsudo update-grub 更新 grub即可。sudo gedit /etc/default/rcS,将 UTC=yes 改成 UTC=no 即可。运行 ps -A | grep nautilus 结果如下所示: 
5463 ? 00:00:02 nautilus 
运行 sudo kill 54631,结束文件管理器进程,然后就可以打开了。
也可以直接打开任务管理器,结束文件管理器对应的 nautilus 进程。
sudo apt-get install xxx 时出错,Could not get lock /var/lib/dpkg/lock  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
  E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it  sudo rm /var/cache/apt/archives/lock
  sudo rm /var/lib/dpkg/lock  sudo apt-get install dconf-editor
  dconf-editor
  ps -ef | grep fcitx-qimpanel 
  sudo kill -9 [对应的pid]  sudo gedit /etc/rc.local
   # 在exit 0之前添加如下代码
   /bin/ps -ef | grep fcitx-qimpanel | grep -v grep | awk ‘{print $2}‘ | xargs kill -9
  ps -e 显示所有进程,-f 全格式。
  grep -v 反向匹配,即匹配不包括后面字符串的内容。sudo apt-get install zh-autoconvert
sudo apt-get install zhcon
$ sudo gedit /var/lib/locales/supported.d/local 在文件中加入加入
zh_CN.GBK GBK
zh_CN.GB2312 GB2312
$ sudo locale-gen
$ sudo gedit /etc/environment,增加以下内容:
LANGUAGE=”zh_CN:zh:en_US:en”
LANG=zh_CN.GBK
$ source /etc/environment  sudo apt-get  install p7zip-full
  LANG=C 7z x file.zip
  convmv -f gbk -t utf8 -r --notest *  unzip -O CP936 file.zip  sudo apt-get  install unar
  unar file.zip获取更多精彩,请关注「seniusen」! 
标签:ring windows win 序号 attr 查找 exit 字符串 常见错误
原文地址:https://www.cnblogs.com/seniusen/p/9314126.html