1 |
On Tue, Dec 13, 2011 at 11:18 AM, Jarry <mr.jarry@×××××.com> wrote: |
2 |
> On 13-Dec-11 16:56, Michael Mol wrote: |
3 |
>>> |
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 |
>>> |
16 |
>>> * This package installs one or more file names containing characters |
17 |
>>> 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 |
>> Having set up three Gentoo installs in the last month, and I've seen |
36 |
>> this each time. |
37 |
>> |
38 |
>> It's blunt, but a mixture of "emerge -e --keep-going @world", |
39 |
>> "shutdown -r now" and "emerge --resume --keep-going" commands clears |
40 |
>> it up. |
41 |
> |
42 |
> |
43 |
> OMG, I have to recompile the whole world to fix it??? |
44 |
> This is definitelly not "small" bug if it costs half day |
45 |
> of compilation time... :-( |
46 |
|
47 |
I've only *ever* seen it on fresh installs. An "emerge -e @world" to |
48 |
propagate CFLAGS is usually an early step; I like to do it before I |
49 |
install much more than 'screen' and 'vim'. |
50 |
|
51 |
Chances are, it's some smaller thing, like getting locale settings in |
52 |
place before emerging glibc or some fs tools, but I haven't tried |
53 |
tracking it down more deeply. |
54 |
|
55 |
-- |
56 |
:wq |