2013年9月 7日

failed "emerge ca-certificates"

emerge ca-certificatesがうまくいかない。 放置しておけば治るかなと思っていたが、治らなかったので、Googleで調べて直した。
起きている問題は
# emerge -uDN ca-certificates
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-misc/ca-certificates-20130610
 * ca-certificates_20130610_all.deb SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                          [ ok ]
>>> Unpacking source...
>>> Unpacking ca-certificates_20130610_all.deb to /var/tmp/portage/app-misc/ca-certificates-20130610/work
>>> Unpacking data.tar.gz to /var/tmp/portage/app-misc/ca-certificates-20130610/work
>>> Source unpacked in /var/tmp/portage/app-misc/ca-certificates-20130610/work
>>> Preparing source in /var/tmp/portage/app-misc/ca-certificates-20130610/work ...
 * Applying ca-certificates-20110502-root.patch ...                                                                                               [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-misc/ca-certificates-20130610/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-misc/ca-certificates-20130610/work ...
Updating certificates in /var/tmp/portage/app-misc/ca-certificates-20130610/work/etc/ssl/certs... 157 added, 0 removed; done.
Running hooks in /var/tmp/portage/app-misc/ca-certificates-20130610/work/etc/ca-certificates/update.d....done.
>>> Source compiled.
>>> Test phase [not enabled]: app-misc/ca-certificates-20130610

>>> Install ca-certificates-20130610 into /var/tmp/portage/app-misc/ca-certificates-20130610/image/ category app-misc
>>> Completed installing ca-certificates-20130610 into /var/tmp/portage/app-misc/ca-certificates-20130610/image/

ecompressdir: bzip2 -9 /usr/share/doc
ecompressdir: bzip2 -9 /usr/share/man

>>> Installing (1 of 1) app-misc/ca-certificates-20130610
>>> Setting SELinux security labels
Traceback (most recent call last):
  File "/usr/lib64/portage/pym/portage/dbapi/_MergeProcess.py", line 230, in _spawn
    prev_mtimes=self.prev_mtimes, counter=counter)
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 4827, in merge
    counter=counter)
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 4037, in treewalk
    rval = self._merge_contents(srcroot, destroot, cfgfiledict)
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 4313, in _merge_contents
    self.settings["EPREFIX"].lstrip(os.sep), cfgfiledict, mymtime):
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 4724, in mergeme
    encoding=_encodings['merge'])
  File "/usr/lib64/portage/pym/portage/util/movefile.py", line 298, in movefile
    selinux.rename(src, dest)
  File "/usr/lib64/portage/pym/portage/__init__.py", line 246, in __call__
    rval = self._func(*wrapped_args, **wrapped_kwargs)
  File "/usr/lib64/portage/pym/portage/_selinux.py", line 69, in rename
    os.rename(src,dest)
UnicodeEncodeError: 'ascii' codec can't encode character '\u011f' in position 125: ordinal not in range(128)

>>> Failed to install app-misc/ca-certificates-20130610, Log file:

>>>  '/var/tmp/portage/app-misc/ca-certificates-20130610/temp/build.log'

 * GNU info directory index is up-to-date.

!!! existing preserved libs:
>>> package: media-libs/openjpeg-1.5.1
 *  - /usr/lib64/libopenjpeg.so.1
 *  - /usr/lib64/libopenjpeg.so.1.5.0
 *      used by /usr/lib64/libavcodec.so.54.59.100 (media-video/ffmpeg-1.0.7)
>>> package: dev-libs/cyrus-sasl-2.1.26-r3
 *  - /usr/lib64/libsasl2.so.2
 *  - /usr/lib64/libsasl2.so.2.0.25
 *      used by /usr/bin/memcached (net-misc/memcached-1.4.5-r1)
Use emerge @preserved-rebuild to rebuild packages using these libraries

 * IMPORTANT: 6 config files in '/etc' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.

直し方 /etc/locale.genに en_US.UTF-8 UTF-8 を追加し、locate.gen。 続いて、/etc/env.d/02localeを LANG="en_US.UTF-8" LC_COLLATE="C" にして、env-updateとsource /etc/profileを実行。
# cat /etc/locale.gen
# /etc/locale.gen: list all of the locales you want to have on your system
#
# The format of each line:
#  
#
# Where  is a locale located in /usr/share/i18n/locales/ and
# where  is a charmap located in /usr/share/i18n/charmaps/.
#
# All blank lines and lines starting with # are ignored.
#
# For the default list of supported combinations, see the file:
# /usr/share/i18n/SUPPORTED
#
# Whenever glibc is emerged, the locales listed here will be automatically
# rebuilt for you.  After updating this file, you can simply run `locale-gen`
# yourself instead of re-emerging glibc.

en_US ISO-8859-1
en_US.UTF-8 UTF-8
ja_JP.EUC-JP EUC-JP
ja_JP.UTF-8 UTF-8
ja_JP EUC-JP
# cat /etc/env.d/02locale
#LANG=C
LANG="en_US.UTF-8"
LC_COLLATE="C"

コメントする