Gentoo Archives: gentoo-user

From: Pandu Poluan <pandu@××××××.info>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Failed to install app-misc/ca-certificate - locale problem
Date: Tue, 13 Dec 2011 17:10:17
Message-Id: CAA2qdGVc6Ja2bj5X+OETutbJvb5eryUGTdoTt-FPCN=_pz9BtA@mail.gmail.com
In Reply to: [gentoo-user] Failed to install app-misc/ca-certificate - locale problem by Jarry
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,

Replies