yum crash

Jurek Bajor jurek.bajor at gmail.com
Thu Jul 1 16:57:06 UTC 2010

when executed by a non-root user, the yum entry crashes because it is unable
to access a database.
It should reject the entry for non-root user.

[jb at localhost ~]$ yum history list all
Loaded plugins: fastestmirror, langpacks, presto, priorities, protect-packages,
              : refresh-packagekit
Adding en_US to language list
ID     | Login user             | Date and time    | Action(s)      | Altered
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 254, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 109, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 356, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self,
self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 1314, in doCommand
    ret = base.historyListCmd(extcmds)
  File "/usr/share/yum-cli/output.py", line 1297, in historyListCmd
    for old in self.history.old(tids, limit=limit):
  File "/usr/lib/python2.6/site-packages/yum/history.py", line 449, in old
    cur = self._get_cursor()
  File "/usr/lib/python2.6/site-packages/yum/history.py", line 220, in
    self._conn = sqlite.connect(self._db_file)
sqlite3.OperationalError: unable to open database file
[jb at localhost ~]$

More information about the users mailing list