解决 CentOS 8 Stream 报 错 Failed loading plugin “osmsplugin”: No module named ‘librepo和Failed to set locale, defaulting to C.UTF-8 – MasterH's Grocery Store

解决 CentOS 8 Stream 报 错 Failed loading plugin “osmsplugin”: No module named ‘librepo和Failed to set locale, defaulting to C.UTF-8

解决Failed to set locale, defaulting to C.UTF-8

先查看本地语言

locale -a

file

设置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

file

已经不报错了,Nice

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *