After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 723922 - Do not allow uninstalling anything required by a system application
Do not allow uninstalling anything required by a system application
Status: RESOLVED OBSOLETE
Product: gnome-software
Classification: Applications
Component: General
3.10.x
Other Linux
: Normal major
: ---
Assigned To: GNOME Software maintainer(s)
GNOME Software maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-02-08 20:39 UTC by Michael Catanzaro
Modified: 2018-01-24 16:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Catanzaro 2014-02-08 20:39:02 UTC
A user reported this in another bug:

"nm-connection-editor is shown in Software, and is
removable; it removes in this case Control Center (silently), and that’s really
bad."

Since this app is required by an uninstallable system app (gnome-control-center), it should itself be uninstallable.
Comment 1 Matthias Clasen 2014-02-09 01:14:16 UTC
apps should not require other apps. at the end of the day, thats a packaging error.
Comment 2 Richard Hughes 2014-02-25 10:18:47 UTC
I think the fix here is "hide nm-connection-editor from gnome-software", no?
Comment 3 Michael Catanzaro 2014-02-25 14:32:55 UTC
Maybe.  Or perhaps better would be "hide any app that depends on another app" since that would eliminate this entire class of issues. I think it'd be good to be more robust in general with this: you can say it's a packaging error (and if so then I think we can hide it), but the fact is that it's going to happen (unless each downstream adopts some automated process to catch this situation).

(Not clearing needinfo since I'm sure that's intended for Matthias.)
Comment 4 Michael Catanzaro 2014-04-07 17:19:14 UTC
The reason I cleared the NEEDINFO is that it gets "assigned" to the bug reporter (me), unlike some other Bugzillas, and there's nothing more for me to provide here, so setting back to unconfirmed.
Comment 5 Allan Day 2014-04-10 17:11:09 UTC
If nm-connection-editor is required by the control center, it is essentially a core app, and should be treated in the same way as the other core apps.
Comment 6 Richard Hughes 2016-02-20 20:48:33 UTC
Right, we don't show this now.
Comment 7 Rafal Luzynski 2016-02-23 00:56:40 UTC
I would consider it as fixed only if the app removal algorithm checked if some core system component requires the app about to be removed. See also: bug 711171.
Comment 8 Michael Catanzaro 2016-02-23 01:23:56 UTC
I agree, I don't consider this fixed, and it's a distinct issue from bug #711171. It's not hard to see some core system component, in Fedora and especially in other distributions, growing a inadvertent (or intentional!) dependency on some random app, and I expect removing that app would still destroy your system... right? This is too fragile.
Comment 9 Michael Catanzaro 2016-02-23 01:27:00 UTC
E.g. in Fedora, gtk-doc currently depends on the Links web browser, for whatever reason. Hard to imagine why, but it's true. Now, if gtk-doc can have such a crazy GUI dependency, then so could X (e.g. in Arch and various other distros, the X server actually depends on some GUI X testing tools); remove X and we have a big problem. GNOME Software should be robust to this case and not destroy my computer, instead of hoping that distros never make packaging errors.
Comment 10 Rafal Luzynski 2016-02-23 01:38:57 UTC
(In reply to Michael Catanzaro from comment #8)
> I agree, I don't consider this fixed, and it's a distinct issue from bug
> #711171.

Not so different because from developer's point of view the only difference is that bug 711171 would display a text "Do you want to continue? [Yes][No]" and the user has a choice while this bug would display a text "You can't continue [OK]" and we would never continue.

(In reply to Michael Catanzaro from comment #9)
> E.g. in Fedora, gtk-doc currently depends on the Links web browser, for
> whatever reason.

One can claim this is a packager's error but we should handle such errors rather than allowing a disaster.
Comment 11 Matthias Clasen 2016-02-23 13:34:19 UTC
Keep in mind: gnome-software is not a package management UI. You are halfway down the slippery slope to full-on dependency madness here.
Comment 12 Rafal Luzynski 2016-02-24 23:12:36 UTC
Of course, we should display only the information which is valuable for the user (which means the information related with the apps, every single package) and only if otherwise an action would cause a big disaster.
Comment 13 Rafal Luzynski 2016-02-25 09:10:40 UTC
(In reply to Rafal Luzynski from comment #12)
> (which means the information related with the apps, every single package)

Sorry, a typo: I meant *not* every single package.
Comment 14 GNOME Infrastructure Team 2018-01-24 16:49:06 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-software/issues/8.