zoukankan      html  css  js  c++  java
  • Ubuntu编码问题


    Ubuntu编码问题


    root@magus-18:/srv/rorapps/fgcc# rails -v
    Sorry, command-not-found has crashed! Please file a bug report at:
    https://bugs.launchpad.net/command-not-found/+filebug
    Please include the following information with the report:
    
    command-not-found version: 0.3
    Python version: 3.3.1 final 0
    Distributor ID:	Ubuntu
    Description:	Ubuntu 13.04
    Release:	13.04
    Codename:	raring
    Exception information:
    
    unsupported locale setting
    Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 24, in crash_guard
        callback()
      File "/usr/lib/command-not-found", line 69, in main
        enable_i18n()
      File "/usr/lib/command-not-found", line 40, in enable_i18n
        locale.setlocale(locale.LC_ALL, '')
      File "/usr/lib/python3.3/locale.py", line 541, in setlocale
        return _setlocale(category, locale)
    locale.Error: unsupported locale setting



    方案:

    sudo vim /etc/default/locale

    add 

    LC_CTYPE="en_GB.UTF-8"


    又一次加载

    source /etc/default/locale










  • 相关阅读:
    两排滚动js
    弹性布局
    channelartlist添加栏目链接
    首页调取二级、三级栏目
    dede完美分页样式
    如何安装sass
    首页分页(自由列表)
    tag标签调取
    25.简单的路由
    24.简单的自定义服务
  • 原文地址:https://www.cnblogs.com/yjbjingcha/p/6797207.html
Copyright © 2011-2022 走看看