[Bug 535432] New: zypper and yast cannot update rpm to 4.7.1 without removing installation system
http://bugzilla.novell.com/show_bug.cgi?id=535432 Summary: zypper and yast cannot update rpm to 4.7.1 without removing installation system Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: dave.plater@yahoo.co.uk QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.0) Gecko/20090623 SUSE/3.5.0-6.1 Firefox/3.0.6, Ant.com Toolbar 1.3 zypper in rpm causes the removal of entire yast2 system, zypper and libzypp. Reproducible: Always Steps to Reproduce: 1zypper in rpm. 2. 3. Actual Results: zypper asks to remove libzypp zypper and entire yast2 system Expected Results: zypper will upgrade to rpm-4.7.1 and also all packages that depend on it. -- 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=535432
User dave.plater@yahoo.co.uk added comment
http://bugzilla.novell.com/show_bug.cgi?id=535432#c1
Dave Plater
http://bugzilla.novell.com/show_bug.cgi?id=535432
User dave.plater@yahoo.co.uk added comment
http://bugzilla.novell.com/show_bug.cgi?id=535432#c2
--- Comment #2 from Dave Plater
http://bugzilla.novell.com/show_bug.cgi?id=535432
User dave.plater@yahoo.co.uk added comment
http://bugzilla.novell.com/show_bug.cgi?id=535432#c3
--- Comment #3 from Dave Plater
http://bugzilla.novell.com/show_bug.cgi?id=535432
User binner@kde.org added comment
http://bugzilla.novell.com/show_bug.cgi?id=535432#c4
--- Comment #4 from Stephan Binner
http://bugzilla.novell.com/show_bug.cgi?id=535432
User dave.plater@yahoo.co.uk added comment
http://bugzilla.novell.com/show_bug.cgi?id=535432#c5
--- Comment #5 from Dave Plater
http://bugzilla.novell.com/show_bug.cgi?id=535432
User ma@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=535432#c6
--- Comment #6 from Michael Andres
http://bugzilla.novell.com/show_bug.cgi?id=535432
User dave.plater@yahoo.co.uk added comment
http://bugzilla.novell.com/show_bug.cgi?id=535432#c7
--- Comment #7 from Dave Plater
http://bugzilla.novell.com/show_bug.cgi?id=535432
User dave.plater@yahoo.co.uk added comment
http://bugzilla.novell.com/show_bug.cgi?id=535432#c8
--- Comment #8 from Dave Plater
http://bugzilla.novell.com/show_bug.cgi?id=535432
User ma@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=535432#c9
Michael Andres
http://bugzilla.novell.com/show_bug.cgi?id=535432
User dave.plater@yahoo.co.uk added comment
http://bugzilla.novell.com/show_bug.cgi?id=535432#c10
--- Comment #10 from Dave Plater
http://bugzilla.novell.com/show_bug.cgi?id=535432
User dave.plater@yahoo.co.uk added comment
http://bugzilla.novell.com/show_bug.cgi?id=535432#c11
--- Comment #11 from Dave Plater
http://bugzilla.novell.com/show_bug.cgi?id=535432
User jkupec@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=535432#c12
--- Comment #12 from Ján Kupec
I have enabled /etc/zypp/systemCheck in zypp.conf and added requires:libzypp and requires:satsolver-tools to it and I get an error message when I try to install rpm using zypper in. This should be a system default IMHO and solve the possibility of breaking the installation system.
Yes, it would be nice, but it's not that simple, see http://lists.opensuse.org/zypp-devel/2009-08/msg00012.html . For now we stick with leaving this to the user. (In reply to comment #9)
The second problem, and IMO the only thing we could/should? fix, is that 'zypper in' still uses force resolve.
For a good reason - most of the time you get good results, and that's without being bothered by dependency resolution dialogs; e.g. in case the install/upgrade results in removing some other package, which needs yet another packages to be removed.
Without this, the suggested deletion of zypper/libzyp/etc. would have been reported as dependency conflict, telling that there is no provider for librpmdb-4.4. With this information one might recognize that factory is not consistent. At least one has to explicitly confirm the deletion.
Currently (with --force) zypper behaves as if everything went well.
Maybe is something that should be fixed. Currently zypper only adds 'p' (for 'show problems') to the 'Continue?' prompt in case 'in' deletes or 'rm' installs. Maybe this could be made more obvious. It could drop a line like "There were some dependency problems resolved automatically. Choose 'p' to try again a choose the solutions yourself.". What do you think? BTW, 'p' restarts the solver again, but with --no-force-resolution.
One may use --force per default when removing packages, but I don't know why it should be needed when installing. It just disguises potential problems.
See above. In short, also 'install' often removes packages. -- 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=535432
User dave.plater@yahoo.co.uk added comment
http://bugzilla.novell.com/show_bug.cgi?id=535432#c13
--- Comment #13 from Dave Plater
http://bugzilla.novell.com/show_bug.cgi?id=535432
User ma@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=535432#c14
--- Comment #14 from Michael Andres
'show problems') to the 'Continue?' prompt in case 'in' deletes or 'rm' installs. Maybe this could be made more obvious. It could drop a line like "There were some dependency problems resolved automatically. Choose 'p' to try again a choose the solutions yourself.". What do you think?
Maybe: Add an option to your zypper.conf, so I can disable auto-using --force. As long as --force is on, you won't convince me that --force is necessary or helpful. -- 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=535432
User dave.plater@yahoo.co.uk added comment
http://bugzilla.novell.com/show_bug.cgi?id=535432#c15
--- Comment #15 from Dave Plater
Maybe: Add an option to your zypper.conf, so I can disable auto-using --force.
As long as --force is on, you won't convince me that --force is necessary or helpful.
"-f, --force Install even if the item is already installed (reinstall)" taken from man zypper. isn't a default, --force-resolution is a default for zypper install and causes packages to be marked for deletion and normally makes life easier. If certain packages which it would be illogical to remove such as rpm, libzypp and satsolver-tools that make the base installation system were in /etc/zypp/systemCheck and systemCheck was enabled in zypp.conf by default then problems like this would never occur and the installation system would never remove itself at least without warning the user. see https://bugzilla.novell.com/show_bug.cgi?id=379480#c8 -- 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=535432
Stephan Kulow
http://bugzilla.novell.com/show_bug.cgi?id=535432
User jkupec@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=535432#c16
--- Comment #16 from Ján Kupec
http://bugzilla.novell.com/show_bug.cgi?id=535432
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=535432
https://bugzilla.novell.com/show_bug.cgi?id=535432#c17
Ján Kupec
participants (1)
-
bugzilla_noreply@novell.com