[*] I didn't check whether it was the prerm script that tries to stop gdm, or some other script, but presumably it is prerm. -- removing gdm fails if gdm is not running https://launchpad.net/bugs/41725