Bug 337785

Summary: opensuse-updater removes programs when installing upgrade
Product: [openSUSE] openSUSE 10.3 Reporter: Forgotten User mbHMon8IUm <forgotten_mbHMon8IUm>
Component: YaST2Assignee: Jan Kupec <jkupec>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P5 - None CC: tgoettlicher
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 10.3   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on: 337629    
Bug Blocks:    
Attachments: zypper log

Description Forgotten User mbHMon8IUm 2007-10-30 12:22:20 UTC
Recently I accepted the upgrade to evince.  On that, several programs (texlive, a lot of kde-stuff) got deleted.  Checking that upgrade in YaST package manager gave a lot of dependency conflicts, that suggested deleting all those packages.  opensuse-updater should also mention the dependency conflict, warn and give the option to abort.  Even better, it would offer a screen to resolve the problems, like ypm does.
Comment 1 Cyril Hrubis 2007-10-30 19:02:47 UTC
Do you use KDE or Gnome version of opensuse-updater?
Comment 2 Forgotten User mbHMon8IUm 2007-10-31 10:00:38 UTC
I use both, on two machines, but this was on Gnome.  I didn’t really want to try the same thing on the other machine with kde, although I suppose that would be useful, so I will.
Comment 3 Forgotten User mbHMon8IUm 2007-11-02 10:28:02 UTC
Today this has happened again (on Gnome).  The culprit seems to be that the poppler library gets uninstalled and thus all its dependencies, amongst them texlive.

Reinstallation with yast afterwards is no problem, so I see no reason why it should be uninstalled in the first place.

Note that I had to run the updater twice.  The first time, only the necessary updates were installed, the second time the additional ones.

I do not know which upgrade caused the problem, there were 85 of them.
Comment 4 Jan Kupec 2007-11-06 15:46:04 UTC
I guess this will be a duplicate of bug 337370. I will provide a way to call zypper with force-resolve == false resolver mode. I suggest to make this mode the default for zypper, so no need will probably be needed in updaters.

Hendrik, to be sure it is the bug 337370 causing this, please attach /var/log/zypper.log (last few hudred lines is enough) the next time this happens.
Comment 5 Jan Kupec 2007-11-06 15:46:48 UTC
BTW: how do the updaters handle eventual dependency problems reported by zypper?
Comment 6 Forgotten User mbHMon8IUm 2007-11-06 16:25:54 UTC
Created attachment 182234 [details]
zypper log

I filtered out the part which says 2007-11-02 from the zypper log.  It is still rather big.  I hope this helps.  If you want, I can add the part from 2007-10-30 as well.
Comment 7 Jan Kupec 2007-11-06 17:05:32 UTC
Thanx! Confirmed, it's bug 337370.
Comment 8 Jan Kupec 2007-11-09 14:34:32 UTC
Done in zypper (see bug 337370). Thomas, Josh, please see comments #4 and #5. The force-resolve == false will be the default since now (zypper >= 0.9.2), so in cases like this, dependency problems will be reported by zypper instead of just removing the problematic packages. I just want to make sure the updaters are prepared for that (they probably are).
Comment 9 Thomas Göttlicher 2007-11-09 15:01:24 UTC
force-resolve=false as default is good for opensuseupdater-kde.
Comment 10 Jan Kupec 2007-12-03 17:34:19 UTC
Thomas, Josh I've changed the defaults a bit as we discussed. If you're using --non-interactive in the updaters, you don't need to make any change to your code (the default is 'false' in non-interactive).

Submitted in zypper 0.9.3

-------------------------------------------------------------------
Mon Dec  3 18:19:21 CET 2007 - jkupec@suse.cz

- new defaults for the force-resolution solver mode:
  'on' by default in the interactive mode,
  'off' by default in the non-interactive.
  'on' is the default for rug-compatible mode (even non-interact.).
  And finally, if the --force-resolve <on|off> is specified, it
  takes preference.
- r8011
- 0.9.3