Gentoo Archives: gentoo-user

From: Jarry <mr.jarry@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Failed to install app-misc/ca-certificate - locale problem
Date: Tue, 13 Dec 2011 18:12:45
Message-Id: 4EE794EA.3040107@gmail.com
In Reply to: Re: [gentoo-user] Failed to install app-misc/ca-certificate - locale problem by Pandu Poluan
1 On 13-Dec-11 18:09, Pandu Poluan wrote:
2
3 >> I just tried to update my system but emerging app-misc/ca-certificate
4 >> failed with this error:
5 >> -------------------
6 >> File "/usr/lib64/portage/pym/portage/__init__.py", line 178, in
7 >> _unicode_encode
8 >> s = s.encode(encoding, errors)
9 >> UnicodeEncodeError: 'ascii' codec can't encode character u'\u011f' in
10 >> position 68: ordinal not in range(128)
11 >>
12 >> >>> Failed to install app-misc/ca-certificates-20111025, Log file:
13 >>
14 >> * This package installs one or more file names containing characters
15 >> 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 > Have you tried locale-gen and env-update ?
33
34 Bingo, this solved my problem! I did locale-gen but I forgot
35 to run "env-update && source /etc/profile". I always thought
36 log-off/log-in updates enviromnent too. It is actually true,
37 but for user, not system-wide...
38
39 Jarry
40
41 --
42 _______________________________________________________________
43 This mailbox accepts e-mails only from selected mailing-lists!
44 Everything else is considered to be spam and therefore deleted.