首页 文章

Sublime text和Linux-KDE . 系统区域设置设置为无法处理非ASCII字符的值

提问于
浏览
0

我打开ST3时收到此错误 . 包控制不起作用 .

包控制您的系统的本地设置为无法处理非ASCII字符的值 . 除非已修复,否则Package Control无法正常工作 . 在Linux上,请参考您的发行版文档,以正确设置LANG环境变量 . 作为临时解决方法,您可以从终端启动Sublime Text:LANG = en_US.UTF-8 sublime_text

当前的解决方法不起作用 . 此外,当我在终端中写'locale'时,我得到:

locale: Cannot set LC_CTYPE to default locale: No such file or directory                                                             
locale: Cannot set LC_MESSAGES to default locale: No such file or directory                                                          
locale: Cannot set LC_ALL to default locale: No such file or directory                                                               
LANG=en_EC.UTF-8                                                                                                                     
LANGUAGE=en:es:en                                                                                                                    
LC_CTYPE="en_EC.UTF-8"                                                                                                               
LC_NUMERIC=en_EC.UTF-8                                                                                                               
LC_TIME=en_EC.UTF-8                                                                                                                  
LC_COLLATE="en_EC.UTF-8"                                                                                                             
LC_MONETARY=en_EC.UTF-8                                                                                                              
LC_MESSAGES="en_EC.UTF-8"                                                                                                            
LC_PAPER=en_EC.UTF-8                                                                                                                 
LC_NAME=en_EC.UTF-8                                                                                                                  
LC_ADDRESS=en_EC.UTF-8                                                                                                               
LC_TELEPHONE=en_EC.UTF-8                                                                                                             
LC_MEASUREMENT=en_EC.UTF-8                                                                                                           
LC_IDENTIFICATION=en_EC.UTF-8                                                                                                        
LC_ALL=

请帮忙 . 我在Ubuntu KDE,我现在盲目编码,没有安装任何崇高的软件包 .

1 回答

  • 0

    尝试在ChromeOS的Chroot,Sublime Text Build 3083中通过the prescribed method在Ubuntu 14.04 LTS上安装Package Control时遇到了同样的问题 .

    这个问题的一个明智的解决方案存在于此问题的副本中:https://askubuntu.com/a/440341/200027

    该解决方案涉及将“bash -c”LANG = en_US.UTF-8 / opt / sublime_text / sublime_text“添加到位于/usr/applications/share/sublime_text.desktop的Sublime的.desktop统一启动文件的相应Exec行中,如下所示:

    [Desktop Entry]
    Version=1.0
    Type=Application
    Name=Sublime Text
    GenericName=Text Editor
    Comment=Sophisticated text editor for code, markup and prose
    Exec=bash -c "LANG=en_US.UTF-8 /opt/sublime_text/sublime_text %F"
    Terminal=false
    MimeType=text/plain;
    Icon=sublime-text
    Categories=TextEditor;Development;
    StartupNotify=true
    Actions=Window;Document;
    
    [Desktop Action Window]
    Name=New Window
    Exec=bash -c "LANG=en_US.UTF-8/opt/sublime_text/sublime_text -n"
    OnlyShowIn=Unity;
    
    [Desktop Action Document]
    Name=New File
    Exec= bash -c "LANG=en_US.UTF-8/opt/sublime_text/sublime_text --command new_file"
    OnlyShowIn=Unity;
    

    请注意,您需要sudo来编辑该桌面启动文件 .

相关问题