[Bug 953614] New: 'zypper up' refuses to upgrade package
http://bugzilla.opensuse.org/show_bug.cgi?id=953614 Bug ID: 953614 Summary: 'zypper up' refuses to upgrade package Classification: openSUSE Product: openSUSE Distribution Version: 13.2 Hardware: x86-64 OS: openSUSE 13.2 Status: NEW Severity: Normal Priority: P5 - None Component: libzypp Assignee: zypp-maintainers@forge.provo.novell.com Reporter: mikhail.kasimov@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 654624 --> http://bugzilla.opensuse.org/attachment.cgi?id=654624&action=edit Difference between zypper and PackageKit Hello! Have got an interesting case: 'zypper up' refuses to upgrade package (red line on screenshot. Text, if translate in English, "These 2 updates WON'T be installed. Nothing to proceed."), but updating from GUI PackageKit completes normally (green line on screenshot) without any conflict alerts. Mozilla is updated from /mozilla/OpenSUSE_13.2/ repo. Which logs should I attach to help to investigate this bug/feature(?) ? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=953614
http://bugzilla.opensuse.org/show_bug.cgi?id=953614#c1
Michael Andres
http://bugzilla.opensuse.org/show_bug.cgi?id=953614
http://bugzilla.opensuse.org/show_bug.cgi?id=953614#c2
--- Comment #2 from Mikhail Kasimov
http://bugzilla.opensuse.org/show_bug.cgi?id=953614
http://bugzilla.opensuse.org/show_bug.cgi?id=953614#c3
--- Comment #3 from Mikhail Kasimov
Please attach /var/log/zypp/history /var/log/zypper.log /var/log/pk_backend_zypp
Done! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=953614
http://bugzilla.opensuse.org/show_bug.cgi?id=953614#c4
--- Comment #4 from Michael Andres
[/var/log/zypp/history] 2015-10-24 19:56:45|install|MozillaFirefox |...|repo-update| 2015-10-24 19:58:11|install|MozillaFirefox-translations-common|...|repo-update| ... 2015-11-04 18:26:48|install|MozillaFirefox |...|Mozilla| 2015-11-04 18:28:44|install|MozillaFirefox-translations-common|...|Mozilla|
The history file reveals the reason why zypper does not automatically perform the update. The previously installed version came from the official update repos (repo-update; vendor openSUSE), the new version from repo Mozilla (vendor obs://build.opensuse.org). As vendor changes are not performed automatically, zypper omitted the firefox update, which was right. If you had executed 'zypper up MozillaFirefox MozillaFirefox-translations-common' zypper would have asked you to confirm the vendor change. Now to PK:
$ grep -- '--root' pk_backend_zypp 2015-11-03 17:37:34 ... 'rpm' '--root' .../libzypp-14.40.2-29.2.x86_64.rpm' 2015-11-03 17:37:46 ... 'rpm' '--root' .../zypper-aptitude-1.11.34-25.2.noarch.rpm' 2015-11-03 17:37:48 ... 'rpm' '--root' .../zypper-log-1.11.34-25.2.noarch.rpm' 2015-11-03 17:37:49 ... 'rpm' '--root' .../zypper-1.11.34-25.2.x86_64.rpm'
Those are the last installs mentioned in the pk_backend_zypp log, and you also find them in the zypp/history file. According to the history MozillaFirefox was installed the next day at 2015-11-04 18:26:48. But this install is neither in the zypper nor in the PK log. A closer look to the screenshot reveals 'Software Manager YaST' in the title line. So maybe the yast logs can help. Please attach: /var/log/YaST2/y2log (test with "grep -- '--root' /var/log/YaST2/y2log | grep MozillaFirefox" if the log actually contains the installation. If the logs were already rotated it may be in y2log-1.gz or y2log-2.gz or...) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=953614
http://bugzilla.opensuse.org/show_bug.cgi?id=953614#c5
--- Comment #5 from Mikhail Kasimov
http://bugzilla.opensuse.org/show_bug.cgi?id=953614
http://bugzilla.opensuse.org/show_bug.cgi?id=953614#c6
--- Comment #6 from Mikhail Kasimov
http://bugzilla.opensuse.org/show_bug.cgi?id=953614
http://bugzilla.opensuse.org/show_bug.cgi?id=953614#c7
--- Comment #7 from Michael Andres
{2015-11-04 18:20 2194 YaST2 y2base sw_single gtk} 2015-11-04 18:23:25 Resolver.cc(solverInit):293 -------------- Calling SAT Solver ------------------- 2015-11-04 18:23:25 SATResolver.cc(resolvePool):768 SATResolver::resolvePool() 2015-11-04 18:23:25 SATResolver.cc(solverInit):683 SATResolver::solverInit() 2015-11-04 18:23:25 SATResolver.cc(resolvePool):778 Install U_Tu_r(5299)MozillaFirefox-42.0-1.1.x86_64(Mozilla) 2015-11-04 18:23:25 SATResolver.cc(resolvePool):778 Install U_Tu_r(5311)MozillaFirefox-translations-common-42.0-1.1.x86_64(Mozilla)
2015-11-04 18:23:25 SATResolver.cc(solving):502 Starting solving.... 2015-11-04 18:23:25 SATResolver.cc(solving):503 <resolver> 2015-11-04 18:23:25 SATResolver.cc(solving):503 ALLOW_DOWNGRADE = 0 2015-11-04 18:23:25 SATResolver.cc(solving):503 ALLOW_ARCHCHANGE = 0 2015-11-04 18:23:25 SATResolver.cc(solving):503 ALLOW_VENDORCHANGE = 1
Obviously the YAST gtk software manger set 'ALLOW_VENDORCHANGE = 1', which differs from the system wide default in /etc/zypp/zypp.conf, which is what zypper uses. That's the reason why the packages were installed. == Bug or Feature? It depends. If the YAST installer offers a button to allow vendor changes, and you clicked it, it's IMO ok. No bug. However if you clicked some time ago, and the installer remembered this choice, it's IMO not OK. _All_ installer should follow the same global defaults, and allow changes only per session. In this case the bug should be reassigned to 'Component: YaST2' to fix it. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=953614
http://bugzilla.opensuse.org/show_bug.cgi?id=953614#c8
--- Comment #8 from Mikhail Kasimov
http://bugzilla.opensuse.org/show_bug.cgi?id=953614
http://bugzilla.opensuse.org/show_bug.cgi?id=953614#c9
--- Comment #9 from Mikhail Kasimov
As I remember, I turned checkbox 'Allow vendor change' in YaST Software Manager 'Option' menu a long time ago. But exactly - not when I tried to update Mozilla on 4th Nov 2015.
I turned checkbox 'Allow vendor change' ON (I missed to define the status, sorry) in YaST... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=953614
http://bugzilla.opensuse.org/show_bug.cgi?id=953614#c10
Michael Andres
participants (1)
-
bugzilla_noreply@novell.com