Hello All,
On a newly installed vCenter server 6.7, I installed yum with the command tdnf install yum (as detailedin the PhotonOS documentation). Eveyrhting ran fine, the following packages being installed :
yum-metadata-parser x86_64 1.1.4-2.ph1 57.10 k
yum noarch 3.4.3-7.ph1 4.18 M
urlgrabber noarch 3.10.1-3.ph1 504.62 k
python2-libs x86_64 2.7.15-8.ph1 15.50 M
python2 x86_64 2.7.15-8.ph1 1.87 M
python-xml x86_64 2.7.15-8.ph1 329.53 k
python-rpm x86_64 4.13.0.2-1.ph1 197.62 k
pycurl x86_64 7.21.5-4.ph1 143.50 k
After that, I could not log back to the vCenter server :
Traceback (most recent call last):
File "/usr/lib/applmgmt/base/bin/vherdrunner", line 6, in <module>
import vherdrunner
File "/usr/lib/applmgmt/base/bin/vherdrunner.py", line 9, in <module>
from defusedxml import xmlrpc
ImportError: No module named defusedxml
I then decided to remove Yum and all the above packages. This ran fine. But, now, I don't even have a python interpreter left :
Last login: Wed Jul 10 10:05:25 2019 from 172.31.251.249
/bin/appliancesh: /usr/lib/applmgmt/base/bin/vherdrunner: /usr/bin/python: bad interpreter: No such file or directory
/bin/appliancesh: line 8: /usr/lib/applmgmt/base/bin/vherdrunner: Success
Do you know how I could restore the correct version of sofwares so that everything goes back in order? I'm very surprised that the package system can be so easily broken...