# before
$ sudo dpkg --force-depends --purge mozilla-firefox
dpkg: mozilla-firefox: dependency problems, but removing anyway as you request:
mozilla-firefox-gnome-support depends on mozilla-firefox (= 1.0-4).
(Reading database ... 82173 files and directories currently installed.)
Removing mozilla-firefox ...
Purging configuration files for mozilla-firefox ...
$ sudo dpkg --purge mozilla-firefox-gnome-support
(Reading database ... 81699 files and directories currently installed.)
Removing mozilla-firefox-gnome-support ...
/var/lib/dpkg/info/mozilla-firefox-gnome-support.postrm: line 5: update-mozilla-firefox-chrome: command not found
dpkg: error processing mozilla-firefox-gnome-support (--purge):
subprocess post-removal script returned error exit status 127
Errors were encountered while processing:
mozilla-firefox-gnome-support
# after
$ sudo dpkg --force-depends --purge mozilla-firefox
dpkg: mozilla-firefox: dependency problems, but removing anyway as you request:
mozilla-firefox-gnome-support depends on mozilla-firefox (= 1.0+dfsg.1-1.1).
(Reading database ... 82172 files and directories currently installed.)
Removing mozilla-firefox ...
Purging configuration files for mozilla-firefox ...
$ sudo dpkg --purge mozilla-firefox-gnome-support
(Reading database ... 81699 files and directories currently installed.)
Removing mozilla-firefox-gnome-support ...
Purging configuration files for mozilla-firefox-gnome-support ...
diff -Nru /tmp/8SIXjj7A0i/mozilla-firefox-1.0+dfsg.1/debian/changelog /tmp/zQMGs4YDro/mozilla-firefox-1.0+dfsg.1/debian/changelog
--- /tmp/8SIXjj7A0i/mozilla-firefox-1.0+dfsg.1/debian/changelog 2005-01-10 03:23:26.000000000 +0000
+++ /tmp/zQMGs4YDro/mozilla-firefox-1.0+dfsg.1/debian/changelog 2005-01-10 03:24:34.922535608 +0000
@@ -1,3 +1,12 @@
+mozilla-firefox (1.0+dfsg.1-1.1) unstable; urgency=low
+
+ * NMU.
+ * debian/mozilla-firefox-gnome-support.postrm: do not call
+ update-mozilla-firefox-chrome when firefox has already been removed.
+ (renders package uninstallable) (Closes: #287355)
+
+ -- Paul Brossier <email address hidden> Mon, 10 Jan 2005 03:06:32 +0000
+
mozilla-firefox (1.0+dfsg.1-1) unstable; urgency=low
* Not a new upstream release.
diff -Nru /tmp/8SIXjj7A0i/mozilla-firefox-1.0+dfsg.1/debian/mozilla-firefox-gnome-support.postrm /tmp/zQMGs4YDro/mozilla-firefox-1.0+dfsg.1/debian/mozilla-firefox-gnome-support.postrm
--- /tmp/8SIXjj7A0i/mozilla-firefox-1.0+dfsg.1/debian/mozilla-firefox-gnome-support.postrm 2005-01-10 03:23:26.000000000 +0000
+++ /tmp/zQMGs4YDro/mozilla-firefox-1.0+dfsg.1/debian/mozilla-firefox-gnome-support.postrm 2005-01-10 03:24:34.930534392 +0000
@@ -2,7 +2,9 @@
case "$1" in
abort-install|purge|remove)
- update-mozilla-firefox-chrome
+ if [ -x /usr/sbin/update-mozilla-firefox-chrome ]; then
+ /usr/sbin/update-mozilla-firefox-chrome
+ fi
;;
*)
;;
Message-ID: <20050110133444 .GA6848@ localhost> mozilla- firefox- chrome on purge
Date: Mon, 10 Jan 2005 13:34:44 +0000
From: Paul Brossier <email address hidden>
To: <email address hidden>
Subject: Calls update-
--OXfL5xGRrasGEqWY Disposition: inline
Content-Type: text/plain; charset=us-ascii
Content-
just checked the following patch works:
# before firefox- gnome-support depends on mozilla-firefox (= 1.0-4). firefox- gnome-support firefox- gnome-support ... dpkg/info/ mozilla- firefox- gnome-support. postrm: line 5: update- mozilla- firefox- chrome: command not found firefox- gnome-support (--purge): firefox- gnome-support
$ sudo dpkg --force-depends --purge mozilla-firefox
dpkg: mozilla-firefox: dependency problems, but removing anyway as you request:
mozilla-
(Reading database ... 82173 files and directories currently installed.)
Removing mozilla-firefox ...
Purging configuration files for mozilla-firefox ...
$ sudo dpkg --purge mozilla-
(Reading database ... 81699 files and directories currently installed.)
Removing mozilla-
/var/lib/
dpkg: error processing mozilla-
subprocess post-removal script returned error exit status 127
Errors were encountered while processing:
mozilla-
# after firefox- gnome-support depends on mozilla-firefox (= 1.0+dfsg.1-1.1). firefox- gnome-support firefox- gnome-support ... firefox- gnome-support ...
$ sudo dpkg --force-depends --purge mozilla-firefox
dpkg: mozilla-firefox: dependency problems, but removing anyway as you request:
mozilla-
(Reading database ... 82172 files and directories currently installed.)
Removing mozilla-firefox ...
Purging configuration files for mozilla-firefox ...
$ sudo dpkg --purge mozilla-
(Reading database ... 81699 files and directories currently installed.)
Removing mozilla-
Purging configuration files for mozilla-
--OXfL5xGRrasGEqWY Disposition: attachment; filename= "nmu.check_ before_ uninstall_ gnome_support. patch"
Content-Type: text/plain; charset=us-ascii
Content-
diff -Nru /tmp/8SIXjj7A0i /mozilla- firefox- 1.0+dfsg. 1/debian/ changelog /tmp/zQMGs4YDro /mozilla- firefox- 1.0+dfsg. 1/debian/ changelog /mozilla- firefox- 1.0+dfsg. 1/debian/ changelog 2005-01-10 03:23:26.000000000 +0000 /mozilla- firefox- 1.0+dfsg. 1/debian/ changelog 2005-01-10 03:24:34.922535608 +0000 mozilla- firefox- gnome-support. postrm: do not call mozilla- firefox- chrome when firefox has already been removed.
--- /tmp/8SIXjj7A0i
+++ /tmp/zQMGs4YDro
@@ -1,3 +1,12 @@
+mozilla-firefox (1.0+dfsg.1-1.1) unstable; urgency=low
+
+ * NMU.
+ * debian/
+ update-
+ (renders package uninstallable) (Closes: #287355)
+
+ -- Paul Brossier <email address hidden> Mon, 10 Jan 2005 03:06:32 +0000
+
mozilla-firefox (1.0+dfsg.1-1) unstable; urgency=low
* Not a new upstream release. /mozilla- firefox- 1.0+dfsg. 1/debian/ mozilla- firefox- gnome-support. postrm /tmp/zQMGs4YDro /mozilla- firefox- 1.0+dfsg. 1/debian/ mozilla- firefox- gnome-support. postrm /mozilla- firefox- 1.0+dfsg. 1/debian/ mozilla- firefox- gnome-support. postrm 2005-01-10 03:23:26.000000000 +0000 /mozilla- firefox- 1.0+dfsg. 1/debian/ mozilla- firefox- gnome-support. postrm 2005-01-10 03:24:34.930534392 +0000
diff -Nru /tmp/8SIXjj7A0i
--- /tmp/8SIXjj7A0i
+++ /tmp/zQMGs4YDro
@@ -2,7 +2,9 @@
case "$1" in install| purge|remove) mozilla- firefox- chrome update- mozilla- firefox- chrome ]; then update- mozilla- firefox- chrome
abort-
- update-
+ if [ -x /usr/sbin/
+ /usr/sbin/
+ fi
;;
*)
;;
--OXfL5xGRrasGE qWY--