UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 11: ordinal not in range

在安装yum install mysql-devel的时候报yum的错误。
Loaded plugins: fastestmirror, security
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in 
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 285, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 114, in main
    base.doLock()
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 1791, in doLock
    while not self._lock(lockfile, mypid, 0644):
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 1857, in _lock
    errmsg = _('Could not create lock at %s: %s ') % (filename, str(msg))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 11: ordinal not in range(128)
[root@ZGBKY-TX287-Server01 liugao]# yum clean all
Loaded plugins: fastestmirror, security
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in 
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 285, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 114, in main
    base.doLock()
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 1791, in doLock
    while not self._lock(lockfile, mypid, 0644):
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 1857, in _lock
    errmsg = _('Could not create lock at %s: %s ') % (filename, str(msg))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 11: ordinal not in range(128)


一直以为是yum 安装出问题,其实是/根目录没有空间了。。。

清除/tmp /var/log 等根目录的空间。再次安装,成功。。。。



[root@ZGBKY-TX287-Server01 Build]# yum install mysql-devel
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package mysql-devel.x86_64 0:5.1.73-7.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================
 Package                                         Arch                                       Version                                             Repository                              Size
=============================================================================================================================================================================================
Installing:
 mysql-devel                                     x86_64                                     5.1.73-7.el6                                        os                                     130 k

Transaction Summary
=============================================================================================================================================================================================
Install       1 Package(s)

Total size: 130 k
Installed size: 388 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
** Found 7 pre-existing rpmdb problem(s), 'yum check' output follows:
e2fsprogs-libs-1.41.12-22.el6.x86_64 is a duplicate with e2fsprogs-libs-1.41.12-12.el6.x86_64
keyutils-libs-1.4-5.el6.x86_64 is a duplicate with keyutils-libs-1.4-4.el6.x86_64
krb5-libs-1.10.3-57.el6.x86_64 is a duplicate with krb5-libs-1.9-33.el6.x86_64
libcom_err-1.41.12-22.el6.x86_64 is a duplicate with libcom_err-1.41.12-12.el6.x86_64
libselinux-2.0.94-7.el6.x86_64 is a duplicate with libselinux-2.0.94-5.3.el6.x86_64
libss-1.41.12-22.el6.x86_64 is a duplicate with libss-1.41.12-12.el6.x86_64
openssl-1.0.1e-48.el6_8.1.x86_64 is a duplicate with openssl-1.0.1e-30.el6_6.4.x86_64
  Installing : mysql-devel-5.1.73-7.el6.x86_64                                                                                                                                           1/1 
  Verifying  : mysql-devel-5.1.73-7.el6.x86_64                                                                                                                                           1/1 

Installed:
  mysql-devel.x86_64 0:5.1.73-7.el6                                                                                                                                                          

Complete!



你可能感兴趣的:(异常综合)