Package control sublime text 3 ошибка

Docs

  • There are no packages available for installation
  • Purging and Reinstalling
  • Enabling the Debug Log
  • Windows Errors 12029 and 12057

There are no packages available for installation

This message is displayed whenever Package Control can not find any packages
that are installable. The most common reason for this is an HTTP error in
downloading package information from the default channel.

To help resolve the issue, follow these steps:

  1. Select the
    menu entry
  2. Look for any lines starting with Package Control:
  3. Try enabling the debug log for
    more information
  4. Ensure any proxy information is set in
    the Package Control settings
  5. If you have a proxy and it rewrites secure connections, add its CA cert
    as trusted:

    1. Click the menu
    2. Open the User folder
    3. Create a file named Package Control.user-ca-bundle and
      paste in a PEM-formatted version of the certificate
  6. Make sure you have the latest version of Package Control installed:
    3.3.0
  7. If you are still having trouble, review the
    open
    issues. If you do not find a relevant issue, please open a new
    one, and be sure to include your debug log.

Purging and Reinstalling

Many users run into issues with Package Control because they have an old,
broken or pre-release version of Package Control that has become stuck.
Since Package Control updates itself, a bug can prevent the automatic
upgrade from working, leaving users orphaned on an old version.

The first step in debugging issues with Package Control is to purge
any existing copies.

  1. Select the menu entry
  2. Remove «Package Control» from the «ignored_packages»
    setting, if present
  3. Select the menu entry
  4. Delete the folder named Package Control
  5. Browse up a folder and then into Installed Packages
  6. Delete Package Control.sublime-package if it exists
  7. Reinstall Package Control using the
    installation instructions

Enabling the Debug Log

If purging and reinstalling did not help resolve an issue, the next step
is to enable the debug log. The debug log contains extensive information
about what Package Control is doing behind the scenes, and can help to
diagnose why it isn’t working properly.

  1. Click the menu
  2. Select
  3. Choose
  4. Click
  5. Add the setting «debug»: true
  6. Save the settings file

Now when performing actions with Package Control, debug information will
be printed to the Sublime Text console. The console can be opened by
pressing ctrl+` or using the menu entry.

Windows Errors 12029 and 12057

On Windows, Package Control utilizes the WinINet C++ API for web requests.
This allows Package Control to rely on your OS for auto-configuration of
proxies and secure certificate validation.

Unfortunately there are a couple of common WinINet errors that users run
into, including:

  • Connection refused (errno 12029) during HTTP write phase of
    downloading
  • Error checking for server certificate revocation (errno 12057)
    during HTTP write phase of downloading

Since WinINet is a system API, it is configured through Internet Explorer.

Errno 12029

A number of users have reported success in resolving this issue by resetting
the Internet Explorer advanced settings to their default values.

  1. Open Internet Explorer
  2. Click the gear icon
  3. Select Internet Options
  4. Change to the Advanced tab
  5. Click the Reset Advanced Settings button
  6. Scroll down to the Security section of the options
  7. Verify that TLS 1.0, TLS 1.1 and TLS 1.2 are checked

Errno 12057

Some users run into issues trying to check for SSL certificate revocation.
This may have to do with a proxy server not properly proxying the requests
for the certificate revocation list.

  1. Open Internet Explorer
  2. Click the gear icon
  3. Select Internet Options
  4. Change to the Advanced tab
  5. Scroll down to the Security section of the options
  6. Uncheck the option Check for server certificate revocation*
  7. Restart your machine

This error indicates something on your machine is blocking the connection
to the server. It could be any number of different things.

Go back to the installation page and follow the instructions in the Manual section:

  1. Click the Preferences > Browse Packages… menu
  2. Browse up a folder and then into the Installed Packages/ folder
  3. Download Package Control.sublime-package and copy it into the Installed Packages/ directory
  4. Restart Sublime Text

This should install Package Control for you without any problems.

EDIT

Please read through this issue here, and follow wbond’s instructions to install from git. First, completely quit Sublime, then remove all traces of Package Control — any folders in ~/.config/sublime-text-3/Packages, any files in ~/.config/sublime-text-3/Installed Packages, the folder ~/.config/sublime-text-3/Packages/User/Package Control.cache, and any files in ~/.config/sublime-text-3/Packages/User that start with Package Control.*Package Control.last-run, Package Control.sublime-settings, Package Control.system-ca-bundle, and anything else you can find.

Next, assuming you have git installed (run sudo apt-get install git if you don’t), switch to ~/.config/sublime-text-3/Packages and run

git clone https://github.com/wbond/package_control.git "Package Control"

to clone the master repo (make sure you’ve completely quit Sublime before running this). Restart Sublime and see if everything installs properly. If not, follow the instructions for creating a debug log, restart Sublime to generate the log, open the Console by selecting View -> Show Console, then copy the entire contents (it’ll be a lot) into a new file. Open a new issue and describe exactly what the problem is, including all the details above and the fact that you just installed from the master branch, and paste in the contents of the debug log (make sure you put it in a code block by adding triple backticks «` before and after). Will Bond (wbond) should get in touch with some suggestions.

Good luck!


Note for users of other operating systems: I’m not sure if this is a Linux-only problem or not, but in case it isn’t, Mac users will find Packages and Installed Packages in ~/Library/Application Settings/Sublime Text 3, while Windows users with standard (i.e., non-portable installs) will find them in your user directory under AppDataRoamingSublime Text 3. For Windows portable installs, the directories should be in your install directory under Data.

Здравствуйте. установил Sublime Text, добавил в него package control, начал добавлять в него плагины, в моем списке было несколько плагинов но из все установился лишь SFTP плагин. В консоли показывается ошибка 12157
Вот код из консоли.

DPI scale: 1
startup, version: 3065 windows x32 channel: stable
executable: /C/Program Files/Sublime Text 3/sublime_text.exe
working dir: /C/Program Files/Sublime Text 3
packages path: /C/Documents and Settings/777/Application Data/Sublime Text 3/Packages
state path: /C/Documents and Settings/777/Application Data/Sublime Text 3/Local
hardware concurrency: 2
zip path: /C/Program Files/Sublime Text 3/Packages
zip path: /C/Documents and Settings/777/Application Data/Sublime Text 3/Installed Packages
found 5 files for base name Default.sublime-keymap
found 1 files for base name Default.sublime-mousemap
found 4 files for base name Main.sublime-menu
loading bindings
loading pointer bindings
found 1 files for base name Default.sublime-theme
theme loaded
app ready
startup cache, total files: 179 cache hits: 179
pre session restore time: 0.217875
startup time: 0.342875
first paint time: 0.342875
launching: /C/Program Files/Sublime Text 3/plugin_host.exe
loaded 837 snippets
reloading plugin Default.block
reloading plugin Default.comment
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_file_settings
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin 0_package_control_loader.00-package_control
reloading plugin Package Control.bootstrap
reloading plugin Package Control.Package Control
reloading plugin emmet-sublime-master.emmet-plugin
reloading plugin SFTP.SFTP
plugins loaded
Emmet: No need to update PyV8
Package Control: Installing 1 missing dependencies
Package Control: Attempting to use Urllib downloader due to WinINet error: Error downloading package. Secure channel error, server not providing SSL (errno 12157) during HTTP write phase of downloading https://codeload.github.com/codexns/sublime-bz2/zip/1.0.0.
Exception in thread Thread-3:
Traceback (most recent call last):
  File "package_control.download_manager in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 264, in fetch
  File "package_control.downloaders.wininet_downloader in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 377, in download
Package Control.package_control.downloaders.win_downloader_exception.WinDownloaderException: Error downloading package. Secure channel error, server not providing SSL (errno 12157) during HTTP write phase of downloading https://codeload.github.com/codexns/sublime-bz2/zip/1.0.0.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./threading.py", line 901, in _bootstrap_inner
  File "package_control.automatic_upgrader in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 111, in run
  File "package_control.automatic_upgrader in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 162, in install_missing
  File "package_control.package_manager in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 756, in install_package
  File "package_control.download_manager in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 308, in fetch
  File "package_control.download_manager in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 264, in fetch
  File "package_control.downloaders.urllib_downloader in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 102, in download
  File "package_control.downloaders.urllib_downloader in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 275, in setup_opener
  File "package_control.ca_certs in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 50, in get_ca_bundle_path
  File "package_control.ca_certs in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 139, in get_system_ca_bundle_path
  File "package_control.ca_certs in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 394, in _win_create_ca_bundle
  File "package_control.http.x509 in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 472, in parse
  File "package_control.http.x509 in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 452, in load
  File "package_control.http.x509 in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 452, in load
  File "package_control.http.x509 in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 447, in load
  File "package_control.http.x509 in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 95, in read
  File "package_control.http.x509 in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 174, in _read_value
  File "package_control.http.x509 in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 245, in _decode_integer
TypeError: 'bytes' object does not support item assignment

ignored packages updated to: [Vintage, FileDiffs]
found 1 files for base name Default.sublime-theme
reloading Packages/User/Package Control.sublime-settings
theme loaded
reloading Packages/User/Preferences.sublime-settings
found 1 files for base name Default.sublime-theme
theme loaded
Exception in thread Thread-9:
Traceback (most recent call last):
  File "./threading.py", line 901, in _bootstrap_inner
  File "package_control.package_installer in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 212, in run
  File "package_control.package_manager in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 756, in install_package
  File "package_control.download_manager in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 264, in fetch
  File "package_control.downloaders.urllib_downloader in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 102, in download
  File "package_control.downloaders.urllib_downloader in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 275, in setup_opener
  File "package_control.ca_certs in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 50, in get_ca_bundle_path
  File "package_control.ca_certs in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 139, in get_system_ca_bundle_path
  File "package_control.ca_certs in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 394, in _win_create_ca_bundle
  File "package_control.http.x509 in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 472, in parse
  File "package_control.http.x509 in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 452, in load
  File "package_control.http.x509 in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 452, in load
  File "package_control.http.x509 in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 447, in load
  File "package_control.http.x509 in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 95, in read
  File "package_control.http.x509 in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 174, in _read_value
  File "package_control.http.x509 in C:Documents and Settings777Application DataSublime Text 3Installed PackagesPackage Control.sublime-package", line 245, in _decode_integer
TypeError: 'bytes' object does not support item assignment

ignored packages updated to: [Vintage]
found 1 files for base name Default.sublime-theme
theme loaded
reloading Packages/User/Package Control.sublime-settings
reloading Packages/User/Preferences.sublime-settings
found 1 files for base name Default.sublime-theme
theme loaded
reloading Packages/User/Preferences.sublime-settings
found 1 files for base name Default.sublime-theme
theme loaded

Кто-нибудь может помочь решить проблему?

I realized like a week ago that I cannot install any new packages via Package Control. I tried everything even reinstalling sublime, while cleaning all files /Library/Application Support/ everything. Still the same problem. Any ideas?

ignored packages updated to: ["Emmet", "Vintage"]
reloading settings Packages/User/Package Control.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
Package Control: Error downloading package. HTTP exception InvalidCertificateException (Host codeload.github.com returned an invalid certificate ([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:548))) downloading https://codeload.github.com/sergeche/emmet-sublime/zip/master.
error: Package Control

Unable to download Emmet. Please view the console for more details.
ignored packages updated to: ["Vintage"]
reloading settings Packages/User/Package Control.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings

asked Nov 3, 2016 at 13:59

DominikN.'s user avatar

2

You can change the precedence of the downloader in ~/.config/sublime-text-3/Packages/User/Package Control.sublime-settings.

"downloader_precedence":
{
    "linux":
    [
        "urllib",
        "curl",
        "wget"
    ],
    "osx":
    [
        "curl",
        "urllib"
    ],
    "windows":
    [
        "wininet"
    ]
},

Changing urllib to curl has worked for me.

answered Nov 15, 2018 at 5:47

bhanu's user avatar

bhanubhanu

2,2223 gold badges24 silver badges35 bronze badges

1

For OSX:

bhanu’s answer is correct but my «Package Control Settings — User» file was not at that exact location. More general instructions:

  • Open Command Palette (Cmd+Shift+P on Mac)
  • Type Package Control Settings
  • Open ‘Package Control Settings — Default‘ and search for downloader_precedence
  • It probably looks like this — note the default osx downloader is "urllib":
"downloader_precedence": {
        "windows": ["wininet"],
        "osx": ["urllib"],
        "linux": ["urllib", "curl", "wget"]
    },
  • You can’t actually edit the Default. Override this setting by going to Command Palette > ‘Package Control Settings — User
  • Copy-paste the snippet above into the User file (correct indentation and add comma after existing settings if needed) and make "curl" the first osx downloader:
"downloader_precedence": {
        "windows": ["wininet"],
        "osx": ["curl", "urllib"],
        "linux": ["urllib", "curl", "wget"]
    },

answered May 15, 2020 at 3:11

Casey L's user avatar

Casey LCasey L

60710 silver badges16 bronze badges

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account

Closed

kajiatsushi opened this issue

Jul 22, 2013

· 32 comments

Comments

@kajiatsushi

I installed package control via GIT install using terminal on 10.8.4

When I load up sublime text 3 afterwards, this message pops up

«
Package Control

Your system’s locale is set to a value that can not handle non-ASCII characters. Package Control can not properly work unless this is fixed.

On Linux, please reference your distribution’s docs for information on properly setting the LANG environmental variable. As a temporary work-around, you can launch Sublime Text from the terminal with:

LANG=en_US.UTF-8 sublime_text
«

@contentfree

Same. I’m on OSX and get the same message. locale states:

LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

… so I should be good. What is PC looking for?

@contentfree

A workaround / fix for Mac OSX:

  1. Run sudo vim /etc/launchd.conf
  2. Add: setenv LANG en_US.UTF-8
  3. Run grep -E "^setenv" /etc/launchd.conf | xargs -t -L 1 launchctl
  4. Quit and relaunch ST3. Should no longer raise the error message.

@wbond

@havenchyk

same on windows 7

reg query «hklmsystemcontrolset001controlnlslanguage» /v Installlanguage

HKEY_LOCAL_MACHINEsystemcontrolset001controlnlslanguage
Installlanguage REG_SZ 0419

@albertojm8

I’m having this same issue on Linux, using sublime text 3 (build 3047). After installing using git:

git clone https://github.com/wbond/sublime_package_control.git «Package Control»
cd «Package Control»
git checkout python3

Package Control

Your system’s locale is set to a value that can not handle non-ASCII characters. Package Control can not properly work unless this is fixed.

On Linux, please reference your distribution’s docs for information on properly setting the LANG environmental variable. As a temporary work-around, you can launch Sublime Text from the terminal with:

LANG=en_US.UTF-8 sublime_text

My LANG is actually set to es_ES.utf8

@wbond

This message is only displayed when python throws an exception trying to create a file path for a folder that includes a non-ASCII character.

So something with your locale is messed up. Unfortunately I don’t have much other advice than to try some other locales and see if they help.

@mikeshultz

Same problem on linux, with the latest pull from the python3 branch.

$ locale
LANG=en_US.UTF-8
LC_CTYPE=C
LC_NUMERIC=C
LC_TIME=C
LC_COLLATE=C
LC_MONETARY=C
LC_MESSAGES=C
LC_PAPER=C
LC_NAME=C
LC_ADDRESS=C
LC_TELEPHONE=C
LC_MEASUREMENT=C
LC_IDENTIFICATION=C
LC_ALL=

@wbond Can you provide an interactive python session/command so we can reproduce the error from a terminal?

@albertojm8

Mike, I solved it uncommenting the line with the desired locale in /etc/locale.gen and activating it with locale-gen, re opened sublime and everything worked like a charm.

It wasn’t a issue of package control, «locale -a» showed me that it was my problem :-)

@mikeshultz

@albertojm8 Yes, I already have en_US.UTF-8 uncommented there and just ran locale-gen for giggles. No dice.

@wbond

@mikeshultz Unfortunately I don’t know what is wrong with your machine and why it isn’t launching Sublime Text with a good locale.

Quite literally that error means your Sublime Text can’t properly handle non-ASCII. See https://github.com/wbond/sublime_package_control/blob/python3/Package%20Control.py#L83 for the exact test. You can use the Sublime console to run the same test.

Are you launching Sublime Text from a .desktop file, or the command line? Did you try executing LANG=en_US.UTF-8 sublime_text?

@mikeshultz

I’ll dig further. I can get it to work with some coaxing of the encoding.

>> os.path.exists(os.path.join(u"franu00e7ais".encode("utf-8")))
False

Are you launching Sublime Text from a .desktop file, or the command line?

Command line. And yes, I’ve tried setting the env variable on the CLI with the command.

If it makes any difference, I’m running ST build 3047 using the sublime-text-dev package with my distro(Arch Linux). I can try the nightly if you think it would change anything.

@wbond

I’m running 3047 on Arch x64 with no trouble — but I download and manually extract the tar file.

Unfortunately explicitly encoding the path won’t work. I spent a couple of days getting the whole codebase working with explicitly encoded paths, but it still wouldn’t work since the package loading code is not part of Package Control. Unfortunately the only «real» solution is to figure out why Sublime Text is not getting the right encoding info.

Have you tried creating some other locales for testing via /etc/locale.gen and locale-gen?

@ondoheer

The same happened to me, regenerating my locale fixed it.

@Kikobeats

same problem in Ubuntu 12.04 with Sublime Text 2, but only in Unity Launcher

:(

@wbond

@Kikobeats That means your launcher is not setting the appropriate environmental variables when launching Sublime Text. You’ll either have to figure it out or launch from the command line.

@chrisrolfe198

I’m running into this issue as well.

I’m use Arch and I first tried installing via the AUR and then removed and installed via the tarball after seeing you installed that way.

I then installed Package Manager through the sublime console.

I’ve tried setting my locale and regenerating them but it’s had no effect, any know work arounds or any idea what could solve the problem?

@eprouty

Running Ubuntu 12.04 and seeing this as well.

I installed Package Control through the sublime console. I have tried regenerating my locale, setting the LANG env variable all to no effect. Is there any word on a solution for this?

@wbond

The solution is to figure out why the sublime_text binary is launching without a good UTF-8 locale.

If it works by opening a terminal and running the following, then there is a problem with your env/launcher/etc.

LANG=en_US.UTF-8 sublime_text

Either way, this is not really a Package Control issue, but an issue with launching Sublime Text itself. From my investigation there is no way Package Control can work around this.

@h4ckm03d

I’m using Arch linux on 64 bit machine.
After uncomment en-US.UTF8 in /etc/locale.gen then generate it with locale-gen has no luck.
but I’m trying put export LANG=en_US.UTF-8 sublime_text in .bash_profile then type source ~/.bash_profile.Tadaa, problem solved 😄 . thanks @wbond

@mickey

Had the same issue on Arch linux.
I had to define a system wide locale as explained in the ArchWiki:

in /etc/locale.conf

And reboot your sytem.

@rjray

Another Ubuntu 12.04 user with the same problem. Running ST2 I get this error dialog every launch, even though the env variable is explicitly set. I’ve created a shell script to run ST after setting the variable, I’ve explicitly set the variable in the shell that I launch ST from, no dice.

@with-heart

@mickey Running Arch as well. That solution worked perfectly. Thanks!

@tylershelton

Just to expand a little on @mickey’s solution for future Arch (and perhaps other distro) searchers with the same problem — I had originally tried setting a system-wide locale by simply changing only the LANG variable in /etc/locale.conf from my default setting to en_US.UTF-8, as so —

/etc/locale.conf:
LANG=en_US.UTF-8
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

— but Package Control continued to throw the error until I culled the file down to only the first line —

/etc/locale.conf:

Hope that helps someone!

@langri-sha

@saurabhchandrapatel

I m also not able to Install Package Control. on Ubuntu 12.04 Sublime-text 3

sublime terminal Msg.
reloading Packages/Package Control/Package Control.sublime-settings
found 2 files for base name Main.sublime-menu
found 1 files for base name Default.sublime-theme
theme loaded
reloading Packages/User/Preferences.sublime-settings
found 1 files for base name Default.sublime-theme
theme loaded
Exception in thread Thread-1:
Traceback (most recent call last):

File "X/threading.py", line 639, in _bootstrap_inner File "package_control.commands.install_package_command in /home/patel/.config/sublime-text-3/Installed Packages/Package Control.sublime-package", line 43, in run File "package_control.package_installer in /home/patel/.config/sublime-text-3/Installed Packages/Package Control.sublime-package", line 88, in make_package_list File "X/genericpath.py", line 18, in exists UnicodeEncodeE

@wbond

@saurabhaec This issue is closed. Please open a new issue with your information.

@tkjef

On Debian 7 this worked after much searching:

first:
sudo apt-get purge locales

then:
sudo aptitude install locales
sudo dpkg-reconfigure locales

This rids the system of locales, then re-installs locales and downgrades libc6 from 2.19 to 2.13 which is the issue most likely. Then configures locales again.

@benslice

At my site, $LC_ALL defaults to «C» . This maybe overrides $LANG(?) because regardless of my $LANG setting I get this error until I unset $LC_ALL.

See also the solution by @tylershelton which is equivalent, but from the admin/system side, whereas this solution would work for a single user or session.

@voidptr

+1 benslice’s solution. Explicitly unsetting LC_ALL fixes the problem in Arch with Sublime Text 3.

@koep
koep

mentioned this issue

Dec 8, 2015

@mikeshultz

For anyone still having this issue, try out the tips on LC_CTYPE and LC_MESSAGES in #1087.

@flip111

I use CentOS 7 i tried the advise it doesn’t work (i still get the warning dialog). When i check with locale -a i don’t get en_US.UTF-8 in the list, but i do get en_US.utf8. So i tried that locale instead but this also didn’t work. Anyone know how to make this work with CentOS? Or possibly fedora or redhat since they are similar distros…

@alordiel

I had this issue on Arch using KDE. Not able to start package manager due to this LC_CTYPE error. I tried most of the solutions I have found here and none have help me. My starting point of fixing it was to find why i do have problems with my locale. The issue was that when I have installed initially my OS i have set it as en_ZA locale. Then at some point have changed it to en_US and then the problems have started. I have tried to change locale.conf and locale.gen files but with no success. Then I found that I have set the format setting for the region in my system configuration (through System settings -> Regional Settings-> Formats -> Region) as en_US. Once I’ve changed it back to en_ZA and rebooted all was fixed. Just have no idea why editing the /etc/locale and running locale.gen didn’t work.

This was referenced

Mar 11, 2023

  • Pack sol ошибка 03
  • Panasonic dmc tz20 системная ошибка фокус
  • Pack file manager ошибка
  • Panasonic dmc fz5 ошибка карты памяти
  • Pabg mobile код ошибки restrict area