Bug 377518

Summary: YaST2 package selection shows no RPM as installed, Zypper says otherwise
Product: [openSUSE] openSUSE 11.0 Reporter: Kevin Dupuy <kevin.dupuy>
Component: YaST2Assignee: E-mail List <zypp-maintainers>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Blocker    
Priority: P5 - None CC: davejplater, forgotten_h13THG8RK1, forgotten_Xh41Ao4q6j, francis, ma, munkiiboi, wolfgang
Version: Factory   
Target Milestone: ---   
Hardware: x86   
OS: openSUSE 11.0   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Kevin Dupuy 2008-04-06 03:51:36 UTC
The YaST2 GTK Package Selection says that no software is installed. It lists all software as "Available", with none as "Upgrades" or "Installed". To test, I installed an application, Banshee, then went back to Package Selection after it installed and it was still listed as "Available".

I used zypper and when I tried to install Banshee it told me it was already installed.
Comment 1 Forgotten User h13THG8RK1 2008-04-07 13:07:50 UTC
Kevin, could you checkout if the Qt UI works (as root):
 /usr/lib/YaST2/bin/y2base sw_single qt

Or the "ncurses" one if that doesn't work. Thanks!
Comment 2 Dean Sawash 2008-04-07 15:19:02 UTC
confirmed..
Comment 3 Kevin Dupuy 2008-04-08 00:20:31 UTC
The QT version wouldn't load, but I did try ncurses. I searched for a package I knew was installed (aaa_base). It showed it as not being installed, and like the GTK version, showed nothing else as being installed eiether. To re-test I used the command "zypper in aaa_base" and got the message:

"KevinYo:/home/kevin/Desktop # zypper in aaa_base
Reading installed packages...
skipping package 'aaa_base' (the newest version already installed)
Nothing to do.
"

So zypper seems to know what's going on, YaST is stumbling out of the bar at 3 AM ;-)
Comment 4 Wolfgang Rosenauer 2008-04-08 11:02:08 UTC
I just tried factory with yast2's sw_single Qt module.
No package there is marked as installed.
Comment 5 Forgotten User Xh41Ao4q6j 2008-04-09 04:57:16 UTC
# zypper in yast2
Reading installed packages...
skipping package 'yast2' (the newest version already installed)
Nothing to do

but 
# zypper se yast2
doesnt't show that any of packages is installed in status column.
Comment 6 Forgotten User Xh41Ao4q6j 2008-04-09 05:17:11 UTC
Forgot to mention, attempt to install any package with YaST will add bunch of packages as dependencies. Installing 'zypper' it downloaded some 180 MB, similar with 'yast2', and after "installation" none of packages is checked as installed. 

# rpm -q  yast2
yast2-2.16.45-2

# zypper --version
zypper 0.10.5
Comment 7 Jan Kupec 2008-04-11 12:22:31 UTC
(In reply to comment #5 from Rajko Matovic)
> # zypper se yast2
> doesnt't show that any of packages is installed in status column.

that's bug 375161
Comment 8 Wolfgang Rosenauer 2008-04-11 12:30:03 UTC
*** Bug 375161 has been marked as a duplicate of this bug. ***
Comment 9 Wolfgang Rosenauer 2008-04-11 12:31:06 UTC
I've marked it duplicate to this one since it's certainly not "minor"
Comment 10 Wolfgang Rosenauer 2008-04-11 12:32:37 UTC
I _guessed_ the zypper and yast errors have the same origin. Please reopen the other one if I didn't understand correctly.
Comment 11 Jan Kupec 2008-04-11 12:39:11 UTC
They not only have the same origin, the are completely different. This bug must be investigated separately. Please someone check whether Qt YaST exhibits the same behavior so that Ricardo knows it's only GTK's yast problem.
Comment 12 Wolfgang Rosenauer 2008-04-11 12:49:26 UTC
See comment #4 . It's also in Qt
Comment 13 Jan Kupec 2008-04-11 13:45:20 UTC
Then it's probably something for zypp team, maybe Selectable::installedObj not returning the right object?
Comment 14 Dave Plater 2008-04-15 06:03:51 UTC
yast ncurses and qt sw_single do not know what packages are installed not just not displaying them. For example I tried to install kdeaddons3-games yast says that libjasper is not installed, but it is. If I allow yast to install the necessary packages it wants to install them next time round as well but they are definitely installed. Zypper on the other hand works perfectly in this respect.
Comment 15 Dave Plater 2008-04-15 06:08:59 UTC
I've noticed yast doesn't say reading installed packages anymore, is this not the problem?
Comment 16 Forgotten User Xh41Ao4q6j 2008-04-16 05:06:16 UTC
@Dave: It tells "Reading package database" in top left corner of the window. There is no pop up anymore. 

I have reinstalled Alpha 3. 
YaST is fixed with new rpm package, and after installing 'mc' I wanted to install kde4-konsole. It downloaded 140 MB of files, and after that it was showing old status, ie. old version of kde4-konsole as installed. 
This version still shows mark that package is installed. 

The 
rpm -qa kde4-konsole
kde4-konsole-4.0.3-8

So rpm database is OK, just yast sw_single and zypper doesn't read it.  
Tomorrow I attempt 'zypper dup' and see how it works. 

If yast2/zypper logs are needed for some reason please leave the comment. 
Comment 17 Dave Plater 2008-04-16 06:32:52 UTC
I used zypper to update yast2-ncurses-pkg and it updated libzypp and satsolver. After this the problem seems fixed.
Comment 18 Michael Andres 2008-04-22 15:15:10 UTC
@Rajko: Still in trouble or does it meanwhile work for you too?

If 'zypper clean' (at least removing "/var/cache/zypp/\@System.*") does not help, please send the logs.
Comment 19 Forgotten User Xh41Ao4q6j 2008-04-22 23:42:48 UTC
It works since yast2-ncurses-pkg update as in comment #17. 
I guess it is time to close bug. 
Comment 20 Forgotten User Xh41Ao4q6j 2008-04-22 23:44:26 UTC
Forgot to remove NEEDINFO status.
Comment 21 Dave Plater 2008-04-23 04:17:12 UTC
Fixed