Unclear warning before removing critical packages

Bug #668382 reported by Dylan Coakley
50
This bug affects 8 people
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Fix Released
Medium
Robert Roth

Bug Description

Ubuntu Software Center 5.3.11, Ubuntu Q
1. Search for "files".
2. Select "Files (nautilus)", and choose "Remove".

What happens: "If you uninstall Files, future updates will not include new updates in The Ubuntu desktop system set. Are you sure you want to continue?"

What should happen: "Files is a core item in Ubuntu. Removing it may cause future upgrades to be incomplete." <https://wiki.ubuntu.com/SoftwareCenter#removing>

(The Dash equivalent is bug 1047315.)

After removing Evolution I wanted to get rid of all the related packages to Evolution, which I would imagine alot of other users would too! I removed libcamel because it was described as MIME handler for Evolution. However on reboot my Ubuntu install was annoyingly broken!!

After some investigation it seems that removing libcamel also removes the ubuntu-desktop package! Im very annoyed that this bug is still here and nobody has reported it or discovered it.

In the following thread I vented my frustration on this issue and included a screenshot of what it tells you will be removed. The ubuntu-desktop package is not listed.

http://ubuntuforums.org/showthread.php?t=1607443

However I want a very, very obvious warning dialog to show up if ubuntu-desktop or any important system packages are going to be removed. This is essential to stop new Ubuntu users from easily breaking their own Ubuntu installation!

Related branches

Revision history for this message
Kiwinote (kiwinote) wrote :

Confirming. The current implementation of warning which packages will be removed returns incomplete lists.

Changed in software-center (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Eemil Lagerspetz (eemil-lagerspetz) wrote :

gdebi-gtk does warn about removing ubuntu-desktop and libsdl1.2-debian-pulseaudio. However, software center does NOT warn that it's going to do autoremove and start removing their dependencies too.

Revision history for this message
David Stevenson (david-avoncliff) wrote :

I have just tried this in Natty alpha.
If you try and uninstall Cups you get the following message.
"If you uninstall Cups, future updates will not include new items in The Desktop system set. Ar you sure you want to continue."
And if you scroll down the bottom item on the list is "The Ubuntu desktop system"
If you continue you get a system that will not even boot into a command line.
I feel this bug should not be about changing the warning, although that needs doing, but should be about not removing the bulk of the Ubuntu system, for no good reason.
I understand, although I have not tried it, apt-get will get this right and remove cups and leave the system working.

Revision history for this message
mac9416 (mac9416) wrote :

I guess "The Ubuntu desktop system" is the ubuntu-desktop package. I'm glad Natty warns before removing that. Obviously the warning should be more strong considering the effect of continuing.

I had thought this sort of thing was caused by APT's dependency calculation going weird, so the same thing would happen whether you used apt-get or a GUI. It may vary by case though. Although it would the the better way, fixing a problem in APT would be more difficult than slapping a stronger warning on Software Center. Either way, something needs fixing. :-)

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

The error message David quotes is defined in step 4 of <https://wiki.ubuntu.com/SoftwareCenter#removing>. However, "The Ubuntu desktop system" is the title of ubuntu-desktop, and that is supposed to be special-cased with its own error message in step 3. So, that much is a bug in USC.

Removing ubuntu-desktop has no immediate effect, because it's just a metapackage. If there is an identifiable set of packages where removing any one of them prevents Ubuntu from starting up, there should be a separate bug report for USC to warn more strongly in that case.

Revision history for this message
mac9416 (mac9416) wrote :

If I understand you correctly, Matthew, we have a couple of problems.
 1) This message fails to appear when a dependency of ubuntu-desktop is marked for removal: “{title} is a core item in Ubuntu. Removing it may cause future upgrades to be incomplete.”
 2) When a very important package is marked for removal, the user isn't very strongly warned that it's a bad idea.

> If there is an identifiable set of packages where removing any one of them prevents Ubuntu from starting up, there should be a separate bug report for USC to warn more strongly in that case.

Perhaps someone can suggest a way to identify such packages. In my duplicate Bug #653293, I suggested simply hard-coding a list of important packages into USC. It's not pretty, but it's better than what's in place now.

Should these bugs be unmarked as duplicates since we have two issues to be addressed?

Revision history for this message
Ben McCann (benjamin-j-mccann) wrote :

I removed evolution-data-server and evolution-data-server-common because I use gmail, so I didn't want any email software on my system. However, that removed gnome-panel with no notice whatsoever.
I would like to suggest that we show what packages are being removed regardless of whether it's considered 'important'. A list of 'important' software could always be incomplete. If it's going to be removed I'd like to know about it under any circumstance.

Revision history for this message
mac9416 (mac9416) wrote :

I agree, USC should definitely let you know what packages are being removed. I had thought that it already did, but perhaps not. But I think it should go a step further for users who don't know what packages are important (my example in Bug #653293 had no idea what gnome-panel was) by giving them a stern warning before such packages are removed.

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

The next step, to make *this* bug fixable, is for someone to come up with a way where USC can tell that it is dangerous to remove libcamel1.2-14 but not dangerous to remove evolution.

Any omissions in the list of packages that will be removed should be a separate bug report, please.

Revision history for this message
Eemil Lagerspetz (eemil-lagerspetz) wrote :

The issue I described in the other bug
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/680385
was slightly different:
The problem was caused because software center did apt-get autoremove. The packages removed before the autoremove operation were not critical.

description: updated
summary: - No warning before removing important packages!!
+ Unclear warning before removing critical packages
description: updated
Robert Roth (evfool)
Changed in software-center (Ubuntu):
assignee: nobody → Robert Roth (evfool)
status: Triaged → In Progress
Robert Roth (evfool)
Changed in software-center (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-center - 5.5.1.1

---------------
software-center (5.5.1.1) raring; urgency=low

  * Fix FTBFS in the clean target by build-depending on python-dbus,
    python-aptdaemon, python-gi, python-xapian, and python-xdg.
 -- Adam Conrad <email address hidden> Wed, 28 Nov 2012 19:08:21 -0700

Changed in software-center (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.