RedHat Enterprise Linux 7.1
bash
[root@aaaa yum.repos.d]# yum search zsh
Loaded plugin:langpacks, product-id, subscription-manager
'ascii' codec can't decode byte 0xe3 in position 0: ordinal not in range(128)
============================================ N/S matched: zsh ============================================
zsh-html.x86_64 : Zsh shell manual in html format
zsh.x86_64 : Powerful interactive shell
Name and summary matches only, use "search all" for everything.
Something came out
bash
'ascii' codec can't decode byte 0xe3 in position 0: ordinal not in range(128)
https://access.redhat.com/solutions/284023
If you can't do 1, do 2
bash
mv /var/lib/yum/yumdb/ /tmp
yumdb sync
Apparently yum is like a python script.
python
vi /usr/lib/python2.7/site-packages/sitecustomize.py
import sys
sys.setdefaultencoding("utf-8")
RedHat is bad because it wasn't CentOS.
Recommended Posts