Loaded plugins: aliases, auto-update-debuginfo, axelget, changelog, copr, dellsysid, fastestmirror, filter-data, fs-snapshot, keys, langpacks, list-data, local, merge-conf, ovl, post-transaction-actions, pre-
: transaction-actions, priorities, protectbase, ps, remove-with-leaves, rpm-warm-cache, show-leaves, tmprepo, tsflags, upgrade-helper, verify, versionlock
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 375, in user_main
errcode = main(args)
File “/usr/share/yum-cli/yummain.py”, line 184, in main
result, resultmsgs = base.doCommands()
File “/usr/share/yum-cli/cli.py”, line 585, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File “/usr/share/yum-cli/yumcommands.py”, line 446, in doCommand
return base.installPkgs(extcmds, basecmd=basecmd)
File “/usr/share/yum-cli/cli.py”, line 1017, in installPkgs
txmbrs = self.install(pattern=arg)
File “/usr/lib/python2.7/site-packages/yum/init.py”, line 4848, in install
mypkgs = self.pkgSack.returnPackages(patterns=pats,
File “/usr/lib/python2.7/site-packages/yum/init.py”, line 1075, in
pkgSack = property(fget=lambda self: self._getSacks(),
File “/usr/lib/python2.7/site-packages/yum/init.py”, line 778, in _getSacks
self.repos.populateSack(which=repos)
File “/usr/lib/python2.7/site-packages/yum/repos.py”, line 347, in populateSack
self.doSetup()
File “/usr/lib/python2.7/site-packages/yum/repos.py”, line 122, in doSetup
self.ayum.plugins.run(‘prereposetup’)
File “/usr/lib/python2.7/site-packages/yum/plugins.py”, line 188, in run
func(conduitcls(self, self.base, conf, **kwargs))
File “/usr/lib/yum-plugins/axelget.py”, line 393, in prereposetup_hook
os.utime(localMDFile, None)
OSError: [Errno 2] No such file or directory: ‘/var/cache/yum/x86_64/7/_local/repomd.xml’
测试机忽然发现yum命令报错,检查python 版本没变 Python 2.7.5
经过一阵折腾恢复了:
yum clean all
yum makecache
yum –disablerepo “*” –enablerepo “updates” update