解决Failed to set locale, defaulting to C.UTF-8
先查看本地语言
locale -a
设置en_US.utf8
echo "export LC_ALL=en_US.utf8" >> /etc/profile
echo "export LC_CTYPE=en_US.utf8" >> /etc/profile
source /etc/profile
解决Failed loading plugin "osmsplugin": No module named 'librepo
执行以下命令
dnf -y install python3-librepo
再次进行yum
yum install xxx
已经不报错了,Nice