1 |
On Dec 13, 2011 10:46 PM, "Jarry" <mr.jarry@×××××.com> wrote: |
2 |
> |
3 |
> Hi, |
4 |
> I just tried to update my system but emerging app-misc/ca-certificate |
5 |
> failed with this error: |
6 |
> ------------------- |
7 |
> File "/usr/lib64/portage/pym/portage/__init__.py", line 178, in |
8 |
_unicode_encode |
9 |
> s = s.encode(encoding, errors) |
10 |
> UnicodeEncodeError: 'ascii' codec can't encode character u'\u011f' in |
11 |
position 68: ordinal not in range(128) |
12 |
> |
13 |
> >>> Failed to install app-misc/ca-certificates-20111025, Log file: |
14 |
> |
15 |
> * This package installs one or more file names containing characters that |
16 |
> * do not match your current locale settings. The current setting for |
17 |
> * filesystem encoding is 'ANSI_X3.4-1968'. |
18 |
> |
19 |
> * For best results, UTF-8 encoding is recommended. See the Gentoo Linux |
20 |
> * Localization Guide for instructions about how to configure your |
21 |
> * locale for UTF-8 encoding: |
22 |
> * |
23 |
> * http://www.gentoo.org/doc/en/guide-localization.xml |
24 |
> ------------------- |
25 |
> |
26 |
> I did not have any /etc/env.d/02locale file, so I created |
27 |
> one with LANG="en_GB.UTF-8" in it, but I still get the same |
28 |
> error. I tried en_US.UTF-8 or en_EN.UTF-8 with the same |
29 |
> results. I really do not understand what ca-certificates |
30 |
> needs to get it installed... |
31 |
> |
32 |
|
33 |
Have you tried locale-gen and env-update ? |
34 |
|
35 |
Rgds, |