Issue209

Project smart
Title smart says '' matches multiple installed packages but that is not true
Priority bug Status done-review
Superseder Nosy List jon, netmask, niemeyer, rasker
Assigned To rasker Topics

Created on 2006-09-06.00:47:36 by jon, last changed 2008-07-01.11:08:17 by rasker.

Messages
msg1435 (view) Author: rasker Date: 2008-07-01.11:08:17
Retired

Reason for Retirement: Please confirm if this is still a problem in the latest
version of Smart. The issue is probably due to the changed version format of
each rpm.

Please reopen this issue in the new bugtracker if it is still an issue.
New Bugtracker : http://bugs.launchpad.net/smart
further details:
https://blueprints.launchpad.net/smart/+spec/bug-reporting-migration.
msg1036 (view) Author: jon Date: 2006-12-13.00:33:36
I think that is extremely unlikely.
rpm and rpmlib both believe that there is but one version of smart
installed.

However, in the interests of moving forward, I rebuild the RPM db and
the results have not changed.

The following should provide for some useful discussion:

frank:~ # rpmdb --rebuilddb
frank:~ # rpm -qa | grep -i smart
smart-0.49.1-10.guru.suse102
smart-ksmarttray-0.49.1-10.guru.suse102
smart-gui-0.49.1-10.guru.suse102
smartmontools-5.36.cvs20061025-8
frank:~ # smart reinstall smart
Loading cache...
Updating cache...               ######################################## [100%]

Computing transaction...

Installing packages (1):
  smart-0.49.1-10.guru.suse102@i686

2.6MB of package files are needed. 7.9MB will be used.

Confirm changes? (Y/n):

frank:~ # smart --shell
Smart Package Manager 0.50rc1 - Shell Mode

Loading cache...
Updating cache...               ######################################## [100%]

smart> reinstall smart
error: 'smart' matches multiple installed packages
smart>

frank:~ #
msg1031 (view) Author: niemeyer Date: 2006-12-12.14:36:24
> Wouldn't the 'ls -iv smart' below have indicated that?  In any case,

Yep, Jon is right. The report is quite clear.
msg1030 (view) Author: jon Date: 2006-12-12.14:29:13
Wouldn't the 'ls -iv smart' below have indicated that?  In any case, rpm -qa
agrees that only one smart is installed.

If I specify the /entire/ package then it works 
(ie, reinstall smart-0.49.1-10.guru.suse102@i686)
msg1029 (view) Author: netmask Date: 2006-12-12.13:19:07
Do you have smart-beta installed too? The both provide smart, so you can have
this message if they're both installed.
msg1028 (view) Author: jon Date: 2006-12-12.01:55:04
Same problem again:

smart> reinstall smart
error: 'smart' matches multiple installed packages
smart> ls -iv smart
smart-0.49.1-10.guru.suse102@i686
smart>
msg955 (view) Author: netmask Date: 2006-11-20.17:58:43
Unless you have more than one package with the same error, it's different from
issue190.

I really can't see how to fix this problem. It's possible to occur while
upgrading or downgrading, since there is a tiny moment where RPM maintains both
packages installed, and at this moment there could be a corruption which would
make either rpm or smart think there are two packages installed.

Could you please try to 'rm -f /var/lib/smart/cache', update and try again?
msg933 (view) Author: jon Date: 2006-11-15.21:23:43
Actually, they do not have the same release:

smart> ls -v boost
boost-1.33.1-17@i586         boost-1.33.1-17.pm.2@i586

The 'packman' release should evaluate higher.
Is this related to bug 190?
msg749 (view) Author: netmask Date: 2006-10-06.18:27:04
On a second thought, looks like Smart can't decide on which package to install,
since there are two packages with same version/release on different repositories.

Please, can you try setting a higher priority on packman repo and do a reinstall?
msg748 (view) Author: jon Date: 2006-10-06.18:22:19
turnip:~ # rpm -qa | grep boost
boost-1.33.1-17
turnip:~ #
msg745 (view) Author: netmask Date: 2006-10-06.17:14:37
Can you give the output of "rpm -qa | grep boost"?
msg699 (view) Author: jon Date: 2006-09-06.00:47:33
smart> ls -v boost
boost-1.33.1-17@i586         boost-1.33.1-17.pm.2@i586
smart> reinstall boost
error: 'boost' matches multiple installed packages
smart> ls -i boost
boost
smart>
History
Date User Action Args
2008-07-01 11:08:17raskersetstatus: need-info -> done-review
nosy: + rasker
messages: + msg1435
assignedto: rasker
2006-12-13 00:33:39jonsetnosy: niemeyer, jon, netmask
messages: + msg1036
2006-12-12 14:36:42niemeyersetnosy: + niemeyer
messages: + msg1031
2006-12-12 14:29:15jonsetmessages: + msg1030
2006-12-12 13:19:11netmasksetmessages: + msg1029
2006-12-12 01:55:07jonsetmessages: + msg1028
2006-11-20 17:58:44netmasksetmessages: + msg955
2006-11-15 21:23:44jonsetmessages: + msg933
2006-10-06 18:27:23netmasksetmessages: + msg749
2006-10-06 18:22:19jonsetnosy: jon, netmask
messages: + msg748
2006-10-06 17:14:38netmasksetstatus: unread -> need-info
nosy: + netmask
messages: + msg745
2006-09-06 00:47:37joncreate