在使用yum部署环境的时候,出现了报错:
UnicodeDecodeError: ‘ascii‘ codec can‘t decode ... ordinal not in range
解决办法:
[[email protected] ~]# ll /var/lib/rpm/*db*
-rw-r--r-- 1 root root 73728 Aug 15 14:52 /var/lib/rpm/__db.001
-rw-r--r-- 1 root root 270336 Aug 15 14:52 /var/lib/rpm/__db.002
-rw-r--r-- 1 root root 1318912 Aug 15 14:52 /var/lib/rpm/__db.003
-rw-r--r-- 1 root root 778240 Aug 15 14:52 /var/lib/rpm/__db.004
[[email protected] ~]#rm -f __db.*
[[email protected] ~]#yum clean all
问题迎刃而解!再次使用yum就不会出现上面报错了!
解决yum报错:UnicodeDecodeError: 'ascii' codec can't decode ... ordinal not in range
时间: 2024-11-16 00:10:44