I need a working yum installation for a lxc deployment script to work. However it seems that it is currently totally broken:
~/Downloads] λ yum --version
3.4.3
Traceback (most recent call last):
File “/usr/bin/yum”, line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File “/usr/share/yum-cli/yummain.py”, line 288, in user_main
errcode = main(args)
File “/usr/share/yum-cli/yummain.py”, line 98, in main
base.getOptionsConfig(args)
File “/usr/share/yum-cli/cli.py”, line 280, in getOptionsConfig
for pkg in sorted(self.rpmdb.returnPackages(patterns=yum_progs)):
File “/usr/lib64/python2.7/site-packages/yum/rpmsack.py”, line 593, in returnPackages
pkgs = self.searchNames([pat])
File “/usr/lib64/python2.7/site-packages/yum/rpmsack.py”, line 1180, in searchNames
returnList.extend(self._search(name=name))
File “/usr/lib64/python2.7/site-packages/yum/rpmsack.py”, line 1246, in _search
po = self._makePackageObject(hdr, idx)
File “/usr/lib64/python2.7/site-packages/yum/rpmsack.py”, line 1266, in _makePackageObject
po = RPMInstalledPackage(hdr, index, self)
File “/usr/lib64/python2.7/site-packages/yum/rpmsack.py”, line 64, in init
YumInstalledPackage.init(self, rpmhdr, yumdb=rpmdb.yumdb)
File “/usr/lib64/python2.7/site-packages/yum/packages.py”, line 1828, in init
self.yumdb_info = yumdb.get_package(self)
File “/usr/lib64/python2.7/site-packages/yum/rpmsack.py”, line 1605, in get_package
yumdb_cache=self.yumdb_cache)
AttributeError: ‘RPMDBAdditionalData’ object has no attribute ‘yumdb_cache’