[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

yum 3.4.x failing: I need some help


Since March the 1st, I had Yum 3.4.3-1 ready in my Git repository. But I
didn't upload the new version of yum because of an issue with the new

It seemed to be working, eg, I could bootstrap a CentOS 6 distro in a
chroot, just like you would with yum 3.2.x. And the resulting CentOS
distro seem to work. But at the end of the bootstraping process, yum
does a python stack dump:

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 140, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 440, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self,
self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 214, in doCommand
    return base.installPkgs(extcmds)
  File "/usr/share/yum-cli/cli.py", line 717, in installPkgs
  File "/usr/lib/python2.7/dist-packages/yum/__init__.py", line 3580, in
    if (self.rpmdb.searchNames([po.name]) and
  File "/usr/lib/python2.7/dist-packages/yum/rpmsack.py", line 1180, in
  File "/usr/lib/python2.7/dist-packages/yum/rpmsack.py", line 1246, in
    po = self._makePackageObject(hdr, idx)
  File "/usr/lib/python2.7/dist-packages/yum/rpmsack.py", line 1272, in
    self._cached_rpmdb_mtime = os.path.getmtime(rpmdbfname)
  File "/usr/lib/python2.7/genericpath.py", line 54, in getmtime
    return os.stat(filename).st_mtime
OSError: [Errno 2] No such file or directory:

FYI, what I'm doing is using this script (also available in dtc-xen in

I use the script like this:
mkdir /tmp/centos6
./dtc_install_centos /tmp/yumtemp /tmp/centos6

then the error above appears.

I asked upstream author, and they couldn't reply to me strait away with
a way to fix:

If anyone has time to look into the issue and help me, that'd be really
great: I would then upload version 3.4.x in experimental (since I don't
want to introduce too much change just few days before the freeze, and
that v3.2 does the job too ...). The Git with v 3.4 is here:
Vcs-Browser: http://git.debian.org/?p=users/zigo/yum.git
Vcs-Git: http://git.debian.org/git/users/zigo/yum.git

the branch to use is "debian-sid" even though I plan to upload that to

Last, I wouldn't be against having a co-maintainer. I'm not at all a
heavy yum user myself, I just use it for bootstrapping CentOS 6 in Xen
VMs when it's a customer's requirement. I took over maintainership only
because the package was left unmaintained and broken.



Reply to: