I am trying to change the number of generations held by the kernel using the package-cleanup
included in the yum-utils package, but I cannot because the following error is printed normally.
Can someone tell me the solution?
OS:RHEL 6.9
execution commands:
package-cleanup --oldkernel --count=2
Error Description:
Traceback (most recent call last):
File "/usr/bin/package-cleanup", line 27, in<module>
from yum.misc import setup_locale
ImportError: No module named yum.misc
I ran package-cleanup
on Python 2.7
, and the yum.misc
required for package-cleanup
was not installed for Python 2.7
, so I got an error (by the way, Python 2.6
.
So I changed the package-cleanup
to run in 2.6
Verify that the environment variable PYTHONHOME
is not set to a value, and if so, try running package-cleanup
again with the value empty (undefined).
unset PYTHONHOME
Note:
System fails yum with No module named yum error
Focused on Python environment variables -Bite Code
610 GDB gets version error when attempting to debug with the Presense SDK (IDE)
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
911 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.