Current time: 05-23-2012, 10:42 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Smart Broken
01-01-2011, 04:19 PM
Post: #1
Smart Broken
Smart appears to be crashing whenever I try to search, install, reinstall or upgrade with Smart. For example, attempting to upgrade Smart results in the following:
Code:
[root@localhost kjm]# smart upgrade smart
Loading cache...
Updating cache...               ######################################## [100%]

Computing transaction...

Upgrading packages (2):
  smart-1.4.0-0.20100901.3@i586          smart-update-1.4.0-0.20100901.3@i586  

Traceback (most recent call last):
  File "/usr/bin/smart", line 197, in <module>
    main(sys.argv[1:])
  File "/usr/bin/smart", line 170, in main
    exitcode = iface.run(opts.command, opts.argv)
  File "/usr/lib/python2.6/site-packages/smart/interface.py", line 53, in run
    result = _command.main(self._ctrl, opts)
  File "/usr/lib/python2.6/site-packages/smart/commands/upgrade.py", line 209, in main
    ctrl.commitTransaction(trans, confirm=confirm)
  File "/usr/lib/python2.6/site-packages/smart/control.py", line 672, in commitTransaction
    return self.commitChangeSet(trans.getChangeSet(), caching, confirm)
  File "/usr/lib/python2.6/site-packages/smart/control.py", line 675, in commitChangeSet
    if confirm and not iface.confirmChangeSet(changeset):
  File "/usr/lib/python2.6/site-packages/smart/interfaces/text/interface.py", line 107, in confirmChangeSet
    return self.showChangeSet(changeset, confirm=True)
  File "/usr/lib/python2.6/site-packages/smart/interfaces/text/interface.py", line 223, in showChangeSet
    size = report.getInstallSize() - report.getRemoveSize()
  File "/usr/lib/python2.6/site-packages/smart/report.py", line 200, in getRemoveSize
    size = info.getInstalledSize()
  File "/usr/lib/python2.6/site-packages/smart/backends/rpm/header.py", line 113, in getInstalledSize
    return self._h[rpm.RPMTAG_SIZE]
  File "/usr/lib/python2.6/site-packages/smart/backends/rpm/header.py", line 80, in __get__
    obj._h = obj._loader.getHeader(obj._package)
  File "/usr/lib/python2.6/site-packages/smart/backends/rpm/header.py", line 631, in getHeader
    return mi.next()
StopIteration
The error trace is the same with any of the operations that crash Smart. Updating the cache does appear to work.

This started after I did a "rpm --rebuilddb". I was getting errors with Smart that indicated there were problems with the rpm database, but Smart appeared to be working. Obviously trying to clear it up made things worse.

Ideas?
Find all posts by this user
Quote this message in a reply
01-04-2011, 05:48 AM
Post: #2
RE: Smart Broken
Right after you rebuild the rpm database, run 'rm -f /var/lib/rpm/__*'.

Please check the Release Announcement before reporting any issues!
Please read the Usage Rules before posting!
Check out the FAQ!
[Image: 12212.png?skin_name=chrome]
Find all posts by this user
Quote this message in a reply
01-04-2011, 10:46 AM
Post: #3
RE: Smart Broken
(01-04-2011 05:48 AM)KDulcimer Wrote:  Right after you rebuild the rpm database, run 'rm -f /var/lib/rpm/__*'.
That did not do anything. Smart is still broken. There were no files in the /var/lib/rpm directory meeting the __* specification to be removed. Here's the ls -l of /var/lib/rpm:
Code:
./             Conflictname  filetriggers/  Nvra          Providename     Sha1header
../            Dirnames      Group          Obsoletename  Provideversion  Sigmd5
alternatives/  Filedigests   Installtid     Packagecolor  Requirename     Sourcepkgid
Basenames      Filepaths     Name           Packages      Requireversion  Triggername
Find all posts by this user
Quote this message in a reply
01-04-2011, 10:33 PM
Post: #4
RE: Smart Broken
Can you please give me the output of this command?

rpm -qa | grep smart

Please check the Release Announcement before reporting any issues!
Please read the Usage Rules before posting!
Check out the FAQ!
[Image: 12212.png?skin_name=chrome]
Find all posts by this user
Quote this message in a reply
01-05-2011, 03:06 PM
Post: #5
RE: Smart Broken
(01-04-2011 10:33 PM)KDulcimer Wrote:  Can you please give me the output of this command?

rpm -qa | grep smart
Will do. It's probably going to be tomorrow evening (EST) before I can get to it though.
Find all posts by this user
Quote this message in a reply
01-06-2011, 10:20 AM
Post: #6
RE: Smart Broken
(01-04-2011 10:33 PM)KDulcimer Wrote:  Can you please give me the output of this command?

rpm -qa | grep smart
Here ya go:
Code:
[root@localhost kjm]# rpm -qa | grep smart
smart-gui-1.4.0-0.20100901.1-unity2010
smart-1.4.0-0.20100901.1-unity2010
smart-channels-unity-i586-2.0-7-unity2010
smart-channels-plf-1.0-6-unity2010
smart-utils-1.7-1-unity2010
smarturl-1.2-1-unity2009
smart-update-1.4.0-0.20100901.1-unity2010
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)

 


Contact Us | TinyMe Linux | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication