I'm getting this error when I open ST3. Package control is not working.
我打开ST3时收到此错误。包控制不起作用。
Package Control Your system's local is set to a value that can not handle non ASCII characters. Package Control can not properly work unless this is fixed.
程序包控制系统的本地设置为无法处理非ASCII字符的值。除非已修复,否则程序包控制无法正常工作。
On Linux, please reference your distribution's docs for on properly setting the LANG environmental variable. As a temporary work-around, you can launch Sublime Text from the terminal with:
在Linux上,请参考您的发行版的文档,以正确设置LANG环境变量。作为临时解决方法,您可以从终端启动Sublime Text:
LANG=en_US.UTF-8 sublime_text
The termporary workaround doesn't work. Also, when I write 'locale' in the terminal I get:
当前的解决方法不起作用。另外,当我在终端中写'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=
Please help. I'm on Ubuntu+KDE, Im coding blindly now with no sublime packages installed.
请帮忙。我正在使用Ubuntu + KDE,我现在盲目编码,没有安装任何sublime软件包。
1 个解决方案
#1
0
I had the same issue while attempting to install Package Control on Ubuntu 14.04 LTS via the prescribed method within Chroot of ChromeOS, Sublime Text Build 3083.
尝试通过ChromeOS的Chroot,Sublime Text Build 3083中的规定方法在Ubuntu 14.04 LTS上安装Package Control时遇到了同样的问题。
A sensible solution for this problem exists in a duplicate of this issue here: https://askubuntu.com/a/440341/200027
这个问题的一个明智的解决方案存在于此问题的副本中:https://askubuntu.com/a/440341/200027
The solution involves adding "bash -c "LANG=en_US.UTF-8 /opt/sublime_text/sublime_text" to the appropriate Exec lines of Sublime's .desktop unity launch file located at /usr/applications/share/sublime_text.desktop as follows:
该解决方案涉及将“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;
Note that you will need sudo to edit that desktop launch file.
请注意,您需要sudo来编辑该桌面启动文件。
#1
0
I had the same issue while attempting to install Package Control on Ubuntu 14.04 LTS via the prescribed method within Chroot of ChromeOS, Sublime Text Build 3083.
尝试通过ChromeOS的Chroot,Sublime Text Build 3083中的规定方法在Ubuntu 14.04 LTS上安装Package Control时遇到了同样的问题。
A sensible solution for this problem exists in a duplicate of this issue here: https://askubuntu.com/a/440341/200027
这个问题的一个明智的解决方案存在于此问题的副本中:https://askubuntu.com/a/440341/200027
The solution involves adding "bash -c "LANG=en_US.UTF-8 /opt/sublime_text/sublime_text" to the appropriate Exec lines of Sublime's .desktop unity launch file located at /usr/applications/share/sublime_text.desktop as follows:
该解决方案涉及将“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;
Note that you will need sudo to edit that desktop launch file.
请注意,您需要sudo来编辑该桌面启动文件。