Bug 395482

Summary: zypper lu -t package -r "RepoName" not working as expected
Product: [openSUSE] openSUSE 11.0 Reporter: Forgotten User zhFaldehF_ <forgotten_zhFaldehF_>
Component: libzyppAssignee: Jan Kupec <jkupec>
Status: RESOLVED DUPLICATE QA Contact: Duncan Mac-Vicar <dmacvicar>
Severity: Normal    
Priority: P3 - Medium CC: dimstar
Version: RC 1Flags: coolo: SHIP_STOPPER-
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Zypper Log
Zypper Log from 11.0

Description Forgotten User zhFaldehF_ 2008-05-29 15:57:52 UTC
I run a zypper lu -t package and see many updates needed for example in the KDE 4 Desktop repo. 

bkevan@LSSUSE01007250:~> sudo zypper lu -t package
Reading installed packages...
S | Repository            | Name                                          | Version             | Arch
--+-----------------------+-----------------------------------------------+---------------------+-------
v | OOffice Stable        | OpenOffice_org-Quickstarter                   | 1.0-671.1           | i586
v | Main Repository (OSS) | OpenOffice_org-templates-en                   | 2.0.4-51            | noarch
v | Main Repository (OSS) | OpenOffice_org-templates-presentation-layouts | 2.0.4-53            | noarch
v | Main Repository (OSS) | OpenOffice_org-thesaurus-en                   | 20060111-14         | noarch
v | Main Repository (OSS) | akonadi                                       | 3.93.0.svn712059-12 | i586
v | KDE 3.5               | arts                                          | 1.5.9-22.10         | i586
v | Main Repository (OSS) | atk                                           | 1.20.0-5            | i586
v | YaST                  | autoyast2                                     | 2.16.17-2.1         | noarch
v | YaST                  | autoyast2-installation                        | 2.16.17-2.1         | noarch
v | Main Repository (OSS) | check                                         | 0.9.5-34            | i586
v | Main Repository (OSS) | desktop-data-SuSE                             | 10.3-88             | noarch
v | KDE 3.5               | desktop-translations                          | 11.0-22.1           | noarch
v | Main Repository (OSS) | esound                                        | 0.2.38-17           | i586
v | Main Repository (OSS) | gail                                          | 1.20.0-4            | i586
v | Main Repository (OSS) | gconf2                                        | 2.20.0-4            | i586
v | Main Repository (OSS) | gimp-help                                     | 0.9-142             | noarch
v | Main Repository (OSS) | glib-sharp2                                   | 2.10.2-30           | i586
v | Main Repository (OSS) | glitz                                         | 0.5.6-86            | i586
v | Main Repository (OSS) | gnome-icon-theme                              | 2.20.0-3            | noarch
v | Main Repository (OSS) | gsf-sharp                                     | 0.8.1-85            | i586
v | Main Repository (OSS) | gtk-sharp2                                    | 2.10.2-30           | i586
v | Main Repository (OSS) | gtkspell                                      | 2.0.11-128          | i586
v | Packman               | k3b                                           | 1.0.5-0.pm.1        | i586
v | Packman               | k3b-lang                                      | 1.0.5-0.pm.1        | i586
v | KDE 4 Desktop         | kde4-filesystem                               | 4.0.4-7.1           | noarch
v | KDE 4 Desktop         | kde4-kdialog                                  | 4.0.4-13.1          | i586
v | KDE 4 Desktop         | kde4-konquest                                 | 4.0.4-10.1          | i586
v | KDE 4 Desktop         | kde4-krdc                                     | 4.0.4-15.1          | i586
v | KDE 4 Desktop         | kdebase4-runtime                              | 4.0.4-15.1          | i586
v | KDE 4 Desktop         | kdegames4                                     | 4.0.4-10.1          | i586
v | KDE 4 Desktop         | kdegames4-carddecks-default                   | 4.0.4-11.1          | noarch
v | KDE 4 Desktop         | kdegames4-carddecks-other                     | 4.0.4-11.1          | noarch
v | KDE 4 Desktop         | kdelibs4                                      | 4.0.4-21.1          | i586
v | KDE 4 Desktop         | kdelibs4-core                                 | 4.0.4-21.1          | i586
v | KDE 4 Extra Apps      | ktorrent                                      | 3.0.2-15.10         | i586
v | KDE 4 Extra Apps      | ktorrent-lang                                 | 3.0.2-15.10         | i586
v | KDE 3.5               | libakode                                      | 2.0.2-123.19        | i586
v | Main Repository (OSS) | libart_lgpl                                   | 2.3.19-35           | i586
v | Main Repository (OSS) | libbonoboui                                   | 2.20.0-4            | i586
v | Main Repository (OSS) | libdaemon                                     | 0.12-18             | i586
v | Main Repository (OSS) | libgadu                                       | 1.7.1-29            | i586
v | Main Repository (OSS) | libglade2                                     | 2.6.2-20            | i586
v | Main Repository (OSS) | libgnome                                      | 2.20.0-7            | i586
v | Main Repository (OSS) | libgnome-certauth0                            | 0.3-3               | i586
v | Main Repository (OSS) | libgnomeprint                                 | 2.18.2-4            | i586
v | Main Repository (OSS) | libgnomeprintui                               | 2.18.1-4            | i586
v | Main Repository (OSS) | libgtkhtml                                    | 2.11.1-5            | i586
v | Main Repository (OSS) | libidl                                        | 0.8.9-4             | i586
v | KDE 4 Desktop         | libkde4                                       | 4.0.4-21.1          | i586
v | KDE 4 Desktop         | libkdecore4                                   | 4.0.4-21.1          | i586
v | KDE 4 Desktop         | libkdegames4                                  | 4.0.4-10.1          | i586
v | Main Repository (OSS) | liboil                                        | 0.3.9-67            | i586
v | KDE 4 Desktop         | libqca2                                       | 2.0.0-28.40         | i586
v | Main Repository (OSS) | librsvg                                       | 2.18.2-9            | i586
v | KDE 4 Desktop         | libsoprano4                                   | 2.0.98-8.19         | i586
v | KDE 4 Desktop         | libstrigi0                                    | 0.5.9-2.14          | i586
v | Main Repository (OSS) | libwavpack1                                   | 4.41.0-14           | i586
v | Main Repository (OSS) | meanwhile                                     | 1.0.2-33            | i586
v | Mozilla Stable        | mozilla-xulrunner181                          | 1.8.1.14-2.1        | i586
v | Main Repository (OSS) | nss-mdns                                      | 0.9-42              | i586
v | Main Repository (OSS) | orbit2                                        | 2.14.9-5            | i586
v | KDE 4 Desktop         | oxygen-icon-theme                             | 4.0.4-16.1          | noarch
v | KDE 4 Desktop         | oxygen-icon-theme-scalable                    | 4.0.4-16.1          | noarch
v | Main Repository (OSS) | pango                                         | 1.18.2-4            | i586
v | Main Repository (OSS) | pkg-config                                    | 0.21-38             | i586
v | Main Repository (OSS) | pth                                           | 2.0.7-43            | i586
v | Main Repository (OSS) | python-cairo                                  | 1.2.2-91            | i586
v | Main Repository (OSS) | python-orbit                                  | 2.14.3-20           | i586
v | KDE 4 Desktop         | python-sip                                    | 4.7.4-26.1          | i586
v | KDE 3.5               | qt3                                           | 3.3.8b-30.10        | i586
v | KDE 3.5               | qt3-devel                                     | 3.3.8b-30.10        | i586
v | KDE 4 Desktop         | soprano                                       | 2.0.98-8.19         | i586
v | KDE 4 Desktop         | strigi                                        | 0.5.9-2.14          | i586
v | YaST                  | yast2                                         | 2.16.71-2.2         | i586
v | YaST                  | yast2-backup                                  | 2.16.5-2.5          | noarch
v | YaST                  | yast2-bootloader                              | 2.16.17-2.1         | i586
v | YaST                  | yast2-country                                 | 2.16.26-2.3         | i586
v | YaST                  | yast2-country-data                            | 2.16.26-2.3         | i586
v | YaST                  | yast2-ldap                                    | 2.16.0-2.51         | i586
v | YaST                  | yast2-mouse                                   | 2.16.1-20.5         | i586
v | YaST                  | yast2-network                                 | 2.16.46-2.1         | i586
v | YaST                  | yast2-online-update                           | 2.16.15-2.6         | noarch
v | YaST                  | yast2-online-update-frontend                  | 2.16.15-2.6         | noarch
v | YaST                  | yast2-packager                                | 2.16.52-2.2         | i586
v | YaST                  | yast2-pkg-bindings                            | 2.16.38-2.1         | i586
v | YaST                  | yast2-printer                                 | 2.16.31-2.2         | i586
v | YaST                  | yast2-profile-manager                         | 2.16.1-20.8         | i586
v | YaST                  | yast2-qt                                      | 2.16.51-2.1         | i586
v | YaST                  | yast2-qt-pkg                                  | 2.16.44-4.2         | i586
v | YaST                  | yast2-repair                                  | 2.16.11-2.4         | noarch
v | YaST                  | yast2-slp                                     | 2.16.0-2.29         | i586
v | YaST                  | yast2-sound                                   | 2.16.11-2.2         | i586
v | YaST                  | yast2-storage                                 | 2.16.24-2.4         | i586
v | YaST                  | yast2-storage-lib                             | 2.16.24-2.4         | i586
v | YaST                  | yast2-transfer                                | 2.16.1-2.52         | i586
v | YaST                  | yast2-tune                                    | 2.16.1-25.7         | i586
v | YaST                  | yast2-update                                  | 2.16.9-8.9          | i586
v | YaST                  | yast2-users                                   | 2.16.33-2.2         | i586

So I go to update: 
bkevan@LSSUSE01007250:~> sudo zypper up -t package -r "KDE 4 Desktop"
Reading installed packages...
Nothing to do.

Here is the version of libzypp and zypper: 
bkevan@LSSUSE01007250:~> rpm -qa | grep zypp
zypper-0.11.4-2.1
libzypp-4.23.0-2.1

These are from the backport repo and is on opensuse 10.3
Comment 1 Jan Kupec 2008-05-29 16:14:39 UTC
Works for me. Is the "KDE 4 Desktop" an alias? The -r option takes alias, repo # from 'zypper lr' or repo URI.

What's your 'zypper lr -d'?
Comment 2 Jan Kupec 2008-05-29 16:16:01 UTC
Also please attach zypper.log, since you should get something like this even if you supplied an invalid argument to the -r option:

$ zypper lu -t package -r "Packman 11.0"
Repository 'Packman 11.0' not found by its alias, number, or URI.
Use 'zypper repos' to get the list of defined repositories.
Comment 3 Jan Kupec 2008-05-29 16:17:13 UTC
(and please shorten the output listing in the future, there's no need for the whole 'lu' list here) :O)
Comment 4 Forgotten User zhFaldehF_ 2008-05-29 17:05:33 UTC
Here is the output pertaining to KDE 4 Desktop for zypper lr -d

7  | KDE 4 Desktop                                                     | KDE 4 Desktop             | Yes     | Yes     | 99       | rpm-md | http://download.opensuse.org/repositories/KDE%3a/KDE4%3a/STABLE%3a/Desktop/openSUSE_10.3/


Here is the output of the repo file: 
bkevan@LSSUSE01007250:~> cat /etc/zypp/repos.d/KDE\ 4\ Desktop\ Repository.repo
[KDE 4 Desktop]
name=KDE 4 Desktop
baseurl=http://download.opensuse.org/repositories/KDE%3a/KDE4%3a/STABLE%3a/Desktop/openSUSE_10.3/
path=/
type=rpm-md
enabled=1
autorefresh=1
gpgcheck=1
keeppackages=1
Comment 5 Forgotten User zhFaldehF_ 2008-05-29 17:13:37 UTC
Created attachment 218950 [details]
Zypper Log

Zypper Log that you requested

I tailed the last 50000 lines since the original log was 13MB.. should be plenty for ya
Comment 6 Forgotten User zhFaldehF_ 2008-05-29 17:22:57 UTC
Also note.. this worked fine before upgrading to the backport repository and I did a zypper ref --force and also deleted /var/cache/zypp to see if that caused the issues. 
Comment 7 Forgotten User zhFaldehF_ 2008-05-30 03:49:30 UTC
I am upgrading the urgency of this. Why? Because I just installed RC1 and have the same behavior with:

bkevan@bksuse11test:/etc/zypp/repos.d> rpm -qa | grep zypp
libzypp-4.25.0-5
zypper-0.11.5-2

bkevan@bksuse11test:/etc/zypp/repos.d> zypper lu -t package
Reading installed packages...
S | Repository         | Name                        | Version          | Arch
--+--------------------+-----------------------------+------------------+-----
v | Packman Repository | amarok                      | 1.4.9.1-101.pm.1 | i586
v | Packman Repository | amarok-libvisual            | 1.4.9.1-101.pm.1 | i586
v | Packman Repository | amarok-yauap                | 1.4.9.1-101.pm.1 | i586
v | Packman Repository | fftw3                       | 3.1.2-142.pm.3   | i586
v | Packman Repository | gstreamer-0_10              | 0.10.19-42.pm.1  | i586
v | Packman Repository | gstreamer-0_10-plugins-base | 0.10.19-42.pm.1  | i586
v | Packman Repository | gstreamer-0_10-plugins-good | 0.10.8-42.pm.1   | i586
v | Packman Repository | k3b                         | 1.0.5-0.pm.2     | i586
v | Packman Repository | libgstinterfaces-0_10-0     | 0.10.19-42.pm.1  | i586
v | Packman Repository | libtunepimp                 | 0.5.3-100.pm.9   | i586
v | Packman Repository | libtunepimp5                | 0.5.3-100.pm.9   | i586
v | Packman Repository | mjpegtools                  | 1.9.0rc3-0.pm.1  | i586
bkevan@bksuse11test:/etc/zypp/repos.d> sudo zypper up -t package -r "http://ftp.skynet.be/pub/packman/suse/11.0/"
Reading installed packages...
Nothing to do.

I am considering blocker as zypper (a main part) is not functioning as suspected. I will update the logs for my new 11.0 RC1 install since it's pretty clean. 
Comment 8 Forgotten User zhFaldehF_ 2008-05-30 03:53:23 UTC
I am upgrading the urgency of this. Why? Because I just installed RC1 and have the same behavior with:

bkevan@bksuse11test:/etc/zypp/repos.d> rpm -qa | grep zypp
libzypp-4.25.0-5
zypper-0.11.5-2

bkevan@bksuse11test:/etc/zypp/repos.d> zypper lu -t package
Reading installed packages...
S | Repository         | Name                        | Version          | Arch
--+--------------------+-----------------------------+------------------+-----
v | Packman Repository | amarok                      | 1.4.9.1-101.pm.1 | i586
v | Packman Repository | amarok-libvisual            | 1.4.9.1-101.pm.1 | i586
v | Packman Repository | amarok-yauap                | 1.4.9.1-101.pm.1 | i586
v | Packman Repository | fftw3                       | 3.1.2-142.pm.3   | i586
v | Packman Repository | gstreamer-0_10              | 0.10.19-42.pm.1  | i586
v | Packman Repository | gstreamer-0_10-plugins-base | 0.10.19-42.pm.1  | i586
v | Packman Repository | gstreamer-0_10-plugins-good | 0.10.8-42.pm.1   | i586
v | Packman Repository | k3b                         | 1.0.5-0.pm.2     | i586
v | Packman Repository | libgstinterfaces-0_10-0     | 0.10.19-42.pm.1  | i586
v | Packman Repository | libtunepimp                 | 0.5.3-100.pm.9   | i586
v | Packman Repository | libtunepimp5                | 0.5.3-100.pm.9   | i586
v | Packman Repository | mjpegtools                  | 1.9.0rc3-0.pm.1  | i586
bkevan@bksuse11test:/etc/zypp/repos.d> sudo zypper up -t package -r "http://ftp.skynet.be/pub/packman/suse/11.0/"
Reading installed packages...
Nothing to do.

I am considering blocker as zypper (a main part) is not functioning as suspected. I will update the logs for my new 11.0 RC1 install since it's pretty clean. 
Comment 9 Forgotten User zhFaldehF_ 2008-05-30 03:54:41 UTC
Created attachment 219010 [details]
Zypper Log from 11.0

ZYpper logs from 11.0 RC1 installation with 

bkevan@bksuse11test:/etc/zypp/repos.d> rpm -qa | grep zypp
libzypp-4.25.0-5
zypper-0.11.5-2
Comment 10 Stephan Kulow 2008-05-30 04:59:18 UTC
this is still not a blocker
Comment 11 Forgotten User zhFaldehF_ 2008-05-30 05:57:15 UTC
I consider it to be higher then normal. Why? Because I cannot update easily or use zypper functions how they were intended to be used. Zypper is the only tool I use for updating, and would hate to have to replace it with yum since yum would work. 

On the mailing list at least one other has reported the same issue and I also see this in 11.0 RC1
Comment 12 Dominique Leuenberger 2008-05-30 08:35:26 UTC
Ben, I think your "updates" are not performed due to a provider change of the packages.

All the packages have now Provider SUSE Linux, but you try to 'update' them to the PackMan or OBS versions. Zypper does not treat this as a 'safe update' as far as I understood.

But I agree that 
zypper lu -t package

should be consistent with what zypper up -t package is going to do (or mark the packages as 'provider different', but for this we're to late in 11.0)
Comment 13 Forgotten User zhFaldehF_ 2008-05-30 14:02:25 UTC
(In reply to comment #12 from Dominique Leuenberger)
> Ben, I think your "updates" are not performed due to a provider change of the
> packages.
> 
> All the packages have now Provider SUSE Linux, but you try to 'update' them to
> the PackMan or OBS versions. Zypper does not treat this as a 'safe update' as
> far as I understood.
> 
> But I agree that 
> zypper lu -t package
> 
> should be consistent with what zypper up -t package is going to do (or mark the
> packages as 'provider different', but for this we're to late in 11.0)
> 

Yes, however even the ones that are detected (at times a few are detected) and are installed change providers. Why can't the others be detected, installed then providers changed? 

Yum handles this just fine. 
Comment 14 Jan Kupec 2008-05-30 16:40:05 UTC

*** This bug has been marked as a duplicate of bug 392591 ***