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