I just installed CENTOS 7 on my vmware.
After YUM update everything worked fine for sometime then system suddenly crashed and asked me to Logout.
In console in tried to yum update
but it showed following error:
There was problem importing one of the Python modules required to run
yum. The error leading to this problem was:
/lib64/libxml2.so.2:File too short
Please install a package which provides this module or verify that
module is installed correctlyIts possible that the above module does not match the current version
of Python, which is 2.7.5 (default, Sept 2016, 22:37:46) [GCC 4.8.5
2015(Red Hat 4.8.5-4)]
I followed this answer but, did not work for me.
I just know basic of Linux OS so please help me fix this issue.
Best Answer
Download libxml2 to your system:
Re-install the libxml2 package with RPM
Finally, attempt to reinstall the package (to ensure correct versioning) using yum.
If you continue to receive errors it would seem as though there has been some underlying filesystem corruption or the underlying block device in the virtual machine is thin provisioned without enough actual filesystem space on the hypervisor to support that much space.