[Bug 555296] New: zypper: zypper up doesn't show upgrades that zypper search does
http://bugzilla.novell.com/show_bug.cgi?id=555296 Summary: zypper: zypper up doesn't show upgrades that zypper search does Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: jnelson-suse@jamponi.net QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4) Gecko/20091016 SUSE/3.5.4-1.1.2 Firefox/3.5.4 I don't understand why zypper won't find the upgrade for a package. Example: worklaptop:~ # zypper search -ds jfsu Loading repository data... Reading installed packages... S | Name | Type | Version | Arch | Repository --+----------------------+------------+-------------+--------+---------------------------- v | jfsutils | package | 1.1.14-31.1 | x86_64 | jnelson-suse's Home Project v | jfsutils | package | 1.1.14-31.1 | i586 | jnelson-suse's Home Project i | jfsutils | package | 1.1.12-27.1 | x86_64 | openSUSE-11.2-Oss v | jfsutils | package | 1.1.12-27.1 | i586 | openSUSE-11.2-Oss | jfsutils | srcpackage | 1.1.14-31.1 | noarch | jnelson-suse's Home Project | jfsutils-debuginfo | package | 1.1.12-27.1 | x86_64 | openSUSE-11.2-Debug | jfsutils-debuginfo | package | 1.1.12-27.1 | i586 | openSUSE-11.2-Debug | jfsutils-debugsource | package | 1.1.12-27.1 | x86_64 | openSUSE-11.2-Debug | jfsutils-debugsource | package | 1.1.12-27.1 | i586 | openSUSE-11.2-Debug worklaptop:~ # zypper -vv up jfsutils Verbosity: 2 Non-option program arguments: 'jfsutils' Initializing Target Checking whether to refresh metadata for Google - i386 Checking whether to refresh metadata for NVIDIA Repository Checking whether to refresh metadata for Packman Repository Checking whether to refresh metadata for Software configuration management (openSUSE_11.2) Checking whether to refresh metadata for Telephony Software (openSUSE_11.2) Checking whether to refresh metadata for VirtualBox OSE is an Emulator (openSUSE_11.2) Checking whether to refresh metadata for Virtualization:Qemu Checking whether to refresh metadata for jnelson-suse's Home Project Checking whether to refresh metadata for openSUSE-11.2-Debug Checking whether to refresh metadata for openSUSE-11.2-Non-Oss Checking whether to refresh metadata for openSUSE-11.2-Oss Checking whether to refresh metadata for openSUSE-11.2-Update Loading repository data... Reading installed packages... Force resolution: No No update candidate for 'jfsutils'. Resolving package dependencies... Force resolution: No Nothing to do. worklaptop:~ # As you can see, zypper search finds jfsutils 1.1.14, but zypper up doesn't appear to be considering it. Why not? Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555296
User jkupec@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=555296#c1
Ján Kupec
http://bugzilla.novell.com/show_bug.cgi?id=555296
User jkupec@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=555296#c2
--- Comment #2 from Ján Kupec
$ zypper in jfsutils # should ask you to allow vendor change # in case that was the problem
Uhm. I'm not sure if it currently works that way. It'll probably act just like 'up', telling you that jfsutils is already installed. But 'zypper in jsfutils-1.1.14-31.1' should work (and ask you to allow the vendor change). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555296
User jnelson-suse@jamponi.net added comment
http://bugzilla.novell.com/show_bug.cgi?id=555296#c3
Jon Nelson
http://bugzilla.novell.com/show_bug.cgi?id=555296
User jkupec@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=555296#c4
Ján Kupec
http://bugzilla.novell.com/show_bug.cgi?id=555296
User jnelson-suse@jamponi.net added comment
http://bugzilla.novell.com/show_bug.cgi?id=555296#c5
Jon Nelson
http://bugzilla.novell.com/show_bug.cgi?id=555296
User jkupec@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=555296#c6
Ján Kupec
http://bugzilla.novell.com/show_bug.cgi?id=555296
Ján Kupec
http://bugzilla.novell.com/show_bug.cgi?id=555296
User jnelson-suse@jamponi.net added comment
http://bugzilla.novell.com/show_bug.cgi?id=555296#c7
Jon Nelson
http://bugzilla.novell.com/show_bug.cgi?id=555296#c8
Michael Andres
'jsfutils-1.1.14-31.1' not found.
Due to a typeo in comment #4: name is jfsutils (not jsfutils). ;) -- jfsutils-1.1.14 is no candidate for automatic update, because it's vendor is 'obs://build.opensuse.org/home:jnelson-suse' and the installed ones is 'openSUSE'. -- There've been several changes to the zypper commandline handling. At least the latest zypper (1.2.10) should support selecting a specific package version via: zypper in jfsutils-1.1.14-31.1 or zypper in --from "jnelson-suse's_Home_Project" jfsutils CAUTION: Zypper expects the repositories ALIAS as argument to --from. Don't mix it up with the NAME, which is shown in 'zypper se' Repository column. In doubt check 'zypper lr'. @Jano: It would IMO be a nice enhancement, if any repo spec was accepted, that matches either a repositories alias, or exactly one repos name. This way one could simply cut'n'paste from 'zypper se -s' output. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555296#c9
Jon Nelson
http://bugzilla.novell.com/show_bug.cgi?id=555296#c10
Ján Kupec
I don't see how this can be resolved.
This is how it is designed to work, from the POV of the dependency resolver. However, this is a usability bug in zypper's UI, read on.
As far as I'm concerned, if package foo-1.0 is installed and package foo-2.0 is available to install, then I and everybody else would consider foo a candidate for upgrade.
zypper in jfsutils-1.1.14-31.1
*does* work, however 'zypper up' doesn't, and I think that a *lot* of people are going to find this very confusing.
They already do. What is missing here is that zypper up should report that it intentionally skipped jfsutils because that update would mean a change of vendor and hint what should be done to update such packages. I'll keep this bug open until the reporting is fixed or someone finds a duplicate (there are some IIRC). In the meantime, add file with the following content to your /etc/zypp/vendors.d/: [main] vendors=obs://build.opensuse.org/home:jnelson-suse @ma: is this correct, or would "vendors=home:jnelson-suse" suffice? Do we have this somewhere documented? I always have to learn this anew when i need it occasionally :O) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555296#c11
--- Comment #11 from Ján Kupec
@Jano: It would IMO be a nice enhancement, if any repo spec was accepted, that matches either a repositories alias, or exactly one repos name. This way one could simply cut'n'paste from 'zypper se -s' output.
Sure, this is planned: bug 543510. Thanx for spotting the typo btw :O) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555296#c
Ján Kupec
http://bugzilla.novell.com/show_bug.cgi?id=555296
http://bugzilla.novell.com/show_bug.cgi?id=555296#c12
Ján Kupec
http://bugzilla.novell.com/show_bug.cgi?id=555296
http://bugzilla.novell.com/show_bug.cgi?id=555296#c13
Ján Kupec
http://bugzilla.novell.com/show_bug.cgi?id=555296
http://bugzilla.novell.com/show_bug.cgi?id=555296#c14
Ján Kupec
participants (1)
-
bugzilla_noreply@novell.com